Unsolved Cross compile setup for TI processor
-
@Rlkcpo said in Cross compile setup for TI processor:
-sysroot /scratchnobackup/usr
remove usr from the sysroot path:
-sysroot /scratchnobackup
-
Thanks for the help @jsulm, I really appreciate it.
Unfortunately that didn't fix it.
arm-linux-gnueabihf-g++ --sysroot=/scratchnobackup -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-rpath,/usr/local/Qt-5.10.0/lib -o qt -lpthread /usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/../lib/crt1.o(.text+0x28): error: undefined reference to 'main' collect2: error: ld returned 1 exit status Makefile:106: recipe for target 'qt' failed make: *** [qt] Error 1
-
@Rlkcpo Maybe you should start from a clean source tree (it is better to do out of source builds).
-
Im not sure what you mean. Are you suggesting I reinstall Qt?
-
@Rlkcpo Not reinstalling Qt. It looks like you did not use out of source builds, so all build artefacts are inside Qt source code tree and can effect later builds. Just unpack Qt source code and try from this clean state.
-
I think im following you. Currently my source folder is /scratchnobackup/Qt5.10/5.10.0/Src
You want me to move the Src directory outside of the Qt install directory and run configure again correct?
-
@Rlkcpo No. What I suggest is: delete Src directory and extract Qt sources again.
-
I used the online installer. It all installs to the same directory. Ii saw some posts earlier about building Qt from source off of git. Let me see if I can find that again.
-
I ran the installer again to try and see if I could just get the sources and if you select Qt and tunnel into that there is a separate sources folder you can select.
Im sorry if I ask too many questions about this. I have used Qt in an embedded environment for a while now but I have never had to install it. So all of this is new to me.
-
Ok I installed the source again in a different directory (/scratchnobackup/QtSource/5.10.0/Src)and am still getting the same error.
(ran without defining a sysroot, as well as with it defined as /scratchnobackup/usr and just /scratchnobackup)arm-linux-gnueabihf-g++ --sysroot=/scratchnobackup --sysroot=/scratchnobackup -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-rpath,/usr/local/Qt-5.10.0/lib -o qt -lpthread /usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/../lib/crt1.o(.text+0x28): error: undefined reference to 'main' collect2: error: ld returned 1 exit status Makefile:106: recipe for target 'qt' failed make: *** [qt] Error 1