Russian Qt Forum
Ноябрь 02, 2024, 09:16 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.
Вам не пришло письмо с кодом активации?

Войти
 
  Начало   Форум  WIKI (Вики)FAQ Помощь Поиск Войти Регистрация  

Страниц: [1]   Вниз
  Печать  
Автор Тема: Не могу статически собрать Qt 4.7.2  (Прочитано 5272 раз)
merke
Гость
« : Апрель 17, 2011, 11:56 »

Добрый день.

ОС: Windows XP SP3
Скачал исходники Qt 4.7.2.
Далее распаковал исходники в папку C:\Qt\Qt_static\Qt
Запускаю Qt Command Prompt от Qt 4.7.0 (динамическая сборка).
Перехожу в каталог с исходниками, в командной строке прописываю mingw32-make.exe confclean - на что выдается ошибка:

Код:
C:\Qt\Qt_static\Qt>mingw32-make.exe confclean
mingw32-make.exe: *** No rule to make target `confclean'.  Stop.

Далее пытаюсь сконфигурировать командой: configure.exe -static -release -no-qt3support -no-exceptions. Соглашаюсь с опенсорсной лицензией и мне выдается вот такая фигатень:

Код:
Binaries installed to.......C:/Qt/Qt_static/Qt/bin
Docs installed to...........C:/Qt/Qt_static/Qt/doc
Data installed to...........C:/Qt/Qt_static/Qt
Translations installed to...C:/Qt/Qt_static/Qt/translations
Examples installed to.......C:/Qt/Qt_static/Qt/examples
Demos installed to..........C:/Qt/Qt_static/Qt/demos

WARNING: Using static linking will disable the use of plugins.
         Make sure you compile ALL needed modules into the library.
Creating qmake...
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:\Qt\Qt_static\Qt/include -IC:\Qt\Qt_static
\Qt/include/QtCore -IC:\Qt\Qt_static\Qt/include -IC:\Qt\Qt_static\Qt/include/QtC
ore -IC:\Qt\Qt_static\Qt/src/corelib/global -IC:\Qt\Qt_static\Qt/src/corelib/xml
 -IC:\Qt\Qt_static\Qt/mkspecs/win32-g++ -IC:\Qt\Qt_static\Qt/tools/shared -DQT_N
O_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -D
QT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO
_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPE
D -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
In file included from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/global
/qglobal.h:62,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qglobal.h:1,
                 from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/tools/
qalgorithms.h:45,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qalgorithms.h:1,
                 from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/tools/
qstringlist.h:45,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qstringlist.h:1,
                 from project.h:45,
                 from project.cpp:42:
C:\Qt\Qt_static\Qt/include/QtCore/qconfig.h:1:46: error: ../../src/corelib/globa
l/qconfig.h: No such file or directory
mingw32-make: *** [project.o] Error 1
del project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o option.o win
makefile.o projectgenerator.o property.o meta.o makefiledeps.o metamakefile.o xm
loutput.o pbuilder_pbx.o borland_bmake.o msvc_nmake.o msvc_vcproj.o msvc_vcxproj
.o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.
o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o qbitarray
.o qbuffer.o qbytearray.o qcryptographichash.o qvsnprintf.o qbytearraymatcher.o
qconfig.o qdatetime.o qdir.o qdiriterator.o qfile.o qtemporaryfile.o qfileinfo.o
 qabstractfileengine.o qfsfileengine.o qfsfileengine_iterator.o qfsfileengine_wi
n.o qfsfileengine_iterator_win.o qglobal.o qhash.o qiodevice.o qlibraryinfo.o ql
ist.o qlinkedlist.o qlocale.o qmalloc.o qmap.o qregexp.o qtextcodec.o qutfcodec.
o qstring.o qstringlist.o qsystemlibrary.o qtextstream.o quuid.o qvector.o qurl.
o qsettings.o qsettings_win.o qvariant.o qmetatype.o qxmlstream.o qxmlutils.o qn
umeric.o
Не удается найти C:\Qt\Qt_static\Qt\qmake\project.o
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:\Qt\Qt_static\Qt/include -IC:\Qt\Qt_static
\Qt/include/QtCore -IC:\Qt\Qt_static\Qt/include -IC:\Qt\Qt_static\Qt/include/QtC
ore -IC:\Qt\Qt_static\Qt/src/corelib/global -IC:\Qt\Qt_static\Qt/src/corelib/xml
 -IC:\Qt\Qt_static\Qt/mkspecs/win32-g++ -IC:\Qt\Qt_static\Qt/tools/shared -DQT_N
O_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -D
QT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO
_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPE
D -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
In file included from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/global
/qglobal.h:62,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qglobal.h:1,
                 from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/tools/
qalgorithms.h:45,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qalgorithms.h:1,
                 from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/tools/
qstringlist.h:45,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qstringlist.h:1,
                 from project.h:45,
                 from project.cpp:42:
C:\Qt\Qt_static\Qt/include/QtCore/qconfig.h:1:46: error: ../../src/corelib/globa
l/qconfig.h: No such file or directory
mingw32-make: *** [project.o] Error 1
Building qmake failed, return code 2


C:\Qt\Qt_static\Qt>cd mingw32-make confclean
Системе не удается найти указанный путь.

C:\Qt\Qt_static\Qt>mingw32-make confclean
mingw32-make: *** No rule to make target `confclean'.  Stop.

