Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Error when building. powerpc-wrs-vxworks-g++ error (http://www.chiefdelphi.com/forums/showthread.php?t=135531)

Herbie_3633 06-03-2015 19:49

Error when building. powerpc-wrs-vxworks-g++ error
 
Code:

'Invoking: Thunder cRIO Tools C++ Compiler'
powerpc-wrs-vxworks-g++ -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL -IC:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include -I"C:\Program Files (x86)\FRC_Toolchain\mingw\powerpc-wrs-vxworks\wind_base\/../include/WPILib" -O0 -g3 -Wall -c -fmessage-length=0 -mcpu=603 -mstrict-align -mlongcall -MMD -MP -MF"src/robot.d" -MT"src/robot.d" -o "src/robot.o" "../src/robot.cpp"
powerpc-wrs-vxworks-g++: error: Dell\Desktop\Eclipse: No such file or directory
powerpc-wrs-vxworks-g++: error: Projects\2015: No such file or directory
powerpc-wrs-vxworks-g++: error: practice: No such file or directory
powerpc-wrs-vxworks-g++: error: robot\include: No such file or directory
mingw32-make: *** [src/robot.o] Error 1

This is the error message I get when building. Dell\Desktop\Eclipse I think is referring to the place where I originally installed eclipse but I have moved it to program files. Thunder CRio tools is the name of the plugin I am trying to build the project with. I am able to build a project as a WPILIB deploy. I have also tried re-installing the toolchains.

calcmogul 06-03-2015 22:14

Re: Error when building. powerpc-wrs-vxworks-g++ error
 
You need quotes around the argument to -I like the one provided by the FRC plugins. For example, -IC:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include should be -I"C:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include".

GeeTwo 06-03-2015 22:17

Re: Error when building. powerpc-wrs-vxworks-g++ error
 
It's a common problem with linux shells - unquoted or escaped spaces separate different arguments. Just add some quotes to the first -I argument:
Quote:

Originally Posted by Herbie_3633 (Post 1454583)
Code:

powerpc-wrs-vxworks-g++ -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL -I"C:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include" -I"C:\Program Files (x86)\FRC_Toolchain\mingw\powerpc-wrs-vxworks\wind_base\/../include/WPILib" -O0 -g3 -Wall -c -fmessage-length=0 -mcpu=603 -mstrict-align -mlongcall -MMD -MP -MF"src/robot.d" -MT"src/robot.d" -o "src/robot.o" "../src/robot.cpp"

You'll probably have to make this change in your include arguments in Eclipse.

teslalab2 22-04-2015 10:21

Re: Error when building. powerpc-wrs-vxworks-g++ error
 
I am having the same problem. so I added the quotes, but as soon as I build, it immediately gets overwritten. I am editing subdir.mk, am I editing it in the wrong place? I don't quite understand how eclipses compiler works.

Thanks

EDIT: I think I fixed the problem, I set the settings to not re-recreate the makefile, and it compiles without errors now.


All times are GMT -5. The time now is 05:01.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi