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

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

Страниц: [1]   Вниз
  Печать  
Автор Тема: Building Qt/Android on Windows  (Прочитано 5578 раз)
iLya84a
Гость
« : Май 13, 2013, 13:04 »

Здравствуйте!
Все делаю по инструкции:
http://qt-project.org/wiki/building_qt-android_on_windows
Во время конфигурации вылезает ошибка:
Код:
C:/Qt/build/qt5/qtbase/bin/qmake C:/Qt/build/qt5/qt.pro
C:/Qt/build/qt5/qtbase/bin/qmake" не является внутренней или внешней командой...

Даже при вызове configure.bat c параметром -help вылезает эта ошибка.
Кто-нибудь сталкивался?
Заранее спасибо за любые подсказки!
« Последнее редактирование: Май 15, 2013, 14:48 от iLya84a » Записан
thechicho
Гость
« Ответ #1 : Май 13, 2013, 14:09 »

SET QTDIR=C:\Qt\4.7.4
SET MINGWDIR=C:\mingw
SET QMAKESPEC=win32-g++
 
SET PATH=%QTDIR%\bin;%MINGWDIR%\bin;%SystemRoot%\System32
 
cmd.exe

я такой батник юзал как-то, чтобы собирать из консоли проги.

попробуй c
SET QTDIR=C:\Qt\build\qt5\qtbase
Записан
thechicho
Гость
« Ответ #2 : Май 13, 2013, 14:13 »

либо как по мануалу http://qt-project.org/doc/qt-4.8/install-win.html
This is done by adding c:\Qt\4.8.4\bin to the PATH variable.

http://hashcode.ru/questions/153628/windows-%D0%BA%D0%B0%D0%BA-%D0%B4%D0%BE%D0%B1%D0%B0%D0%B2%D0%B8%D1%82%D1%8C-%D0%B2-%D0%BF%D0%B5%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%BD%D1%83%D1%8E-%D0%BE%D0%BA%D1%80%D1%83%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F-path-%D0%BF%D1%83%D1%82%D1%8C

хотя для 5ой версии изменились рекомендации
http://qt-project.org/doc/qt-5.0/qtdoc/install-win.html
« Последнее редактирование: Май 13, 2013, 14:15 от thechicho » Записан
iLya84a
Гость
« Ответ #3 : Май 13, 2013, 15:15 »

thechicho, спасибо!
Установка PATH вручную в батнике исправила ситуацию.
Возьму себе за правило так делать!
Конфигурация прошла успешно.

Теперь во время сборки получаю ошибку:
Код:
In file included from ..\..\include/QtGui/qopengl.h:1:0,
                 from ..\..\include\QtGui\5.1.0\QtGui/qpa/../../../../../src/gui/kernal/qplatformopenglcontext.h:60,
                 from ..\..\include\QtGui\5.1.0\QtGui/qpa/qplatformopenglcontext.h:1,
                 from ..\..\include\QtGui\5.1.0\QtGui/qpa/../../../../../src/gui/kernal/qplatformwindow.h:59,
                 from ..\..\include\QtGui\5.1.0\QtGui/qpa/qplatformwindow.h:1,
                 from ..\..\include\QtGui\5.1.0\QtGui/private/../../../../../src/gui/kernal/qwindow_p.h:57
                 from ..\..\include\QtGui\5.1.0\QtGui/private/qwindow_p.h:1,
                 from painting\qplatformbackingstore.cpp:45:
..\..\include/QtGui/../../src/gui/opengl/qopengl.h:82:25: fatal error: GLES2/gl2.h: No such file or directory
compilation terminated.

До ошибки успешно собрались только Qt5Core, Qt5Xml, Qt5Sql, Qt5Concurrent, Qt5Test, Qt5Network
« Последнее редактирование: Май 15, 2013, 14:51 от iLya84a » Записан
iLya84a
Гость
« Ответ #4 : Май 14, 2013, 12:50 »

После добавления в конфигурацию параметра -opengl desktop пропала ошибка (GLES2/gl2.h: No such file or directory)
собрались еще несколько либ: Qt5Gui, Qt5Widgets, Qt5PrintSupport, Qt5OpenGL, Qt5Svg, Qt5Script, Qt5ScriptTools, Qt5XmlPatterns
« Последнее редактирование: Май 15, 2013, 14:38 от iLya84a » Записан
iLya84a
Гость
« Ответ #5 : Май 15, 2013, 14:47 »

Теперь проблема с Qt5V8. Без нее не получится собрать QtQml и Qt5Quick

Код:
./.obj\release_shared\execution.o:execution.cc:(.text+0x183): undefined reference to `v8::internal::Simulator::current(v8::internal::Isolate*)'
./.obj\release_shared\execution.o:execution.cc:(.text+0x1bb): undefined reference to `v8::internal::Simulator::Call(unsigned char*, int, ...)'
./.obj\release_shared\execution.o:execution.cc:(.text+0xc18): undefined reference to `v8::internal::Simulator::current(v8::internal::Isolate*)'
./.obj\release_shared\execution.o:execution.cc:(.text+0xc1f): undefined reference to `v8::internal::Simulator::StackLimit() const'
./.obj\release_shared\execution.o:execution.cc:(.text+0x146b): undefined reference to `v8::internal::Simulator::current(v8::internal::Isolate*)'
./.obj\release_shared\execution.o:execution.cc:(.text+0x1472): undefined reference to `v8::internal::Simulator::StackLimit() const'
./.obj\release_shared\execution.o:execution.cc:(.text+0x1480): undefined reference to `v8::internal::Simulator::current(v8::internal::Isolate*)'
./.obj\release_shared\execution.o:execution.cc:(.text+0x1487): undefined reference to `v8::internal::Simulator::StackLimit() const'
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: ./.obj\release_shared\execution.o: bad reloc address 0x20 in section `.eh_frame'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[4]: *** [C:\Qt\build\qt5\qtbase\lib\Qt5V8.dll] Error 1
mingw32-make.exe[3]: *** [release] Error 2
mingw32-make.exe[2]: *** [sub-v8-make_first-ordered] Error 2
mingw32-make.exe[1]: *** [sub-src-make_first] Error 2
mingw32-make.exe: *** [module-qtjsbackend-make_first] Error 2
mingw32-make.exe: *** Waiting for unfinished jobs....
Записан
iLya84a
Гость
« Ответ #6 : Май 16, 2013, 11:06 »

Добавил этот баг в багтрекер.
Записан
iLya84a
Гость
« Ответ #7 : Май 22, 2013, 14:28 »

Оставил пока это занятие и сел за Ubuntu. Все работает!
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  


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