C:\Qt\Qt_static\Qt>mingw32-make.exe confclean
mingw32-make.exe: *** No rule to make target `confclean'.  Stop.

C:\Qt\Qt_static\Qt>configure.exe -static -release -no-qt3support -no-exceptions
Which edition of Qt do you want to use ?
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.
o

This is the Qt for Windows Open Source Edition.

You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) version 2.1
or the GNU General Public License (GPL) version 3.

Type '3' to view the GNU General Public License version 3 (GPLv3).
Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.

Do you accept the terms of the license?
y

WARNING: Using static linking will disable the WebKit module.

Environment:
    INCLUDE=
      C:\Program Files\Microsoft Visual Studio\VC98\atl\include
      C:\Program Files\Microsoft Visual Studio\VC98\mfc\include
      C:\Program Files\Microsoft Visual Studio\VC98\include
    LIB=
      C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib
      C:\Program Files\Microsoft Visual Studio\VC98\lib
    PATH=
      C:\Qt\2010.05\qt\bin
      C:\Qt\2010.05\bin
      C:\Qt\2010.05\mingw\bin
      C:\WINDOWS\System32
You are licensed to use this software under the terms of the GNU GPL version 3.Y
ou are licensed to use this software under the terms of the Lesser GNU LGPL vers
ion 2.1.
See C:/Qt/Qt_static/Qt3

 or C:/Qt/Qt_static/QtL

Configuration:
    minimal-config
    small-config
    medium-config
    large-config
    full-config
    release
Qt Configuration:
    release
    zlib
    gif
    tiff
    jpeg
    png
    mng
    accessibility
    opengl
    s60
    ipv6
    script
    scripttools
    phonon
    phonon-backend
    multimedia
    audio-backend
    declarative
    native-gestures
    svg
    minimal-config
    small-config
    medium-config
    large-config
    full-config

QMAKESPEC...................win32-g++ (env)
Architecture................windows
Maketool....................mingw32-make
Debug symbols...............no
Link Time Code Generation...no
Accessibility support.......yes
STL support.................yes
Exception support...........no
RTTI support................yes
MMX support.................yes
3DNOW support...............yes
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
OpenVG support..............no
OpenSSL support.............no
QtDBus support..............no
QtXmlPatterns support.......no
Phonon support..............yes
QtMultimedia support........yes
WebKit support..............no
Declarative support.........yes
Declarative debugging.......yes
QtScript support............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........no

Third Party Libraries:
    ZLIB support............qt
    GIF support.............yes
    TIFF support............yes
    JPEG support............yes
    PNG support.............yes
    MNG support.............yes
    FreeType support........no

Styles:
    Windows.................yes
    Windows XP..............yes
    Windows Vista...........yes
    Plastique...............yes
    Cleanlooks..............yes
    Motif...................yes
    CDE.....................yes
    Windows CE..............no
    Windows Mobile..........no
    S60.....................no

Sql Drivers:
    ODBC....................no
    MySQL...................no
    OCI.....................no
    PostgreSQL..............no
    TDS.....................no
    DB2.....................no
    SQLite..................yes (qt)
    SQLite2.................no
    InterBase...............no

Sources are in..............C:\Qt\Qt_static\Qt
Build is done in............C:\Qt\Qt_static\Qt
Install prefix..............C:\Qt\Qt_static\Qt
Headers installed to........C:/Qt/Qt_static/Qt/include
Libraries installed to......C:/Qt/Qt_static/Qt/lib
Plugins installed to........C:/Qt/Qt_static/Qt/plugins
Imports installed to........C:/Qt/Qt_static/Qt/imports
Binaries installed to.......C:/Qt/Qt_static/Qt/bin
Docs installed to...........C:/Qt/Qt_static/Qt/doc
Data installed to...........C:/Qt/Qt_static/Qt
Translations installed to...C:/Qt/Qt_static/Qt/translations
Examples installed to.......C:/Qt/Qt_static/Qt/examples
Demos installed to..........C:/Qt/Qt_static/Qt/demos

WARNING: Using static linking will disable the use of plugins.
         Make sure you compile ALL needed modules into the library.
Creating qmake...
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:\Qt\Qt_static\Qt/include -IC:\Qt\Qt_static
\Qt/include/QtCore -IC:\Qt\Qt_static\Qt/include -IC:\Qt\Qt_static\Qt/include/QtC
ore -IC:\Qt\Qt_static\Qt/src/corelib/global -IC:\Qt\Qt_static\Qt/src/corelib/xml
 -IC:\Qt\Qt_static\Qt/mkspecs/win32-g++ -IC:\Qt\Qt_static\Qt/tools/shared -DQT_N
O_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -D
QT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO
_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPE
D -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
In file included from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/global
/qglobal.h:62,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qglobal.h:1,
                 from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/tools/
qalgorithms.h:45,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qalgorithms.h:1,
                 from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/tools/
qstringlist.h:45,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qstringlist.h:1,
                 from project.h:45,
                 from project.cpp:42:
C:\Qt\Qt_static\Qt/include/QtCore/qconfig.h:1:46: error: ../../src/corelib/globa
l/qconfig.h: No such file or directory
mingw32-make: *** [project.o] Error 1
del project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o option.o win
makefile.o projectgenerator.o property.o meta.o makefiledeps.o metamakefile.o xm
loutput.o pbuilder_pbx.o borland_bmake.o msvc_nmake.o msvc_vcproj.o msvc_vcxproj
.o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.
o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o qbitarray
.o qbuffer.o qbytearray.o qcryptographichash.o qvsnprintf.o qbytearraymatcher.o
qconfig.o qdatetime.o qdir.o qdiriterator.o qfile.o qtemporaryfile.o qfileinfo.o
 qabstractfileengine.o qfsfileengine.o qfsfileengine_iterator.o qfsfileengine_wi
n.o qfsfileengine_iterator_win.o qglobal.o qhash.o qiodevice.o qlibraryinfo.o ql
ist.o qlinkedlist.o qlocale.o qmalloc.o qmap.o qregexp.o qtextcodec.o qutfcodec.
o qstring.o qstringlist.o qsystemlibrary.o qtextstream.o quuid.o qvector.o qurl.
o qsettings.o qsettings_win.o qvariant.o qmetatype.o qxmlstream.o qxmlutils.o qn
umeric.o
Не удается найти C:\Qt\Qt_static\Qt\qmake\project.o
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:\Qt\Qt_static\Qt/include -IC:\Qt\Qt_static
\Qt/include/QtCore -IC:\Qt\Qt_static\Qt/include -IC:\Qt\Qt_static\Qt/include/QtC
ore -IC:\Qt\Qt_static\Qt/src/corelib/global -IC:\Qt\Qt_static\Qt/src/corelib/xml
 -IC:\Qt\Qt_static\Qt/mkspecs/win32-g++ -IC:\Qt\Qt_static\Qt/tools/shared -DQT_N
O_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -D
QT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO
_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPE
D -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
In file included from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/global
/qglobal.h:62,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qglobal.h:1,
                 from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/tools/
qalgorithms.h:45,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qalgorithms.h:1,
                 from C:\Qt\Qt_static\Qt/include/QtCore/../../src/corelib/tools/
qstringlist.h:45,
                 from C:\Qt\Qt_static\Qt/include/QtCore/qstringlist.h:1,
                 from project.h:45,
                 from project.cpp:42:
C:\Qt\Qt_static\Qt/include/QtCore/qconfig.h:1:46: error: ../../src/corelib/globa
l/qconfig.h: No such file or directory
mingw32-make: *** [project.o] Error 1
Building qmake failed, return code 2

Ребята, выручайте!!!

Буду очень рад помощи!
Записан
Mikhail
Программист
*****
Offline Offline

Сообщений: 587


Просмотр профиля
« Ответ #1 : Апрель 17, 2011, 12:08 »

Разберись с путями.
Qt Command Prompt от Qt 4.7.0 - посмотри пути.

В путях у тебя майкрософтовский компилятор присутствует - Microsoft Visual Studio\VC98
а компилируешь митгвой?
Записан
merke
Гость
« Ответ #2 : Апрель 17, 2011, 12:14 »

Компилирую  митгвой

Записан
merke
Гость
« Ответ #3 : Апрель 17, 2011, 12:17 »

Что предпринять посоветуете?
Записан
merke
Гость
« Ответ #4 : Апрель 17, 2011, 16:37 »

Ау есть кто?
Записан
blood_shadow
Гость
« Ответ #5 : Апрель 17, 2011, 16:53 »

если честно, меня как-то настораживают эти слеши в разные стороны
Код:
C:\Qt\Qt_static\Qt/include/QtCore/qconfig.h:1:46:
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  


Страница сгенерирована за 0.119 секунд. Запросов: 22.