You are not logged in.

#1 2015-10-18 16:56:57

goulashsoup
Member
Registered: 2015-10-08
Posts: 4

Problem with Installation of RaspberryPi for QT5 following a guide

Hello,

So I followed the RaspberryPi Beginners Guide.

While following the guide I also had some trouble which I could handle myself. But now I really don´t find anything about it in the web and also don´t really know what I should searching for. While I had some trouble I already did the following:

pacman -S qt5-base
pacman -S lib32-zlib
pacman -S gcc
pacman -S lib32-libstdc++5
pacman -S gcc-multilib

and I also enabled “[testing]” and “[multilib-testing]” in /etc/pacman.conf

I am working with Arch Linux x86_64 and the guide is for ubuntu/debian.

1. Does it only work with ubuntu / debian ?

You can watch the commandlines from the Beginners Guide it is not so much. The problem I have appears after execute this line:

./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi

Well at least for me it is not so clear what the code does, but I think I am able to explain the problem.
After I execute the line the executing is divided into discernible parts. Phase 1 works fine. And problems beginning with phase 2:

Running configuration tests (phase 2)...
Found pkg-config from $PATH: /usr/bin/pkg-config
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set and
the host's .pc files would be used (even if you set PKG_CONFIG_PATH).
Set this variable to the directory that contains target .pc files
for pkg-config to function correctly when cross-compiling or
use -pkg-config to override this test.
Note: PKG_CONFIG_SYSROOT_DIR automatically set to /mnt/rasp-pi-rootfs
Determining architecture... ()

So here is the first problem I have "Set this variable". Well I do not really know which "variable" is meant to set. I also do not know why the process proceed when something is not right to proceed it.
First Questions:
2. Which variable is meant to set to the directory that contains target .pc files?
3. How can I find out which directory is meant ?
4. Does it matter to proceed the process?

So the following fatal errors are following:

/home/test23/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -g -Wall -W -fPIC  -I. -I../../mkspecs/devices/linux-rasp-pi-g++ -o arch.o arch.cpp
arch.cpp:37:19: fatal error: stdio.h: file or directory not found
/home/test23/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/include/c++/4.7.2/arm-linux-gnueabihf/bits/os_defines.h:40:22: fatal error: features.h: file or directory not found

3 times fatal error with features.h

/home/test23/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/devices/linux-rasp-pi-g++ -o ipc.o ipc.cpp
ipc.cpp:34:23: fatal error: sys/types.h: file or directory not found

2 times with sys/types.h

I only will list the other files with fatal errors:

zlib.h
mtdev.h
png.h
sqlcli.h
ibase.h
oci.h
sql.h
libpq-fe.h
sqlite.h
sybfront.h
cups/cups.h
iconv.h
dbus/dbus.h
glib.h
unicode/utypes.h
pulse/pulseaudio.h
GLES2/gl2.h

So I realy do not have a clue whats wrong. I guess it has something todo with the system. I am working with x86_64 and not i686.

5. Whats Wrong ? Is there a package or a bunch of packages I need ?

Last edited by goulashsoup (2015-10-18 16:59:49)

Offline

#2 2015-10-19 17:55:00

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: Problem with Installation of RaspberryPi for QT5 following a guide

What exactly do you run in your Pi? Is there no Qt5 in the archarm's repos?

Offline

#3 2015-10-19 18:01:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Problem with Installation of RaspberryPi for QT5 following a guide

Awebb wrote:

Is there no Qt5 in the archarm's repos?

That should probably be the question posed to the archlinuxARM forums as these are for archlinux only.

https://bbs.archlinux.org/viewtopic.php?id=153431

Closed.  Binned.

Edit: My appologies for the misinterpretation.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2015-10-19 19:39:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Problem with Installation of RaspberryPi for QT5 following a guide

Reopened upon appeal: OP is cross compiling on x86_64


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-10-20 06:08:34

goulashsoup
Member
Registered: 2015-10-08
Posts: 4

Re: Problem with Installation of RaspberryPi for QT5 following a guide

Awebb wrote:

What exactly do you run in your Pi? Is there no Qt5 in the archarm's repos?

I have totally nothing todo with archarm. I am just want "to be able to compile Qt5 applications for the Raspberry Pi" like the beginners guide said.

And also why does it matter to know what I run in my PI? I have to ask a fellow student about that and I will report back.

Last edited by goulashsoup (2015-10-20 06:21:42)

Offline

#6 2015-10-20 07:36:37

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: Problem with Installation of RaspberryPi for QT5 following a guide

It matters, because cross compiling software between architectures and distributions adds a whole new layer of... challenges.

Offline

#7 2015-10-21 19:25:53

goulashsoup
Member
Registered: 2015-10-08
Posts: 4

Re: Problem with Installation of RaspberryPi for QT5 following a guide

Awebb wrote:

It matters, because cross compiling software between architectures and distributions adds a whole new layer of... challenges.

Yes, but the problem I have at the moment has only something todo with my OP ArchLinux, because without a working compiler I will compile nothing...

But if its necessary: Why are using Raspbian

Trilby wrote:

Edit: My appologies for the misinterpretation.

Ok thanks, I only was a little confused...

Offline

#8 2017-07-14 15:49:00

laudin
Member
Registered: 2017-01-28
Posts: 16

Re: Problem with Installation of RaspberryPi for QT5 following a guide

I had the same problem and in my case the problem was that the sysroot doesn't contain the necessary files.

Offline

#9 2017-07-15 11:24:38

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: Problem with Installation of RaspberryPi for QT5 following a guide

Thanks for sharing. I'm going to go ahead and close this old topic now.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB