Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Pi LIBs #7

Closed
vj4sothername opened this issue May 11, 2022 · 11 comments
Closed

Missing Pi LIBs #7

vj4sothername opened this issue May 11, 2022 · 11 comments

Comments

@vj4sothername
Copy link

Hello,

I get the below when setting up the Pi:

Unable to locate package libboost1.71-all-dev

E: Couldn't find any package by glob 'libboost1.71-all-dev'

E: Couldn't find any package by regex 'libboost1.71-all-dev'

E: Unable to locate package libsrtp0-dev

and in the second batch

E: Unable to locate package libsqlite0-dev

Thanks for the work and vid on this :-)

@vj4sothername
Copy link
Author

vj4sothername commented May 11, 2022

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

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

@PhysicsX
Copy link
Owner

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.

@vj4sothername
Copy link
Author

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.

@PhysicsX
Copy link
Owner

PhysicsX commented May 11, 2022

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?

@vj4sothername
Copy link
Author

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`

@PhysicsX
Copy link
Owner

PhysicsX commented May 11, 2022

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.

@vj4sothername
Copy link
Author

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" pi@192.168.0.207:/usr/include sysroot/usr
35 rsync -avz --rsync-path="sudo rsync" pi@192.168.0.207:/lib sysroot
36 rsync -avz --rsync-path="sudo rsync" pi@192.168.0.207:/usr/lib sysroot/usr
37 rsync -avz --rsync-path="sudo rsync" pi@192.168.0.207:/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/

@PhysicsX
Copy link
Owner

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

@vj4sothername
Copy link
Author

vj4sothername commented May 12, 2022

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

@vj4sothername
Copy link
Author

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

@PhysicsX
Copy link
Owner

PhysicsX commented May 12, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants