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

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

Страниц: [1]   Вниз
  Печать  
Автор Тема: сборкаQt5 raspberrypi?  (Прочитано 3847 раз)
anv
Гость
« : Октябрь 04, 2012, 19:03 »

Всем привет.
Действую по следующей инструкции:
Building Qt 5 qtbase module

First, get a copy of the qtbase module:
mkdir -p ~/Code/qt5
cd ~/Code/qt5
git clone git://gitorious.org/qt/qtbase.git
cd qtbase

Now configure qtbase with the following command: ./configure -prefix /usr -hostprefix $BSQUASK_HOST_DIR/usr -release -device pi -make libs \
-device-option CROSS_COMPILE=$BSQUASK_HOST_DIR/usr/bin/arm-raspberrypi-linux-gnueabi- \
-device-option DISTRO=bsquask -sysroot $BSQUASK_STAGING_DIR -no-neon -opensource -confirm-license

And build qtbase:
make

And install everything into your SDK with:
make install

Now if you added $BSQUASK_HOST_DIR/usr/bin to your PATH as suggested above, you will see that running which qmake shows the version of qmake you just built. This is what you will use to cross compile Qt5 projects for Raspberry Pi.
.....................................................................................
Но на этапе конфигурации ругается:Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
WARNING: Unable to find file .device.vars
No QPA platform plugin enabled!
 If you really want to build without a QPA platform plugin you must pass
 -no-qpa-platform-guard to configure. Doing this will
 produce a Qt that can not run GUI applications.
 The dependencies needed for xcb to build are listed in
 src/plugins/platforms/xcb/README
.................................................................
Прочитал,что не хватает sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev

Вроде бы скачалось,но все равно пишет то же самое.

« Последнее редактирование: Октябрь 10, 2012, 14:13 от anv » Записан
anv
Гость
« Ответ #1 : Октябрь 10, 2012, 14:28 »

Пробую по другой инструкции:http://qt-project.org/wiki/RaspberryPi_Beginners_guide
Сконфигурировал:
Код:
Debug .................. no
C++11 support .......... yes
pkg-config ............. yes
QtDBus module .......... no
QtConcurrent code ...... yes
QtGui module ........... yes
QtWidgets module ....... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
QML debugging .......... yes
PCH support ............ no
iWMMXt support ......... no
NEON support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... no
Iconv support .......... yes
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
zlib support ........... system
Session management ..... auto
libudev support ........ no
OpenGL support ......... yes (OpenGL ES 2.x)
OpenVG support ......... no
XShape support ......... auto
XVideo support ......... auto
XSync support .......... auto
Xinerama support ....... runtime
Xcursor support ........ runtime
Xfixes support ......... runtime
Xrandr support ......... runtime
Xi support ............. runtime
Xi2 support ............ auto
MIT-SHM support ........ auto
FontConfig support ..... no
XKB Support ............ auto
immodule support ....... yes
GTK theme support ...... no
SQLite support ......... plugin (qt)
OpenSSL support ........ no
Alsa support ........... no
libICU support ......... no
PCRE support ........... qt
Xcb support ............ no
Xrender support ........ no
EGLFS support .......... yes
DirectFB support ....... no
LinuxFB support ........ yes
KMS support ............ no


Во время сборки ошибки не заметил(наверно пропустил). Вроде бы собралась.make install.
Код:
make[2]: Leaving directory `/home/anval/opt/qt5/qtbase/src/concurrent'
cd gui/ && ( test -f Makefile || /home/anval/opt/qt5/qtbase/bin/qmake /home/anval/opt/qt5/qtbase/src/gui/gui.pro -o Makefile ) && make -f Makefile install
make[2]: Entering directory `/home/anval/opt/qt5/qtbase/src/gui'
make[2]: *** No rule to make target `/mnt/rasp-pi-rootfs/opt/vc/include/GLES2/gl2.h', needed by `.obj/release-shared/qwindowsysteminterface.o'.  Stop.
make[2]: Leaving directory `/home/anval/opt/qt5/qtbase/src/gui'
make[1]: *** [sub-gui-install_subtargets] Error 2
make[1]: Leaving directory `/home/anval/opt/qt5/qtbase/src'
make: *** [sub-src-install_subtargets] Error 2
anval@anval-desktop:~/opt/qt5/qtbase$


Установил libgles2-mesa libgles2-mesa-dev.

Попробовал make - та же ошибка.
Может надо было  устанавливать(mesa) в директорию с qt? Или надо заново собрать?
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  


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