I’m using Windows and Eclipse and I’m hoping I can get an answer, and maybe a shove in the right direction.
I can compile the diydrones/ardupilot Master with no errors, but not the 3DRobotics Solo fork
I tried searching, but I can’t locate a thread that tells me what to change in my Windows Eclipse setting to get the 3DR fork to work.
If/When I get this to work, I’ll post a thread with Step-by-Step “Starting from scratch” instructions for those that are interested.
(I did this already on how to compile the diydrones/ardupilot Master)
I would go for 14.04 if you want LTS, but honestly 15.04 would work just fine. That’s what I use. And it has most up-to-date features while developing, like gitg v3
I’d really like to get you to try to compile the 3DR-Solo fork, to know if it’s just me or if everyone has issues compiling it.
git clone github.com/3drobotics/ardupilot-solo.git
So far I have found no one that admits to being able to compile their fork
[size=150]Note:
Below is using the normal diydrones/ardupiloit Master, not the 3DR fork! [/size]
As expected, if I try and follow the Wiki for Ubuntu using my 12.04, it crashes and burns.
Something is wrong with the Step Run the install-prereqs-ubuntu.sh script:
and it stops with errors about not being able to locate pip2, among other things.
So… I kept plugging away at it and fixing what the compiler complained about every time it stopped.
Here’s what I found out:
If you follow the steps in the Wiki including the errors with Run the install-prereqs-ubuntu.sh script: , then:
It is obvious now that nothing works with the 3DR Solo’s version of ardupilot code.
Not Linux, Not VM Ubunto, Not Eclipse, Not Atmel Studio, Not Visual Studio, Not Arduino… not anything.
Isn’t this some sort of violation of the GPL License they claim to support?
According to the 3DRobotics web site, everyone should have been able to compile their fork with absolutely zero changes to the compiler. http://dev.ardupilot.com/wiki/solo/ says: [i]“Compile instructions are the same as for master ardupilot for a Pixhawk with the exception that the modified repos should be used.”[/i]
…but this is untrue.
No one has been able to compile using the standard diydrones/ardupilot configuration.
Only those working at 3DR know how it’s done… and their not talking!
I hate to sound like a conspiracy theorist, but something smells mighty funny here…
From reading here and on some of the other forums it seems that 3DRobitics is purposely making changes to the settings so only they can successfully compile their fork of diydrones/ardupilot
They are using the code that was developed by diydrones for a “For-Profit” product, and modifying the code so no one else can use it. This is wrong on so many levels.
Well, I’m not going to give up just yet.
If I can hack at this long enough and come up with a way to get it post, I’ll make it public.
.
.
No luck with VirtualBox running Ubuntu 10.04, 12.04, 14.04 or 15.04
With all of them I can compile all of the diydrones/ardupilot modules 100% complete no errors.
None of the 3drobotics/ardupilot-solo modules get past the px4_targets.mk file, bombing out when making the $(PX4_MAKE) px4fmu-v2_APM line.
Oh, but the way, there is a typo in both diydrones and 3drobotics code for px4_targets.mk
It’s a minor, but it should read $(v) $(PX4_MAKE) px4fmu-v2_APM
This has no effect on compiling, but shows to poor coding proofreading etiquette.
The issue of the 3DRobotics Code not being able to compile has been brought up on some of the groups where there are actually 3DR coders hanging out, so maybe one of them will take pity on us and all of the hours/days/weeks we have spent trying to compile their releases and tell us how to make their code compile…
A little progress was made today.
Gabe over on the Googlegroups posted up one of the Undocumented Secrets to posting 3DR’s Solo code.
You have to add a custom PX4Firmware and edit the config.mk file to use it.
and edit the /ardupilot-solo/config.mk file to read: PX4_ROOT=…/PX4Firmware-solo
This will get you further, but still a crash that will say: compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
make[3]: *** [libraries/AP_NavEKF/AP_NavEKF.cpp.o] Error 1