Improving Build Instructions
-
For reference, here is a part of my path:
and here is what I am seeing in Eclipse:
This is my variable that I made in Eclipse:
-
Right click the project, click Properties,
Go to C++ Build -> Environment.
There should be PATH variable visible here as well, double check that everything is the same as the system path. You should see the 'C:\program files\arm....' and 'C:\program files\GNU...' here as well.
-
Hi Zhang, thanks for responding. When I first opened that up, it didn't have anything in it. I set my path to the value you have there and re-copy-pasted the same value into my system path to make sure they are the same. What variable do I make when adding the 'C:\program files\arm....' and 'C:\program files\GNU...' to this list? I am now getting this error when I try to build:
-
Mine has the following path as well which contains the make.exe
C:\Program Files\GNU ARM Eclipse\Build Tools\2.6-201507152002\bin
I think the list is semi-colon delimited (the screenshot I posted had a bit scrubbed for privacy). In the end you want something looking like this:
PATH: ${ArmGccPath};C:\Program Files\GNU Arm Eclipse\......\bin
-
Ok, thanks for specifying that information. I make the changes that you mentioned and Eclipse is now giving me the following output:
-
Under the cmake section, I don't have a toolchain file. Not sure if this is an issue or not either.
-
It looks like you have somehow lost the tool prefix, because it should be looking for arm-none-eabi-g++ not simply g++.
-
Hi @dc42 I appreciate your help. It is looking like there is something larger that is the matter with my configuration. I don't even have Tool Settings.
-
Okay, so I was looking over the build instructions again and I realized that for some of the repos I installed the master version instead of the specified version. I am now using the specified version of each repo and I am seeing the arm-none-eabi for all the repos except the CANlib and FreeRTOS.
Even with that, I am still getting the path error. -
Also, with the repos where I am able to find the Tool Settings, it is looking like it is trying to compile and gets build errors. So to my understanding it is interesting that it is saying that it can't find it in path still.
-
Hi everyone, I am not experienced in building large C++ projects and I don't want to be a burden on the forum, does anyone have a good resource on general build advice/troubleshooting that I can look at?
-
Hello everyone,
I finally was able to compile the firmware! I am noting down what I did here that made it work hopefully to help others with the first build.Make sure that:
You are checking out the correct "tags" of a repo in github. A certain version of the firmware requires certain tags of a repo to be installed. See this for V 3.02: https://github.com/Duet3D/RepRapFirmware/blob/v3.02-dev/BuildInstructions.md ... there is a table listing the tag (not branch) to pull from.Also, the order of "make" in path matters. I had Chocolatey installed also and its make was further u on the list in my Path environment variable which overrode the version of make that is being used for this project.
This forum post has a lot of helpful information and got me the rest of the way.: https://forum.duet3d.com/topic/19980/little-help-to-build-rrf3/3
Good luck!
-
Also, an easy way to add a project to Eclipse is File -->Open Projects From File System and then select the Firmware directory with all of the downloaded projects into it.
Also, make sure to read the entire page of instructions, not skipping over anything. For the Duet 3 you don't need to compile the DuetWifiSocketServer project, but you do still need it added into Eclipse.
-
-
Nevermind finally compiled latest version fine.
-
@seraser glad you finally compiled it! Sorry I didn’t respond in time.