neuronalmotion / qtrpi

An easy-to-use environment to cross-compile Qt applications for Raspberry Pi from your desktop.
MIT License
104 stars 40 forks source link

qtbase always fails with "undefined reference to __dlsym" in qtrpi #88

Open wellingtonpg opened 5 years ago

wellingtonpg commented 5 years ago

I have tried to execute "init-qtrpi-full.sh" in both Ubuntu VM and "debian:jessie-slim" Docker container and the following command never created /dev/loop0p2:

sudo losetup -P /dev/loop0 ${RASPBIAN_BASENAME}.img

I then changed it to the following in order to mount the image (offset for Jessie):

sudo mount -v -o offset=70254592 -t ext4 ${RASPBIAN_BASENAME}.img /mnt/raspbian

This fixed the issue but now I am getting "undefined reference to __dlsym" every time the script tries to build qtbase.

image

Am I missing a package? Is the script missing something? Maybe something related to GCC arguments (https://stackoverflow.com/questions/20369672/undefined-reference-to-dlsym)?

wellingtonpg commented 5 years ago

@GuillaumeLazar Can you please help?

GuillaumeLazar commented 5 years ago

I have never get this issue. For information I'm using qtrpi on Ubuntu 16.04 and 18.04 (no VM or docker but physical host).

What is your Ubuntu VM version?

wellingtonpg commented 5 years ago

I tried to use Ubuntu 18.04 Desktop. I managed to resolve the issue by running the following:

sudo ln -s /opt/qtrpi/raspbian/sysroot/lib/arm-linux-gnueabihf /lib/

So it seems like the scripts didn't properly fix the paths