![]() |
Здравствуйте, гость ( Вход | Регистрация )
![]() ![]() |
![]() |
Litkevich Yuriy |
![]()
Сообщение
#1
|
![]() разработчик РЭА ![]() ![]() ![]() ![]() ![]() ![]() ![]() Группа: Сомодератор Сообщений: 9669 Регистрация: 9.1.2008 Из: Тюмень Пользователь №: 64 Спасибо сказали: 807 раз(а) Репутация: ![]() ![]() ![]() |
Внимание! Прочедура установки/сборки Qt описана в нашем FAQ: Установка библиотеки Qt (руководство от CrossPlatform.ru)
Эта тема устраела. Задавайте вопросы в выше указной теме. --- итак пытался собрать Qt-4.4.0 Мой bat'ник:
для пресборки в подсказке, в командной строке, говорилось, что нужно делать так:
для 3.4.2 было:
в место -system-zlib делал -qt-zlib и вместо -plugin-sql-odbc использовал -qt-sql-odbc, т.к. хотел избавится от плагинов и пр., чтобы все было в нутри Qt'явых библиотек, соответственно make делал без ключа, т.е. будут компилится и debug и release. с ключем -qt-zlib приводит к ошибке, очистил стал собирать заново, опять ошибка: Цитата g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -shared -Wl,--out-implib,H:\Qt-4.0.0-Dynamic\lib\libQtSqld4.a -o "H:/Qt-4.0.0-Dynamic/lib\QtSqld4.dll" object_ld_script.QtSqld.Debug -L"H:\Qt-4.0.0-Dynamic\lib" -L"H:\Qt-4.0.0-Dynamic\lib" tmp\obj\debug_shared\QtSqld_resource.o odbc32.lib -lQtCored4 g++: odbc32.lib: No such file or directory ---- нифига не понял, релиз собрался, а на отладке требует какую-то lib, файлов с таким расширением вообще нет! Сообщение отредактировал Litkevich Yuriy - 3.10.2008, 20:14
Причина редактирования: Есть более новая тема, указана в FAQ
|
|
|
ViGOur |
![]()
Сообщение
#2
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: ![]() ![]() ![]() |
Первое, что бросается в глаза это то, что ты забыл два важных ключика, чем славится Qt 4.4, а именно -phonon и кажется -webkit.
![]() Чтобы видны были odbc32.lib, посмотри, что у тебя записано в переменной среде "lib". Затем найди, где она лежит, если ее нет, то скачай или выкини ключик -qt-sql-odbc. Заново перекомпили. |
|
|
Litkevich Yuriy |
![]()
Сообщение
#3
|
![]() разработчик РЭА ![]() ![]() ![]() ![]() ![]() ![]() ![]() Группа: Сомодератор Сообщений: 9669 Регистрация: 9.1.2008 Из: Тюмень Пользователь №: 64 Спасибо сказали: 807 раз(а) Репутация: ![]() ![]() ![]() |
а именно -phonon и кажется -webkit такие ключи в configure отсутствуют: CODE H:\Qt-4.0.0-Dynamic>configure -help Usage: configure [-prefix dir] [-bindir <dir>] [-libdir <dir>] [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir>] [-datadir <dir>] [-translationdir <dir>] [-examplesdir <dir>] [-demosdir <dir>][-buildkey <key>] [-release] [-debug] [-debug-and-release] [-shared] [-static] [-no-fast] [-fast] [-no-exception] [-exception] [-no-accessibility] [-accessibility] [-no-rtti] [-rtti] [-no-stl] [-stl] [-no-sql-<driver>] [-qt-sql-<driver>] [-plugin-sql-<driver>] [-arch <arch>] [-platform <spec>] [-qconfig <local>] [-D <define>] [-I <includepath>] [-L <librarypath>] [-help] [-no-dsp] [-dsp] [-no-vcproj] [-vcproj] [-no-qmake] [-qmake] [-dont-process] [-process] [-no-style-<style>] [-qt-style-<style>] [-redo] [-saveconfig <config>] [-loadconfig <config>] [-no-zlib] [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] Installation options: These are optional, but you may specify install directories. -prefix dir ........ This will install everything relative to dir (default $QT_INSTALL_PREFIX) You may use these to separate different parts of the install: -bindir <dir> ...... Executables will be installed to dir (default PREFIX/bin) -libdir <dir> ...... Libraries will be installed to dir (default PREFIX/lib) -docdir <dir> ...... Documentation will be installed to dir (default PREFIX/doc) -headerdir <dir> ... Headers will be installed to dir (default PREFIX/include) -plugindir <dir> ... Plugins will be installed to dir (default PREFIX/plugins) -datadir <dir> ..... Data used by Qt programs will be installed to dir (default PREFIX) -translationdir <dir> Translations of Qt programs will be installed to dir (default PREFIX/translations) -examplesdir <dir> . Examples will be installed to dir (default PREFIX/examples) -demosdir <dir> .... Demos will be installed to dir (default PREFIX/demos) You may use these options to turn on strict plugin loading: -buildkey <key> .... Build the Qt library and plugins using the specified <key>. When the library loads plugins, it will only load those that have a matching <key>. Configure options: The defaults (*) are usually acceptable. If marked with a plus (+) a test for that feature has not been done yet, but will be evaluated later, the plus simply denotes the default value. Here is a short explanation of each option: -release ........... Compile and link Qt with debugging turned off. -debug ............. Compile and link Qt with debugging turned on. * -debug-and-release . Compile and link two Qt libraries, with and without debugging turned on. * -shared ............ Create and use shared Qt libraries. -static ............ Create and use static Qt libraries. * -no-fast ........... Configure Qt normally by generating Makefiles for all project files. -fast .............. Configure Qt quickly by generating Makefiles only for library and subdirectory targets. All other Makefiles are created as wrappers which will in turn run qmake -no-exception ...... Disable exceptions on platforms that support it. * -exception ......... Enable exceptions on platforms that support it. -no-accessibility .. Do not compile Windows Active Accessibilit support. * -accessibility ..... Compile Windows Active Accessibilit support. -no-stl ............ Do not compile STL support. * -stl ............... Compile STL support. -no-sql-<driver> ... Disable SQL <driver> entirely, by default none are turned on. -qt-sql-<driver> ... Enable a SQL <driver> in the Qt Library. -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to at run time. Available values for <driver>: mysql psql oci odbc tds db2 + sqlite sqlite2 ibase (drivers marked with a '+' have been detected as available on this system) -platform <spec> ... The operating system and compiler you are building on. (default %QMAKESPEC%) See the README file for a list of supported operating systems and compilers. -D <define> ........ Add an explicit define to the preprocessor. -I <includepath> ... Add an explicit include path. -L <librarypath> ... Add an explicit library path. -help, -h, -? ...... Display this information. Third Party Libraries: -no-zlib ........... Do not compile in ZLIB support. Implies -no-libpng. -qt-zlib ........... Use the zlib bundled with Qt. + -system-zlib ....... Use zlib from the operating system. See http://www.gzip.org/zlib * -no-gif ............ Do not compile the plugin for GIF reading support. -qt-gif ............ Compile the plugin for GIF reading support. See also src/plugins/imageformats/gif/qgifhandler.h -no-libpng ......... Do not compile in PNG support. -qt-libpng ......... Use the libpng bundled with Qt. + -system-libpng ..... Use libpng from the operating system. See http://www.libpng.org/pub/png -no-libjpeg ........ Do not compile the plugin for JPEG support. -qt-libjpeg ........ Use the libjpeg bundled with Qt. + -system-libjpeg .... Use libjpeg from the operating system. See http://www.ijg.org Qt/Windows only: -no-dsp ............ Do not generate VC++ .dsp files. * -dsp ............... Generate VC++ .dsp files, only if spec "win32-msvc". -no-vcproj ......... Do not generate VC++ .vcproj files. * -vcproj ............ Generate VC++ .vcproj files, only if platform "win32-msvc.net". -no-qmake .......... Do not compile qmake. * -qmake ............. Compile qmake. -dont-process ...... Do not generate Makefiles/Project files. * -process ........... Generate Makefiles/Project files. -no-rtti ........... Do not compile runtime type information. * -rtti .............. Compile runtime type information. -arch <arch> ....... Specify an architecture. Available values for <arch>: * windows boundschecker -no-style-<style> .. Disable <style> entirely. -qt-style-<style> .. Enable <style> in the Qt Library. Available styles: * windows + windowsxp * plastique * motif * cde -qconfig <local> ... Use src/tools/qconfig-local.h rather than the default. Possible values for local: minimal small medium large full -loadconfig <config> Run configure with the parameters from file configure_ <config>.cache. -saveconfig <config> Run configure and save the parameters in file configure_<config>.cache. -redo .............. Run configure with the same parameters as last time. Цитата переменной среде "lib" уменя такой переменной нет файлов с расширением .lib нет ни в 4.3.2 ни в 4.4.0 и потом непонятно, как без этой .lib собрался релиз, примеры работают компилятся в релиз варианте -- Цитата или выкини ключик -qt-sql-odbc так я и хочу попробывать. Сообщение отредактировал Litkevich Yuriy - 8.3.2008, 11:14 |
|
|
ViGOur |
![]()
Сообщение
#4
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: ![]() ![]() ![]() |
А у меня так:
CODE D:\LIBS\qt\os4.4.0>configure -? И все есть Usage: configure [-buildkey <key>] [-release] [-debug] [-debug-and-release] [-shared] [-static] [-no-fast] [-fast] [-no-exceptions] [-exceptions] [-no-accessibility] [-accessibility] [-no-rtti] [-rtti] [-no-stl] [-stl] [-no-sql-<driver>] [-qt-sql-<driver>] [-plugin-sql-<driver>] [-system-sqlite] [-arch <arch>] [-D <define>] [-I <includepath>] [-L <librarypath>] [-help] [-no-dsp] [-dsp] [-no-vcproj] [-vcproj] [-no-qmake] [-qmake] [-dont-process] [-process] [-no-style-<style>] [-qt-style-<style>] [-redo] [-saveconfig <config>] [-loadconfig <config>] [-no-zlib] [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libtiff] [-qt-libtiff] [-system-libtiff] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-no-libmng] [-qt-libmng] [-system-libmng] [-no-qt3support] [-mmx] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2] [-no-iwmmxt] [-iwmmxt] [-direct3d] [-openssl] [-openssl-linked] [-no-openssl] [-qdbus] [-no-qdbus] [-platform <spec>] [-qtnamespace <namespace>] [-no-phonon] [-phonon] [-no-webkit] [-webkit] Installation options: You may use these options to turn on strict plugin loading: -buildkey <key> .... Build the Qt library and plugins using the specified <key>. When the library loads plugins, it will only load those that have a matching <key>. Configure options: The defaults (*) are usually acceptable. A plus (+) denotes a default value that needs to be evaluated. If the evaluation succeeds, the feature is included. Here is a short explanation of each option: -release ........... Compile and link Qt with debugging turned off. * -debug ............. Compile and link Qt with debugging turned on. + -debug-and-release . Compile and link two Qt libraries, with and without debugging turned on. * -shared ............ Create and use shared Qt libraries. -static ............ Create and use static Qt libraries. * -no-fast ........... Configure Qt normally by generating Makefiles for all project files. -fast .............. Configure Qt quickly by generating Makefiles only for library and subdirectory targets. All other Makefiles are created as wrappers which will in turn run qmake -no-exceptions ..... Disable exceptions on platforms that support it. * -exceptions ........ Enable exceptions on platforms that support it. -no-accessibility .. Do not compile Windows Active Accessibility support. * -accessibility ..... Compile Windows Active Accessibility support. -no-stl ............ Do not compile STL support. * -stl ............... Compile STL support. -no-sql-<driver> ... Disable SQL <driver> entirely, by default none are turned on. -qt-sql-<driver> ... Enable a SQL <driver> in the Qt Library. -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to at run time. Available values for <driver>: mysql psql oci odbc tds db2 + sqlite sqlite2 ibase (drivers marked with a '+' have been detected as available on this system) -system-sqlite ..... Use sqlite from the operating system. -no-qt3support ..... Disables the Qt 3 support functionality. -no-opengl ......... Disables OpenGL functionality -platform <spec> ... The operating system and compiler you are building on. (default %QMAKESPEC%) -xplatform <spec> .. The operating system and compiler you are cross compiling to. See the README file for a list of supported operating systems and compilers. -qtnamespace <namespace> Wraps all Qt library code in 'namespace name {...} -D <define> ........ Add an explicit define to the preprocessor. -I <includepath> ... Add an explicit include path. -L <librarypath> ... Add an explicit library path. -l <libraryname> ... Add an explicit library name, residing in a librarypath. -help, -h, -? ...... Display this information. Third Party Libraries: -no-zlib ........... Do not compile in ZLIB support. Implies -no-libpng. -qt-zlib ........... Use the zlib bundled with Qt. + -system-zlib ....... Use zlib from the operating system. See http://www.gzip.org/zlib -no-gif ............ Do not compile the plugin for GIF reading support. + -qt-gif ............ Compile the plugin for GIF reading support. See also src/plugins/imageformats/gif/qgifhandler.h -no-libpng ......... Do not compile in PNG support. -qt-libpng ......... Use the libpng bundled with Qt. + -system-libpng ..... Use libpng from the operating system. See http://www.libpng.org/pub/png -no-libmng ......... Do not compile in MNG support. -qt-libmng ......... Use the libmng bundled with Qt. + -system-libmng ..... Use libmng from the operating system. See See http://www.libmng.com -no-libtiff ........ Do not compile the plugin for TIFF support. -qt-libtiff ........ Use the libtiff bundled with Qt. + -system-libtiff .... Use libtiff from the operating system. See http://www.libtiff.org -no-libjpeg ........ Do not compile the plugin for JPEG support. -qt-libjpeg ........ Use the libjpeg bundled with Qt. + -system-libjpeg .... Use libjpeg from the operating system. See http://www.ijg.org Qt/Windows only: -no-dsp ............ Do not generate VC++ .dsp files. * -dsp ............... Generate VC++ .dsp files, only if spec "win32-msvc". -no-vcproj ......... Do not generate VC++ .vcproj files. * -vcproj ............ Generate VC++ .vcproj files, only if platform "win32-msvc.net". -no-incredibuild-xge Do not add IncrediBuild XGE distribution commands to custom build steps. + -incredibuild-xge .. Add IncrediBuild XGE distribution commands to custom build steps. This will distribute MOC and UIC steps, and other custom buildsteps which are added to the INCREDIBUILD_XGE variable. (The IncrediBuild distribution commands are only added to Visual Studio projects) -no-qmake .......... Do not compile qmake. * -qmake ............. Compile qmake. -dont-process ...... Do not generate Makefiles/Project files. This will override -no-fast if specified. * -process ........... Generate Makefiles/Project files. -no-rtti ........... Do not compile runtime type information. * -rtti .............. Compile runtime type information. -no-mmx ............ Do not compile with use of MMX instructions + -mmx ............... Compile with use of MMX instructions -no-3dnow .......... Do not compile with use of 3DNOW instructions -no-sse ............ Do not compile with use of SSE instructions -no-sse2 ........... Do not compile with use of SSE2 instructions + -direct3d .......... Compile in Direct3D support (experimental - see INSTALL for more info) -no-openssl ........ Do not compile in OpenSSL support + -openssl ........... Compile in run-time OpenSSL support -openssl-linked .... Compile in linked OpenSSL support -no-qdbus .......... Do not compile in qdbus support + -qdbus ............. Compile in qdbus support -no-phonon ......... Do not compile in the Phonon module + -phonon ............ Compile in the Phonon module (Phonon is built if a decent C++ compiler is used.) -no-webkit ......... Do not compile in the WebKit module + -webkit ............ Compile in the WebKit module (WebKit is built if a decent C++ compiler is used.) -arch <arch> ....... Specify an architecture. Available values for <arch>: * windows windowsce generic -no-style-<style> .. Disable <style> entirely. -qt-style-<style> .. Enable <style> in the Qt Library. Available styles: * windows + windowsxp + windowsvista * plastique * cleanlooks * motif * cde windowsce windowsmobile -loadconfig <config> Run configure with the parameters from file configure_ <config>.cache. -saveconfig <config> Run configure and save the parameters in file configure_<config>.cache. -redo .............. Run configure with the same parameters as last time. Qt/WinCE only: -no-iwmmxt ......... Do not compile with use of IWMMXT instructions + -iwmmxt ............ Do compile with use of IWMMXT instructions (Qt/WinCE on Arm only) * -no-crt ............ Do not add the C runtime to default deployment rules -qt-crt ............ Qt identifies C runtime during project generation -crt <path> ........ Specify path to C runtime used for project generation. -no-cetest ......... Do not compile Windows CE remote test application + -cetest ............ Compile Windows CE remote test application -signature <file> .. Use file for signing the target project -opengl-es-cm ...... Enable support for OpenGL ES Common -opengl-es-cl ...... Enable support for OpenGL ES Common Lite ![]() |
|
|
Litkevich Yuriy |
![]()
Сообщение
#5
|
![]() разработчик РЭА ![]() ![]() ![]() ![]() ![]() ![]() ![]() Группа: Сомодератор Сообщений: 9669 Регистрация: 9.1.2008 Из: Тюмень Пользователь №: 64 Спасибо сказали: 807 раз(а) Репутация: ![]() ![]() ![]() |
к стати пытался 4.3.2. скомпилить с ключем -qt-sql-ibase, заново поставив Qt, тоже ошибка как и вслучае с ODBC
|
|
|
Litkevich Yuriy |
![]()
Сообщение
#6
|
![]() разработчик РЭА ![]() ![]() ![]() ![]() ![]() ![]() ![]() Группа: Сомодератор Сообщений: 9669 Регистрация: 9.1.2008 Из: Тюмень Пользователь №: 64 Спасибо сказали: 807 раз(а) Репутация: ![]() ![]() ![]() |
ViGOur, а ты откуда брал Qt'я?
я вот этот скачал ftp://ftp.trolltech.com/qt/source/qt-win-...4.0.0-mingw.exe может он кастрированый? пардон, вот такой: ftp://ftp.trolltech.com/qt/source/qt-win-...beta1-mingw.exe Сообщение отредактировал Litkevich Yuriy - 8.3.2008, 11:36 |
|
|
Litkevich Yuriy |
![]()
Сообщение
#7
|
![]() разработчик РЭА ![]() ![]() ![]() ![]() ![]() ![]() ![]() Группа: Сомодератор Сообщений: 9669 Регистрация: 9.1.2008 Из: Тюмень Пользователь №: 64 Спасибо сказали: 807 раз(а) Репутация: ![]() ![]() ![]() |
пошел я все сносить, за одно и MinGW посвежее поставлю, телефон не отложки навсякий случай запишите: 03,
не поминайте лихом ![]() |
|
|
ViGOur |
![]()
Сообщение
#8
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: ![]() ![]() ![]() |
|
|
|
Litkevich Yuriy |
![]()
Сообщение
#9
|
![]() разработчик РЭА ![]() ![]() ![]() ![]() ![]() ![]() ![]() Группа: Сомодератор Сообщений: 9669 Регистрация: 9.1.2008 Из: Тюмень Пользователь №: 64 Спасибо сказали: 807 раз(а) Репутация: ![]() ![]() ![]() |
ну вот, то ли потому что снес все и поставил заново, то ли потому что с женщинами пообщался, вообщем
ПОЛУЧИЛОСЬ! 1 Поставил MinGW-5.1.3 (gcc-3.4.5) без записи в переменную PATH; 2 Поставил Qt-4.3.4 с помощью установщика, без записи в переменную PATH; 3 Через кнопку "ПУСК" запустил батничек Qt'вый который отладочные библиотеки собирает; собрались 4 Машину перезагрузил пробую проекты сделаные пускать - ругаются на mingwm10.dll (чего и следовало ожидать) 1 опять в "ПУСК", запускаю вторй батничек "командная строка Qt"; 2 добираюсь до своего проекта; 3 qmake 4 make clean (чтобы вычистить то, что раньше собиралось) 5 make 6 добираюсь до получившегося exe-шника 7 запускаю его -- работает! 8 выхожу из командной строки 9 запускаю через любимый файловый менеджер этот же exe-шник - ругань на mingwm10.dll (чего и следовало ожидать и я рад) Вывод: пока указаны в батнике пути: Цитата set QTDIR=F:\Qt\4.3.4\STD set PATH=F:\Qt\4.3.4\STD\bin\ REM set PATH=%PATH%;F:\MinGW\3.4.5\bin set PATH=%PATH%;%SystemRoot%\System32 все работает, обратите внимание строчка закоментирована, без нее тоже работает (mingwm10.dll есть в Qt'явом каталоге bin) дальше поступаю так: беру Qt'вые каталоги bin и plugins копирую куда душе угодно, в bin оставляю только dll'ки, остальное грохаю, plugins оставляю как есть делаю батник по аналогии с выше указаным, только пути свои и из него пускаю exe-шники -- тоже все работает, мало того ранее скомпиленые работают Т.Е. И КАРТИНКИ И ODBC ДРАЙВЕР собраный как plugin. ВЫВОД: при сборке Qt поумолчанию надо утащить эти два каталога на сырую машину вместе с вашей прогой каталог в котором будут лежать Qt'вые штучки прописать в переменную окружения PATH ----- А вот с qt.config пока не разобрался, поидее он используется, чтобы перекрыть жестко зашитые в dll'ки пути к Qt'явым потрохам... продолжение следует Сообщение отредактировал Litkevich Yuriy - 8.3.2008, 22:18 |
|
|
Litkevich Yuriy |
![]()
Сообщение
#10
|
![]() разработчик РЭА ![]() ![]() ![]() ![]() ![]() ![]() ![]() Группа: Сомодератор Сообщений: 9669 Регистрация: 9.1.2008 Из: Тюмень Пользователь №: 64 Спасибо сказали: 807 раз(а) Репутация: ![]() ![]() ![]() |
для облегчения себе жизни в отсутствии Qt'вого окружения (отсутсвии Qt'ей и MinGW в переменной окружения PATH)
я создал на рабочем столе батничек:
тогда мой любимый тотал пускается с нужным окружением и я могу исполнять и компилить Qt'явые проги. |
|
|
![]() ![]() ![]() |
![]() |
Текстовая версия | Сейчас: 3.12.2023, 12:48 |