Windows 8 cross compile works in prompt, not in eclipse [message #1430075] |
Tue, 23 September 2014 22:47  |
Eclipse User |
|
|
|
Hi,
I have code which I can compile in prompt, but not in Eclipse
I am trying to cross compile from windows for Beagle bone black (raspberry pi should be similar/same), if anyone has any tips please post them.
I have installed a selection of packages in windows 8.1
Eclipse, gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_win32, and linux bin tools for windows (RM, make etc ) as per guide
jkuhlm.bplaced.net/hellobone/
The Eclipse does not compile the cross compiled code, even though in prompt, the commands execute perfectly and create a working file.
for Eclipse, I have installed java64 bit and 32 bit, (64 1st, 32 nd). I have tried both 64 and 32 bit version of Eclipse.
In prompt, these commands make a compiled file.
arm-linux-gnueabihf-g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/sdfes.d" -MT"src/sdfes.d" -o "src/sdfes.o" "../src/sdfes.cpp"
and
arm-linux-gnueabihf-g++ -o "sdfes" ./src/sdfes.o
Eclipse errors are ;
make all
Building file: ../src/sdfes.cpp
Invoking: Cross G++ Compiler
arm-linux-gnueabihf-g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/sdfes.d" -MT"src/sdfes.d" -o "src/sdfes.o" "../src/sdfes.cpp"
make: *** [src/sdfes.o] Error -1073741502
or if i do partial compile in prompt;
make all
Building target: sdfes
Invoking: Cross G++ Linker
arm-linux-gnueabihf-g++ -o "sdfes" ./src/sdfes.o
make: *** [sdfes] Error -1073741502
Any suggestion would be most appreciated.

Stas.
|
|
|
Re: Windows 8 cross compile works in prompt, not in eclipse [message #1431851 is a reply to message #1430075] |
Fri, 26 September 2014 04:21  |
Eclipse User |
|
|
|
solution,
install a different set of make, rm tools
found as per
gnuarmeclipse.livius.net/blog/install/
->installed
gnuarmeclipse.livius.net/blog/build-tools-windows/ -->installed rm,exe "only" and add to path.
-->gnutoolchains.com/download/
installed beaglebone-gcc4.6.3-Debian.exe -->installed and add to path.
this worked kinda for me, 'system' commands don't work, but basic program works
|
|
|
Powered by
FUDForum. Page generated in 0.03407 seconds