Git Product home page Git Product logo

Comments (11)

vj4sothername avatar vj4sothername commented on May 18, 2024

libboost1.74-all-dev
libsrtp2-dev
libsqlite0-dev

will install. thats on the latest update as of today for the pi

from qtonraspberrypi.

PhysicsX avatar PhysicsX commented on May 18, 2024

Hello,

You should not have installed manually. If you can not find this with apt-get or apt cache search that means you are using different os or different raspberry pi version. If it is so, this tutorial may fail for you. Or at least you should do some extra steps.

from qtonraspberrypi.

vj4sothername avatar vj4sothername commented on May 18, 2024

they where installed with apt-get having used apt cache search to find them. is it not simply the latest versions?

If this is a case of the latest pi version you may need to specify what version you are running as I simply followed the update steps.

I am facing issues with the Compile the Qt6.3.0 stage after running

"ERROR: The OpenGL functionality tests failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
"

I'll wipe everything and start again.

from qtonraspberrypi.

PhysicsX avatar PhysicsX commented on May 18, 2024

If you are using the latest rasp how you can not install the Unable to locate package libboost1.71-all-dev ? I do not understand.

I mentioned it here 2022-04-04-raspios-bullseye-armhf. Please read the page.
If you use something different then here probably you can see issues.

I checked as you see also it is latest version. 04.04. Are you using the raspberry pi 4?

from qtonraspberrypi.

vj4sothername avatar vj4sothername commented on May 18, 2024

Pi 4, maybe i had the 64bit os it was built the other month and i forgot... Started from scratch, new pi build matching everything you said including the firmware. Fresh ubuntu install 22.04 build and now its stuck at the compiler.

`- The CXX compiler identification is GNU 8.3.0
-- The C compiler identification is GNU 8.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/rpi/rpi-gcc-8.3.0/bin/arm-linux-gnueabihf-gcc
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /opt/rpi/rpi-gcc-8.3.0/bin/arm-linux-gnueabihf-g++
-- Check for working CXX compiler: /opt/rpi/rpi-gcc-8.3.0/bin/arm-linux-gnueabihf-g++ - broken
CMake Error at /usr/local/share/cmake-3.23/Modules/CMakeTestCXXCompiler.cmake:62 (message):
The C++ compiler

"/opt/rpi/rpi-gcc-8.3.0/bin/arm-linux-gnueabihf-g++"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/ulas/qt-cross/CMakeFiles/CMakeTmp`

from qtonraspberrypi.

PhysicsX avatar PhysicsX commented on May 18, 2024

I think you missed some steps. Could you please share the os version
output of lsb-release or another command.
Also history. Lets check.
This can happen when your os or glibc or toolchain is not compatible
After updating the rasp os, did you update the sysroot again? you should delete all sysroot and copy again.

from qtonraspberrypi.

vj4sothername avatar vj4sothername commented on May 18, 2024

Just started again..... exactly the same build, using the same file.

las@ulas:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

ulas@ulas:~$ uname -a
Linux ulas 5.15.0-27-generic #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Had to sudo mkdir /opt/rpi

its got further but still no config.

