crossplatform.ru

Здравствуйте, гость ( Вход | Регистрация )

> Сборка Qt - проблемы и решения (архив)
Litkevich Yuriy
  опции профиля:
сообщение 8.3.2008, 10:11
Сообщение #1


разработчик РЭА
*******

Группа: Сомодератор
Сообщений: 9669
Регистрация: 9.1.2008
Из: Тюмень
Пользователь №: 64

Спасибо сказали: 807 раз(а)




Репутация:   94  


Внимание! Прочедура установки/сборки Qt описана в нашем FAQ: Установка библиотеки Qt (руководство от CrossPlatform.ru)

Эта тема устраела. Задавайте вопросы в выше указной теме.




---
итак пытался собрать Qt-4.4.0
Мой bat'ник:
set QTDIR=H:\Qt-4.0.0-Dynamic
set PATH=%QTDIR%\bin
set PATH=%PATH%;F:\MinGW\bin
set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++
cd %QTDIR%
configure -shared -qt-sql-sqlite -qt-sql-odbc -qt-zlib -qt-gif -qt-libpng -qt-libjpeg
cd %QTDIR%\src
mingw32-make

для пресборки в подсказке, в командной строке, говорилось, что нужно делать так:
mingw32-make clean

для 3.4.2 было:
mingw32-make confclean


в место -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
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
 
Начать новую тему
Ответов
Litkevich Yuriy
  опции профиля:
сообщение 8.3.2008, 11:12
Сообщение #2


разработчик РЭА
*******

Группа: Сомодератор
Сообщений: 9669
Регистрация: 9.1.2008
Из: Тюмень
Пользователь №: 64

Спасибо сказали: 807 раз(а)




Репутация:   94  


Цитата(ViGOur @ 8.3.2008, 13:56) *
а именно -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
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение

Сообщений в этой теме
- Litkevich Yuriy   Сборка Qt - проблемы и решения (архив)   8.3.2008, 10:11
- - ViGOur   Первое, что бросается в глаза это то, что ты забыл...   8.3.2008, 10:56
- - Litkevich Yuriy   Цитата(ViGOur @ 8.3.2008, 13:56) а именно...   8.3.2008, 11:12
- - ViGOur   А у меня так: CODED:\LIBS\qt\os4.4....   8.3.2008, 11:19
- - Litkevich Yuriy   к стати пытался 4.3.2. скомпилить с ключем -qt-sql...   8.3.2008, 11:32
- - Litkevich Yuriy   ViGOur, а ты откуда брал Qt'я? я вот этот скач...   8.3.2008, 11:35
- - Litkevich Yuriy   пошел я все сносить, за одно и MinGW посвежее пост...   8.3.2008, 11:46
- - ViGOur   Цитата(Litkevich Yuriy @ 8.3.2008, 11:35)...   8.3.2008, 12:13
- - Litkevich Yuriy   ну вот, то ли потому что снес все и поставил занов...   8.3.2008, 22:14
- - Litkevich Yuriy   для облегчения себе жизни в отсутствии Qt'вого...   8.3.2008, 22:44
- - AD   прочитал. Не совсем понял, т.е. если я хочу на чуж...   11.3.2008, 13:05
- - Litkevich Yuriy   без лишних действий несколько вариантов: 1 статиче...   11.3.2008, 13:15
|- - AD   Цитатабез лишних действий несколько вариантов: 1 с...   11.3.2008, 13:26
- - Litkevich Yuriy   по 4п. Deploying an Application on Qt/Windows по 5...   11.3.2008, 13:39
- - Litkevich Yuriy   Цитата(AD @ 11.3.2008, 16:26) В будущем в...   11.3.2008, 13:46
|- - AD   Цитата(Litkevich Yuriy @ 11.3.2008, 13:46...   11.3.2008, 13:57
- - Litkevich Yuriy   По поводу распространения программ использующих пл...   24.3.2008, 8:33
|- - blondinka   Помогите, пожалуйста, блондинке собрать QT!...   8.4.2008, 9:13
|- - shadone   Цитата(blondinka @ 8.4.2008, 8:13) Помоги...   8.4.2008, 10:16
|- - blondinka   Цитата(shadone @ 8.4.2008, 10:16) Цитата(...   8.4.2008, 10:29
- - ViGOur   Что пишет хоть?   8.4.2008, 10:36


Быстрый ответОтветить в данную темуНачать новую тему
Теги
Нет тегов для показа


1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0




RSS Текстовая версия Сейчас: 20.4.2024, 5:38