Get Qt example running on SAM9N12
-
Then that's normal, the libraries can't be found, you should write a little bash script that setups the environment for your application to run. Have a look at the Linux Deployment Guide for more details about this
-
wrote on 3 May 2015, 10:55 last edited by Bizer 5 Mar 2015, 10:58
Ok so i probably have some libary issues... With crosscompilation everything should be fine? Do i have to write a bash script for those libaries?:
"ldd example"
checking sub-depends for '/usr/lib/libQtGui.so.4'
checking sub-depends for '/usr/lib/libQtNetwork.so.4'
checking sub-depends for '/usr/lib/libQtCore.so.4'
checking sub-depends for '/lib/libpthread.so.0'
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f60000)
libdl.so.0 => /lib/libdl.so.0 (0xb6f54000)
libc.so.0 => /lib/libc.so.0 (0xb6efb000)
checking sub-depends for '/usr/lib/libstdc++.so.6'
checking sub-depends for 'not found'
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for 'not found'
checking sub-depends for '/usr/lib/libts-1.0.so.0'
checking sub-depends for '/usr/lib/libgthread-2.0.so.0'
checking sub-depends for '/usr/lib/libglib-2.0.so.0'
checking sub-depends for '/usr/lib/libintl.so.8'
checking sub-depends for '/lib/libm.so.0'
libc.so.0 => /lib/libc.so.0 (0xb6ed4000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f2d000)
checking sub-depends for '/lib/libc.so.0'
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f4e000)
checking sub-depends for '/lib/libdl.so.0'
libc.so.0 => /lib/libc.so.0 (0xb6ee9000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f42000)
checking sub-depends for '/lib/librt.so.0'
libc.so.0 => /lib/libc.so.0 (0xb6eda000)
libdl.so.0 => /lib/libdl.so.0 (0xb6ece000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb6eb2000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f33000)
checking sub-depends for '/usr/lib/libiconv.so.2'
libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00000000)
libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x00000000)
libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x00000000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00000000)
libm.so.6 => not found (0x00000000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
libc.so.6 => not found (0x00000000)
libts-1.0.so.0 => /usr/lib/libts-1.0.so.0 (0x00000000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00000000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00000000)
libintl.so.8 => /usr/lib/libintl.so.8 (0x00000000)
libm.so.0 => /lib/libm.so.0 (0x00000000)
libc.so.0 => /lib/libc.so.0 (0x00000000)
libdl.so.0 => /lib/libdl.so.0 (0x00000000)
librt.so.0 => /lib/librt.so.0 (0x00000000)
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00000000)
not a dynamic executable -
wrote on 3 May 2015, 17:46 last edited by
Hey, i observed one thing: If i run the project in qtcreator and check the "run in terminal" i get a: "Syntax error: word unexpected (expecting ")") "
Is there something i can/should do about this issue? Because if i run "sh example" i get the same error. -
What distribution is running on your board ?
-
wrote on 4 May 2015, 16:16 last edited by
At91linux with buildroot-rfs
-
Did you install Qt 4 directly through Buildroot ?
-
wrote on 5 May 2015, 13:05 last edited by
Yes, i did
-
wrote on 6 May 2015, 18:24 last edited by
no further ideas?
-
Did you also cross-compile Qt using the libraries from Buildroot ?
-
wrote on 7 May 2015, 12:21 last edited by
On the dev machine no, on the evaluationboard yes
-
Just to be sure I understand you correctly: you cross-compiled Qt on your desktop using a different set of libraries rather that than the one from your evaluation board and you compiled natively on your device ?
-
wrote on 11 May 2015, 19:06 last edited by
Yes, but it should be the same version. Buildroot uses 4.8.6 and on the dev machine i also had 4.8.6
-
Same Qt version is one thing, but it looks like you don't have the same set of dependencies between both versions and maybe not the same set of options given to configure
-
wrote on 12 May 2015, 10:01 last edited by
Ok thanks, do you have any hints what i have to look for, to get the same dependencies?
-
Use your device root filesystem as sysroot to cross-compile Qt
-
wrote on 28 May 2015, 18:41 last edited by
Ok i added the compiled sysroot that i compiled with buildroot. I got the same error:
Here is a screenshot incl. the syntac error when I'm building the project:
http://www.bilder-upload.eu/show.php?file=98a548-1432838782.png -
wrote on 2 Jun 2015, 19:06 last edited by
Hi, sorry but doesn't any one have an idea?
-
What do you have where the syntax error occurs ?