ulas@ulas:~/qt-cross$ cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_FEATURE_eglfs_egldevice=ON -DQT_FEATURE_eglfs_gbm=ON
-DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF
-DQT_HOST_PATH=/home/ulas/qt6Host -DCMAKE_STAGING_PREFIX=/home/ulas/qt6rpi
-DCMAKE_INSTALL_PREFIX=/home/ulas/qt6crosspi -DCMAKE_PREFIX_PATH=/home/ulas/rpi-sdk/sysroot/usr/lib/
-DCMAKE_TOOLCHAIN_FILE=/home/ulas/qt-cross/toolchain.cmake /home/ulas/qt-cross/qtbase-everywhere-src-6.3.0/
-- The CXX compiler identification is GNU 8.3.0
-- The C compiler identification is GNU 8.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/rpi/rpi-gcc-8.3.0/bin/arm-linux-gnueabihf-gcc
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/rpi/rpi-gcc-8.3.0/bin/arm-linux-gnueabihf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/rpi/rpi-gcc-8.3.0/bin/arm-linux-gnueabihf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Could NOT find double-conversion (missing: double-conversion_DIR)
-- Could NOT find md4c (missing: md4c_DIR)
CMake Warning (dev) at cmake/3rdparty/extra-cmake-modules/find-modules/FindXCB.cmake:180 (message):
XINPUT from XCB was requested: this is EXPERIMENTAL and is likely to
unavailable on many systems!
Call Stack (most recent call first):
cmake/QtFindPackageHelpers.cmake:130 (find_package)
src/gui/configure.cmake:119 (qt_find_package)
cmake/QtFeature.cmake:573 (include)
src/CMakeLists.txt:12 (qt_feature_evaluate_features)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find double-conversion (missing: double-conversion_DIR)
-- Could NOT find md4c (missing: md4c_DIR)
CMake Warning (dev) at cmake/3rdparty/extra-cmake-modules/find-modules/FindXCB.cmake:180 (message):
XINPUT from XCB was requested: this is EXPERIMENTAL and is likely to
unavailable on many systems!
Call Stack (most recent call first):
cmake/QtFindPackageHelpers.cmake:130 (find_package)
src/gui/configure.cmake:119 (qt_find_package)
cmake/QtModuleHelpers.cmake:570 (include)
src/gui/CMakeLists.txt:53 (qt_internal_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/ulas/qt-cross

history:
1 ~/qtCrossExample$ lsb_release -a
2 lsb_release -a
3 uname -a
4 sudo apt-get update
5 sudo apt-get upgrade
6 sudo apt-get install make build-essential libclang-dev ninja-build gcc git bison python3 gperf pkg-config libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev libatspi2.0-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
7 sudo apt install libssl-dev
8 git clone https://github.com/Kitware/CMake.git
9 cd CMake
10 ./bootstrap && make && sudo make install
11 cd ~
12 wget https://download.qt.io/official_releases/qt/6.3/6.3.0/submodules/qtbase-everywhere-src-6.3.0.tar.xz
13 mkdir qt6HostBuild
14 cd qt6HostBuild
15 ar xf ../qtbase-everywhere-src-6.3.0.tar.xz
16 tar xf ../qtbase-everywhere-src-6.3.0.tar.xz
17 cd qtbase-everywhere-src-6.3.0
18 cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DINPUT_opengl=es2 -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/home/ulas/qt6Host
19 cmake --build . --parallel 2
20 cmake --install .
21 cd $home
22 mkdir /opt/rpi
23 sudo mkdir /opt/rpi
24 sudo wget www.ulasdikme.com/yedek/rpi-gcc-8.3.0_linux.tar.xz
25 cd /opt/rpi
26 sudo wget www.ulasdikme.com/yedek/rpi-gcc-8.3.0_linux.tar.xz
27 tar xf rpi-gcc-8.3.0_linux.tar.xz
28 sudo tar xf rpi-gcc-8.3.0_linux.tar.xz
29 ls -l | grep rpi-gcc-8.3.0
30 cd $HOME
31 mkdir rpi-sdk
32 cd rpi-sdk
33 mkdir sysroot sysroot/usr sysroot/opt
34 rsync -avz --rsync-path="sudo rsync" [email protected]:/usr/include sysroot/usr
35 rsync -avz --rsync-path="sudo rsync" [email protected]:/lib sysroot
36 rsync -avz --rsync-path="sudo rsync" [email protected]:/usr/lib sysroot/usr
37 rsync -avz --rsync-path="sudo rsync" [email protected]:/opt/vc sysroot/opt
38 wget https://raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py
39 chmod +x sysroot-relativelinks.py
40 python3 sysroot-relativelinks.py sysroot
41 cd ..
42 mkdir qt-cross
43 cd qt-cross
44 sudo nano toolchain.cmake
45 ls
46 tar xf ../qtbase-everywhere-src-6.3.0.tar.xz
47 cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_FEATURE_eglfs_egldevice=ON -DQT_FEATURE_eglfs_gbm=ON -DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DQT_HOST_PATH=/home/ulas/qt6Host -DCMAKE_STAGING_PREFIX=/home/ulas/qt6rpi -DCMAKE_INSTALL_PREFIX=/home/ulas/qt6crosspi -DCMAKE_PREFIX_PATH=/home/ulas/rpi-sdk/sysroot/usr/lib/ -DCMAKE_TOOLCHAIN_FILE=/home/ulas/qt-cross/toolchain.cmake /home/ulas/qt-cross/qtbase-everywhere-src-6.3.0/

from qtonraspberrypi.

PhysicsX avatar PhysicsX commented on May 18, 2024

Config is in the file. check the directory. I explain this in the video.

from qtonraspberrypi.

vj4sothername avatar vj4sothername commented on May 18, 2024

you are correct i apologies. i think trying to get this working has fried my brain. HelloQt6 example is working.
Thank you

from qtonraspberrypi.

vj4sothername avatar vj4sothername commented on May 18, 2024

Trying to install the modules and cant get qtdocs to install. Will you be doing follow up guides/vids on this?

from qtonraspberrypi.

PhysicsX avatar PhysicsX commented on May 18, 2024

So as I understand you did the compilation successfully for qtbase6. I am going to clsoe this ticket.

Yes I did module compilation and in the following days I will publish from here as a second part. :)

I will not work on qtdocs maybe later.

from qtonraspberrypi.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.