|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Team 5726 - Multiple errors in Eclipse path
Hello, my name is Gavin Levis from team 5726. We are a rookie team and I am the first programmer to try out C++ for our robot (I'm also a Freshman).
After installing Java JDK, FRC C++ Toolchains, and Eclipse, I have rebuilt the project to find that I have 4 errors in Getting Started. The four errors are listed below. "Program "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl" not found in PATH" Resource: Getting Started "Program "g++" not found in PATH" Resource not listed "Program "gcc" not found in PATH" Resource not listed "Program "gcc" not found in PATH" Resource: Getting Started If you know what these errors are please tell me how I can fix it. Last edited by GavinL : 10-01-2016 at 16:12. Reason: Title too vague |
|
#2
|
||||
|
||||
|
Re: Team 5726 - Multiple errors in Eclipse path
Same errors here.
The bottom three are because while the FRC toolchain for C++ installs correctly, the name of the programs are not what eclispse is looking for. (Working on it right now.) Not sure what causes the first yet. One of our students also provided the following: https://github.com/Techbrick/Referen...ATH%22%20Error (Side note, I am not convinced installing Mingw is the right fix for this.) Last edited by cbyrne : 10-01-2016 at 22:16. |
|
#3
|
|||
|
|||
|
Re: Team 5726 - Multiple errors in Eclipse path
I had the last three errors last year after I accidentally forgot to install the C++ toolchains. So try uninstalling/reinstalling those.
As for the last one, are you using a Mac? I just got that error this year because we added a Mac computer to use for development (and still haven't figured it out actually). |
|
#4
|
|||
|
|||
|
Re: Team 5726 - Multiple errors in Eclipse path
I'm guessing you have the wrong toolchains or the wrong plugins then as they matched in Beta.
|
|
#5
|
||||
|
||||
|
Re: Team 5726 - Multiple errors in Eclipse path
Quote:
I have been installing everything according to the "screenstepslive" site. Fresh install of Eclipse Mars, C++ online install of WPILib Eclipse plugin, FRC 2016 toolchain 4.9.3 (and uninstalled, installed again), no go. Which version of the toolchain is in the Beta if I may ask? Thanks (If it makes a difference, this is a windows 10, 64 bit, 64 bit eclipse, 64 bit JDK 8u66) Last edited by cbyrne : 10-01-2016 at 22:25. Reason: add more detail. |
|
#6
|
||||
|
||||
|
Re: Team 5726 - Multiple errors in Eclipse path
Just found this link:
http://forums.usfirst.org/showthread...-when-building Code does seem to build and deploy as indicated, even with the four errors. |
|
#7
|
|||
|
|||
|
Re: Team 5726 - Multiple errors in Eclipse path
Quote:
|
|
#8
|
||||
|
||||
|
Re: Team 5726 - Multiple errors in Eclipse path
I grew up being taught errors are not good, so I am not comfortable leaving them there. But yes, in theory they can stay.
If you want to remove them, try this: Install MinGW (http://www.mingw.org/) - FRC doesn't use this, but other open source projects do, so it won't hurt. At minimum, you want to install the "base" and "gcc-g++" packages. After install, open Eclipse, and follow the instructions for appending the path in the link I provided above. (Note, I was still getting the Visual Studio path error, but in Project Properties -> C/C++ General -> Preprocessor [...] -> Providers tab, checking "CDT Cross GCC Built In Compiler Settings", hitting apply, unchecking, hitting apply, and checking it again, hitting apply seemed to remove that. Also throw in a Project -> C/C++ Index -> Rebuild for good measure.) Where does that leave you? Last edited by cbyrne : 11-01-2016 at 07:44. Reason: added more info |
|
#9
|
||||
|
||||
|
Re: Team 5726 - Multiple errors in Eclipse path
I am also having all four of these errors. I was able to solve the bottom three by installing MinGW and adding C:\MinGW\bin to PATH. I have not been able to solve the first error yet, however.
|
|
#10
|
||||
|
||||
|
Re: Team 5726 - Multiple errors in Eclipse path
Official toolchain builder here, and yes, the lower 3 errors are harmless for FRC*. The first error is for simulation, and if you aren't using simulation, is safe to ignore. I could have sworn that error was fixed in November though....
*Those errors are because we only install "arm-frc-..." prefixed tools, and using the plugins eclipse only uses them. However, the generic eclipse C/C++ tools that aren't used for FRC expect non-prefixed. Those 3 errors will only matter if you do local C/C++ dev for your system, not FRC dev. See http://www.chiefdelphi.com/forums/sh...d.php?t=132042 for more details: Having said that, you can make them go away by prefixing the value listed in the error with "arm-frc-linux-gnueabi-". I'm afraid I don't remember where it is off the top of my head but can provide the exact value if you copy-paste the entire error. |
|
#11
|
|||
|
|||
|
Re: Team 5726 - Multiple errors in Eclipse path
Quote:
|
|
#12
|
||||
|
||||
|
Re: Team 5726 - Multiple errors in Eclipse path
If you don't care about building native C++ code and want the path error to go away, here is the full settings path:
Window > Preferences > C/C++ > Build > Settings > Discovery then select [CDT GCC Built-in Compiler Settings] and in the text box at the bottom, prepend "arm-frc-linux-gnueabi-" to the existing text. Should end up as something like arm-frc-linux-gnueabi-${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}" If you use this eclipse install for more that just FRC compiling, don't do this, instead install mingw. |
|
#13
|
|||
|
|||
|
Re: Team 5726 - Multiple errors in Eclipse path
Hi,
I was seeing the same kinds of errors and I tried the suggestion of preprending arm-frc-linux-gnueabi- on the built in compiler settings. If I did a clean and build then errors went away but now I am experiencing another issue. When I look at any source, say CommandBase.h from the a wizard generated project almost all the symbols can't be resolved. It seems like include paths were not setup correctly by the project wizard. Is this a symptom of a bad tool install or can I fix this without reinstalling. Please see attached picture for more info. Thanks, Rob |
|
#14
|
||||
|
||||
|
Re: Team 5726 - Multiple errors in Eclipse path
We get these errors, too. Only when the project is first opened or eclipse starts up. Here are the steps we use to fix them:
1. Highlight the errors 2. Press the "Delete" key 3. Recompile code. 4. Rejoice because errors are now gone. Theoretically, yes, you can leave them there. I don't like leaving them there, though, because sometimes I see the error indicator and forget to check for any new, real errors. So, in summary, they're nothing to worry about. |
|
#15
|
|||
|
|||
|
Re: Team 5726 - Multiple errors in Eclipse path
I applied the changes that byteit101 suggested. However here's what I see now in the console when I do a Clean of my project:
Code:
15:37:56 **** Clean-only build of configuration Debug for project GoGo **** rm -rf src/Robot.o src/Subsystems/ExampleSubsystem.o src/CommandBase.o FRCUserProgram src/Subsystems/ExampleSubsystem.d src/Robot.d src/Commands/ExampleCommand.d src/Commands/ExampleCommand.o src/CommandBase.d src/OI.o src/OI.d Cannot run program "rm": Launching failed Error: Program "rm" not found in PATH PATH=[\usr\local\bin;C:/Program Files/Java/jre1.8.0_66/bin/server;C:/Program Files/Java/jre1.8.0_66/bin;C:/Program Files/Java/jre1.8.0_66/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Users\RoboGym\AppData\Local\Programs\Git\cmd;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\eclipse] 15:37:56 Build Finished (took 63ms) 15:37:56 **** Clean-only build of configuration Debug for project GoGo **** 15:37:56 Build Finished (took 0ms) If I do a build following this I don't see any errors in the errors tab but in the console I see the following: Code:
15:42:12 **** Incremental Build of configuration Debug for project GoGo **** Info: Internal Builder is used for build arm-frc-linux-gnueabi-g++ -std=c++1y "-IC:\\Users\\RoboGym/wpilib/cpp/current/include" "-IC:\\Users\\RoboGym\\workspace\\GoGo\\src" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\CommandBase.o" "..\\src\\CommandBase.cpp" Cannot run program "arm-frc-linux-gnueabi-g++": Launching failed Error: Program "arm-frc-linux-gnueabi-g++" not found in PATH PATH=[\usr\local\bin;C:/Program Files/Java/jre1.8.0_66/bin/server;C:/Program Files/Java/jre1.8.0_66/bin;C:/Program Files/Java/jre1.8.0_66/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Users\RoboGym\AppData\Local\Programs\Git\cmd;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\eclipse] 15:42:12 Build Finished (took 57ms) And on top of this if I start to browse my source files I get the same errors that I posted a jpg of earlier. This last part seems like include paths are not setup correctly as I can't jump to the definitions of any of the std runtime classes nor even class definitions that are in my own project. Any ideas are appreciated. Regards, Rob |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|