Unsolved Problem cross-compiling Qt5 from Ubuntu to Raspbian(Raspberry pi3)
-
@SGaist said in Problem cross-compiling Qt5 from Ubuntu to Raspbian(Raspberry pi3):
Your log is not complete, please restart without the
-j
parameter so you can have the exact point of failure.Hi SGaist, sorry for delay
The problem was the cross compiler, if I made the configuration with 4.9.3 v. It returned me the error I attached, but if I use the other one(4.7) cross compiling configuration works fine.
However when i run "make" I had the error. As the log is too big to attach here, i will send you the one drive link to the log file containng the error I received.
-
I can't see any error in the file you shared.
-
Sorry but the files was cutted. Now i have the correct one:
-
You can try the workaround described here.
-
Hi SGaist,
I had another error but the last disappered, i will link the log file.
https://1drv.ms/u/s!As3fa8j7GVzZl3som_ciawx9hu50
First lines were cutted, but there are the most important about the error.
-
I'd still opt for changing to a more recent version of gcc like 4.9
-
I tried to use gcc 4.9, but it returns the error during cross compiling configuration, I linked few weeks ago. The cross compiler I chose is in the directory:
/home/michele/opt/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin
-
I was able to create a raspbian with Qt5 following the guide at this link:
Next I put the image onto SD card, and there was all files.
But i had problems to find raspberry with the laptop through QT5 running on that, I' m going to open an other topic for that. Thank you. -
If it hasn't already been noticed the path setting script checks the number of parameters passed and is expecting 1 but 2 are being passed. I changed "$#" -ne 1 to "$#" -ne 2 and it ran without the error message.
The second parameter is used in the script so it is needed.
However I now get an error 'Cannot run compiler '/home/sam/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++'
(It does exist there)
-
@TV_man said in Problem cross-compiling Qt5 from Ubuntu to Raspbian(Raspberry pi3):
/home/sam/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++
can you run it manually from a terminal?