Помощь - Поиск - Пользователи - Календарь
Полная версия этой страницы: Qt4 and Cygwin
Форум на CrossPlatform.RU > Библиотеки > Другие библиотеки
niXman
Здравствуйте!

Есть надобность скомпилить Qt4 в Cygwin.
Пробовал по разному. Устанавливал QMAKESPEC как win32-g++, linux-g++, cygwin-g++.
Не в какую! Куча ошибок при компиляции. При каждом варианте разные.
Помогите. Очень надо!

Спасибо!
ViGOur
А если попробовать настроить все, чтобы компилилось в винде, а потом запустить в сигвине?

И какие ошибки хоть? Небольшой пример приведи.
niXman
Цитата(ViGOur @ 1.7.2009, 20:33) *
А если попробовать настроить все, чтобы компилилось в винде

Это невозможно! Для того я и пытаюсь Qt4 скомпилить в Cygwin.
Программа которую я хочу скомпилировать, написана для KDE. Все ее компоненты, кроме GUI, я скомпилировал. Пришло время "мордочку" собрать. А без Qt4 это невозможно!

Цитата(ViGOur @ 1.7.2009, 20:33) *
И какие ошибки хоть? Небольшой пример приведи.

Сейчас начну с начала. Покажу на что ругается.
Litkevich Yuriy
niXman, ну SABROG вроде без проблем в нём Qt компилирует
niXman
Цитата(Litkevich Yuriy @ 1.7.2009, 22:06) *
SABROG вроде без проблем в нём Qt компилирует

В Cygwin-e ??? :shok:
Ща постучу...
niXman
Собираю qt-all-opensource-src-4.5.2, QMAKESPEC=linux-g++
configure - успешно.
qmake - успешно.
Ошибка вот где:
Цитата
/qt4/src/tools/bootstrap

Сообщение:
Цитата
In file included from ../../corelib/io/qfileinfo.cpp:46:
../../corelib/io/qfsfileengine_p.h:119: error: field `st' has incomplete type


следующая....
niXman
Собираю qt-all-opensource-src-4.5.2, QMAKESPEC=cygwin-g++
configure - успешно.
qmake - успешно.
Ошибка вот где:
Цитата
../../corelib/io/qtemporaryfile.cpp: In function `int _gettemp(char*, int*, int, int)':
../../corelib/io/qtemporaryfile.cpp:228: error: `QT_OPEN_LARGEFILE' undeclared (first use this function)
../../corelib/io/qtemporaryfile.cpp:228: error: (Each undeclared identifier is reported only once for each function it appears in.)
trdm
ну и пишет "undeclared" - незадекларирован/необъявлен.
Смотри пути к сорцам/заголовочникам.
niXman
Цитата(trdm @ 2.7.2009, 0:22) *
ну и пишет "undeclared" - незадекларирован/необъявлен.

Это шутка, да?
Не смешно!

Исправил.
Дело в том, что для Cygwin нет поддержки больших фалов. Но есть конфигурация для Cygwin.
Cygwin-ов я знаю всего две версии. Одна от РэдХат, вторая хз от кого. Любопытно для какой из них эта конфигурация.

Все еще собирается. Пока успешно. Жду финала.
Кстати. Длл-ки по объему меньше чем в Мингв-е.
niXman
Ошибка при компиляции QtWebKit.
Раскрывающийся текст

In file included from ../JavaScriptCore/wtf/unicode/Unicode.h:28,
from ../JavaScriptCore/pcre/pcre.h:45,
from ../JavaScriptCore/pcre/pcre_internal.h:82,
from ../JavaScriptCore/pcre/pcre_compile.cpp:46:
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `UChar32 WTF::Unicode::toLower(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:184: error: call of overloaded `toLower(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:316: note: candidates are: static uint QChar::toLower(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:317: note: static ushort QChar::toLower(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `UChar32 WTF::Unicode::toUpper(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:242: error: call of overloaded `toUpper(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:318: note: candidates are: static uint QChar::toUpper(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:319: note: static ushort QChar::toUpper(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `int WTF::Unicode::toTitleCase(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:300: error: call of overloaded `toTitleCase(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:320: note: candidates are: static uint QChar::toTitleCase(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:321: note: static ushort QChar::toTitleCase(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `UChar32 WTF::Unicode::foldCase(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:305: error: call of overloaded `toCaseFolded(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:322: note: candidates are: static uint QChar::toCaseFolded(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:323: note: static ushort QChar::toCaseFolded(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `bool WTF::Unicode::isPrintableChar(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:330: error: call of overloaded `category(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:301: note: candidates are: static QChar::Category QChar::category(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:302: note: static QChar::Category QChar::category(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `bool WTF::Unicode::isSeparatorSpace(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:335: error: call of overloaded `category(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:301: note: candidates are: static QChar::Category QChar::category(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:302: note: static QChar::Category QChar::category(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `bool WTF::Unicode::isPunct(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:347: error: call of overloaded `category(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:301: note: candidates are: static QChar::Category QChar::category(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:302: note: static QChar::Category QChar::category(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `bool WTF::Unicode::isLower(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:352: error: call of overloaded `category(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:301: note: candidates are: static QChar::Category QChar::category(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:302: note: static QChar::Category QChar::category(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `UChar32 WTF::Unicode::mirroredChar(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:357: error: call of overloaded `mirroredChar(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:310: note: candidates are: static uint QChar::mirroredChar(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:311: note: static ushort QChar::mirroredChar(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `uint8_t WTF::Unicode::combiningClass(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:362: error: call of overloaded `combiningClass(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:307: note: candidates are: static unsigned char QChar::combiningClass(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:308: note: static unsigned char QChar::combiningClass(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `WTF::Unicode::Direction WTF::Unicode::direction(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:384: error: call of overloaded `direction(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:303: note: candidates are: static QChar::Direction QChar::direction(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:304: note: static QChar::Direction QChar::direction(ushort)
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h: In function `WTF::Unicode::CharCategory WTF::Unicode::category(UChar32)':
../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:389: error: call of overloaded `category(UChar32&)' is ambiguous
../../../../include/QtCore/../../src/corelib/tools/qchar.h:301: note: candidates are: static QChar::Category QChar::category(uint)
../../../../include/QtCore/../../src/corelib/tools/qchar.h:302: note: static QChar::Category QChar::category(ushort)
make[1]: *** [.obj/release-shared/pcre_compile.o] Error 1
make[1]: Leaving directory `/home/Admin/qt4/src/3rdparty/webkit/WebCore'
SABROG
Толку то, я в цыгвине не собирал ниразу. Чё за версия Qt?
niXman
Цитата(SABROG @ 2.7.2009, 9:20) *
Чё за версия Qt?

qt-all-opensource-src-4.5.2
Litkevich Yuriy
Цитата(SABROG @ 2.7.2009, 12:20) *
Толку то, я в цыгвине не собирал ниразу
тыж вебкит в нём собирал
niXman
По теме есть предложения?
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.
Форум IP.Board © 2001-2024 IPS, Inc.