Hi Louis, I'm totally lost with cross compile with QT ..... I've the ubuntu distribution image from Robert Nelson.
Beagle : ubuntu@arm:~$ uname -a Linux arm 3.8.13-bone35 #2 SMP Mon Jan 13 14:52:52 CET 2014 armv7l armv7l armv7l GNU/Linux ubuntu@arm:~$ qmake -version QMake version 2.01a Using Qt version 4.8.4 in /usr/lib/arm-linux-gnueabihf PC : And I'm trying to compile an hello world in my ubuntu VM VirtualBox ( 32bit ) . l I've downloaded angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3.tar.bz2 then tar -C / -xjf angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3.tar.bz2 and . /usr/local/angstrom/arm/environment-setup qtcreator : the gcc that i'm using is here : /usr/bin/arm-linux-gnueabi-g++ the QT version : /usr/local/angstrom/arm/bin/qmake2 and when i wan to make my project I got : arm-angstrom-linux-gnueabi-g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I../beagleTest -I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/include/qtopia/QtCore -I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/include/qtopia -I. -I../beagleTest -I. -o main.o ../beagleTest/main.cpp arm-angstrom-linux-gnueabi-g++ -o beagleTest main.o -L/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/lib -lglib-2.0 -lQtCoreE -lpthread After, I put the file beagleTest in my beagle directory . Beagle: sudo chmod +x beagleTest ubuntu@arm:~$ ./beagleTest -qws *-bash: ./beagleTest: No such file or directory* Why ? ubuntu@arm:~$ readelf -h beagleTest ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: ARM Version: 0x1 Entry point address: 0x8640 Start of program headers: 52 (bytes into file) Start of section headers: 100096 (bytes into file) Flags: 0x4000002, has entry point, Version4 EABI Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 8 Size of section headers: 40 (bytes) Number of section headers: 39 Section header string table index: 36 I'm really lost, do you have an idea ? Thx, On Sun, Jan 19, 2014 at 4:21 PM, Louis McCarthy <[email protected]> wrote: > I tested it on Robert Nelson's Debian beta found at a link from this forum > post: > > https://groups.google.com/forum/m/#!category-topic/beagleboard/9EG0SbhwTx0 > On Jan 18, 2014 7:09 PM, "David Lewin" <[email protected]> wrote: > >> Well i was refering to official Debian image as another possibility >> Le 18 janv. 2014 22:44, "William Hermans" <[email protected]> a écrit : >> >>> For the record, Robert Nelsons Debian image is custom kernel only, with >>> a "stock" file image. Also, as far as I know "Roberts Debian" *is* the only >>> "official" Debian for the Beagelbone black. >>> >>> >>> On Sat, Jan 18, 2014 at 11:43 AM, dlewin555 <[email protected]> wrote: >>> >>>> Thanks Louis. >>>> When you say "Debian Beta" I assume that it the official one, not the >>>> BBB (from Robert C Nelson) right ? >>>> Well I have to try it myself btw. >>>> >>>> >>>> Le vendredi 17 janvier 2014 18:41:41 UTC+1, Louis McCarthy a écrit : >>>>> >>>>> @Bill >>>>> Can you run 'uname -a' from a terminal and post the results here? >>>>> What is the file name (or download link) of the angstrom toolchain >>>>> that you downloaded? >>>>> >>>>> @David >>>>> Sure. I have tried it with the Debian beta and it seems to be working. >>>>> http://armsdr.blogspot.com/2014/01/bare-metal-qt-52-on- >>>>> beaglebone-black.html >>>>> >>>>> Louis >>>>> >>>>> >>>>> On Thursday, January 16, 2014 12:21:09 PM UTC-6, William Pretty >>>>> Security wrote: >>>>>> >>>>>> Ok; >>>>>> >>>>>> >>>>>> >>>>>> We have something weird going on here (?) >>>>>> >>>>>> I started with a fresh VM and just installed the tool chain, from the >>>>>> file I had previously downloaded. >>>>>> >>>>>> I then gave myself root access and went to the >>>>>> “/usr/local/angstrom/bin” directory. >>>>>> >>>>>> >>>>>> >>>>>> Here’s what happened: >>>>>> >>>>>> >>>>>> >>>>>> root@ubuntu:/usr/local/angstrom/arm/bin# >>>>>> arm-angstrom-linux-gnueabi-g++ >>>>>> >>>>>> arm-angstrom-linux-gnueabi-g++: command not found >>>>>> >>>>>> >>>>>> >>>>>> root@ubuntu:/usr/local/angstrom/arm/bin# >>>>>> arm-angstrom-linux-gnueabi-g++ --version >>>>>> >>>>>> arm-angstrom-linux-gnueabi-g++: command not found >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> root@ubuntu:/usr/local/angstrom/arm/bin# >>>>>> ./arm-angstrom-linux-gnueabi-g++ --version >>>>>> >>>>>> bash: ./arm-angstrom-linux-gnueabi-g++: No such file or directory >>>>>> >>>>>> >>>>>> >>>>>> When I type “ls –l” I get: >>>>>> >>>>>> >>>>>> >>>>>> -rwxr-xr-x 1 root root 483996 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-addr2line >>>>>> >>>>>> -rwxr-xr-x 1 root root 503544 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-ar >>>>>> >>>>>> -rwxr-xr-x 1 root root 853272 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-as >>>>>> >>>>>> -rwxr-xr-x 1 root root 483800 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-c++filt >>>>>> >>>>>> -rwxr-xr-x 1 root root 436563 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-cpp >>>>>> >>>>>> -rwxr-xr-x 1 root root 438687 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-g++ >>>>>> >>>>>> -rwxr-xr-x 1 root root 434700 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-gcc >>>>>> >>>>>> -rwxr-xr-x 1 root root 17422 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-gccbug >>>>>> >>>>>> -rwxr-xr-x 1 root root 75976 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-gcov >>>>>> >>>>>> -rwxr-xr-x 1 root root 3184888 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-gdb >>>>>> >>>>>> -rwxr-xr-x 1 root root 3184892 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-gdbtui >>>>>> >>>>>> -rwxr-xr-x 1 root root 442039 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-gfortran >>>>>> >>>>>> -rwxr-xr-x 1 root root 538904 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-gprof >>>>>> >>>>>> -rwxr-xr-x 1 root root 873752 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-ld >>>>>> >>>>>> -rwxr-xr-x 1 root root 490292 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-nm >>>>>> >>>>>> -rwxr-xr-x 1 root root 629144 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-objcopy >>>>>> >>>>>> -rwxr-xr-x 1 root root 759480 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-objdump >>>>>> >>>>>> -rwxr-xr-x 1 root root 503548 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-ranlib >>>>>> >>>>>> -rwxr-xr-x 1 root root 261868 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-readelf >>>>>> >>>>>> -rwxr-xr-x 1 root root 748476 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-run >>>>>> >>>>>> -rwxr-xr-x 1 root root 483988 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-size >>>>>> >>>>>> -rwxr-xr-x 1 root root 483960 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-strings >>>>>> >>>>>> -rwxr-xr-x 1 root root 629144 Mar 16 2011 >>>>>> arm-angstrom-linux-gnueabi-strip >>>>>> >>>>>> -rwxr-xr-x 1 root root 281569 Mar 16 2011 i686-linux-libtool >>>>>> >>>>>> -rwxr-xr-x 1 root root 281569 Mar 16 2011 libtool >>>>>> >>>>>> -rwxr-xr-x 1 root root 68311 Mar 16 2011 libtoolize >>>>>> >>>>>> . >>>>>> >>>>>> . >>>>>> >>>>>> . >>>>>> >>>>>> Looks to me like the program is executable. Could it be damaged or am >>>>>> I doing something wrong ? >>>>>> >>>>>> >>>>>> >>>>>> Bill >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> *From:* [email protected] [mailto:[email protected]] *On >>>>>> Behalf Of *Louis McCarthy >>>>>> *Sent:* Wednesday, January 15, 2014 2:42 PM >>>>>> *To:* [email protected] >>>>>> *Subject:* Re: [beagleboard] Re: Build a QT/11 application for >>>>>> beagleboard black by cross compiling from ubuntu >>>>>> >>>>>> >>>>>> >>>>>> I guess I wasn't clear, you need to type >>>>>> 'arm-angstrom-linux-gnueabi-g++ --version'. Just typing g++ will use >>>>>> your regular host compiler (not toolchain cross compiler) >>>>>> >>>>>> >>>>>> >>>>>> If that gives a valid response, you then need to modify your >>>>>> qmake.conf files or configure command line options (depending on Qt >>>>>> version >>>>>> and how you configured it) to point to the full binary name, not just >>>>>> g++. >>>>>> >>>>>> >>>>>> >>>>>> From the error message, I doubt the error is in >>>>>> qabstractanimation.cpp, but you can look around for a local qmake.conf >>>>>> file, for that module, that may be pointing to the wrong g++. >>>>>> >>>>>> Louis >>>>>> >>>>>> >>>>>> On Tuesday, January 14, 2014 5:30:22 PM UTC-6, William Pretty >>>>>> Security wrote: >>>>>> >>>>>> *From:* [email protected] [mailto:[email protected]] *On >>>>>> Behalf Of *Louis McCarthy >>>>>> *Sent:* Tuesday, January 14, 2014 12:23 PM >>>>>> *To:* [email protected] >>>>>> *Subject:* Re: [beagleboard] Re: Build a QT/11 application for >>>>>> beagleboard black by cross compiling from ubuntu >>>>>> >>>>>> >>>>>> >>>>>> Correction, export PATH=$PATH:/usr/local/angstrom/arm/bin >>>>>> >>>>>> >>>>>> >>>>>> I forgot the last bin..... >>>>>> >>>>>> On Tuesday, January 14, 2014 11:20:46 AM UTC-6, Louis McCarthy wrote: >>>>>> >>>>>> Did you install the right toolchain for your host, 32 bit or 64 bit. >>>>>> If 64 bit you need to include the ia32-libs (apt-get install). >>>>>> >>>>>> >>>>>> >>>>>> I would also add /usr/local/angstrom/arm/ to your path: >>>>>> >>>>>> export PATH=$PATH:/usr/local/angstrom/arm >>>>>> >>>>>> >>>>>> >>>>>> Then try the arm-[tab][tab] again. >>>>>> >>>>>> Here is the result of that: >>>>>> >>>>>> >>>>>> >>>>>> beaglebone@ubuntu:~$ export PATH=$PATH:/usr/local/angstrom/arm/bin >>>>>> >>>>>> beaglebone@ubuntu:~$ g++ --version >>>>>> >>>>>> g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 >>>>>> >>>>>> Copyright (C) 2013 Free Software Foundation, Inc. >>>>>> >>>>>> This is free software; see the source for copying conditions. There >>>>>> is NO >>>>>> >>>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >>>>>> PURPOSE. >>>>>> >>>>>> >>>>>> >>>>>> Also I put a dash before the “check” by mistake, however the info may >>>>>> be of use: >>>>>> >>>>>> >>>>>> >>>>>> beagl...@ubuntu:~/qt-4.8.5-beagle$ make -check >>>>>> >>>>>> make: invalid option -- 'c' >>>>>> >>>>>> make: invalid option -- 'c' >>>>>> >>>>>> Usage: make [options] [target] ... >>>>>> >>>>>> This program built for x86_64-pc-linux-gnu >>>>>> >>>>>> Report bugs to [email protected] >>>>>> >>>>>> >>>>>> >>>>>> I think there must be a syntax error in qabstractanimation.cpp ? >>>>>> >>>>>> It is the only code that fails “make check” >>>>>> >>>>>> >>>>>> >>>>>> cd src/corelib/ && make -f Makefile check >>>>>> >>>>>> make[1]: Entering directory `/home/beaglebone/qt-4.8.5- >>>>>> beagle/src/corelib' >>>>>> >>>>>> /home/beaglebone/qt-4.8.5-beagle/bin/moc -DQT_SHARED >>>>>> -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII >>>>>> -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER >>>>>> -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" >>>>>> -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG >>>>>> -I../../mkspecs/qws/linux-am335x-g++ >>>>>> -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm >>>>>> -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 >>>>>> -I../3rdparty/md4 -I.moc/release-shared-emb-arm >>>>>> animation/qabstractanimation.h -o .moc/release-shared-emb-arm/ >>>>>> moc_qabstractanimation.cpp >>>>>> >>>>>> /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe >>>>>> -fno-exceptions -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon >>>>>> -mfloat-abi=softfp -Wall -W -D_REENTRANT -fPIC -DQT_SHARED >>>>>> -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII >>>>>> -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER >>>>>> -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" >>>>>> -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG >>>>>> -I../../mkspecs/qws/linux-am335x-g++ >>>>>> -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm >>>>>> -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 >>>>>> -I../3rdparty/md4 -I.moc/release-shared-emb-arm -o >>>>>> .obj/release-shared-emb-arm/qabstractanimation.o animation/ >>>>>> qabstractanimation.cpp >>>>>> >>>>>> >>>>>> >>>>>> make[1]: /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++: >>>>>> Command not found >>>>>> >>>>>> make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] >>>>>> Error 127 >>>>>> >>>>>> make[1]: Leaving directory `/home/beaglebone/qt-4.8.5- >>>>>> beagle/src/corelib' >>>>>> >>>>>> make: *** [sub-corelib-check_ordered] Error 2 >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> For more options, visit http://beagleboard.org/discuss >>>>>> --- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "BeagleBoard" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>>> No virus found in this message. >>>>>> Checked by AVG - www.avg.com >>>>>> Version: 2014.0.4259 / Virus Database: 3681/7004 - Release Date: >>>>>> 01/15/14 >>>>>> ------------------------------ >>>>>> >>>>>> No virus found in this message. >>>>>> Checked by AVG - www.avg.com >>>>>> Version: 2014.0.4259 / Virus Database: 3658/6910 - Release Date: >>>>>> 12/11/13 >>>>>> Internal Virus Database is out of date. >>>>>> >>>>> -- >>>> For more options, visit http://beagleboard.org/discuss >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "BeagleBoard" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> -- >>> For more options, visit http://beagleboard.org/discuss >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "BeagleBoard" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/beagleboard/mb1R6NF5RH4/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "BeagleBoard" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/beagleboard/mb1R6NF5RH4/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
