Building problem PX4 using Ubuntu 64

121 views
Skip to first unread message

Jose Luis

unread,
Feb 5, 2016, 6:47:34 AM2/5/16
to drones-discuss
Hi

I've followed the interaction to install ardupilot in my computer (Ubuntu 64). However, when I build the code (make px4-v2) the following error is returned :

/ardupilot/libraries/AP_RSSI/AP_RSSI.cpp:18:20: fatal error: utility: No such file or directory
#include <utility>

Can anybody help me?

Regards
José Luis 

Lucas De Marchi

unread,
Feb 5, 2016, 2:32:45 PM2/5/16
to drones-discuss
Did you install the correct toolchain version? Try make VERBOSE=1
px4-v2 and check it's using the correct compiler (check compiler
version by passing -v to whatever compiler it's using)


Lucas De Marchi

Hamish Willee

unread,
Feb 8, 2016, 4:59:27 AM2/8/16
to drones-discuss
This is probably that missing `git submodule intit` and `git submodule update` issue. I tested this today in a VM and these instructions worked: http://dev.ardupilot.com/wiki/building-px4-for-linux-with-make/

Lucas De Marchi

unread,
Feb 8, 2016, 9:37:23 AM2/8/16
to drones-discuss
On Mon, Feb 8, 2016 at 7:59 AM, Hamish Willee <hamish...@gmail.com> wrote:
> This is probably that missing `git submodule intit` and `git submodule
> update` issue. I tested this today in a VM and these instructions worked:
> http://dev.ardupilot.com/wiki/building-px4-for-linux-with-make/

I don't think it's the same issue since in his case it was failing to
build because the toolchain didn't have the <utility> header.

Anyway, if it works for you it's probably something missing in his
setup and not something wrong with the instructions.

Lucas De Marchi

Pierre Kancir

unread,
Feb 9, 2016, 5:38:00 AM2/9/16
to drones-discuss
Hi,

Got the same problem : 
CXX:     /home/khancyr/Workspace/ardupilot/libraries/AP_RSSI/AP_RSSI.cpp
/home/khancyr/Workspace/ardupilot/libraries/AP_RSSI/AP_RSSI.cpp:18:20: fatal error: utility: No such file or directory
 #include <utility> 
                    ^
compilation terminated.

I use Wily default arm-none-eabi toolchain : http://packages.ubuntu.com/fr/wily/devel/gcc-arm-none-eabi and Lubuntu 15.10

Lucas De Marchi

unread,
Feb 9, 2016, 6:09:04 AM2/9/16
to drones-discuss

Could you try using the supported toolchain instead?

--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pierre Kancir

unread,
Feb 9, 2016, 8:47:11 AM2/9/16
to drones-discuss
Hummmm 

here is the error ...
So default Ubuntu 15.10 Toolchain doesn't work ...  http://packages.ubuntu.com/fr/wily/devel/gcc-arm-none-eabi
Trying the one from diydrone website is working .
The one from Terry Guo ppa is also working : https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded ( using sudo apt-get install gcc-arm-none-eabi=4.9.3.2015q3-1wily1) (It is faster than download from dyidrone website)

I just see that gcc-arm-embedded changed their ppa (https://launchpad.net/gcc-arm-embedded/+announcement/13824)
And interresting fact : it build and works though it is not recommended 

gcc-5
make[1]: Leaving directory '/home/khancyr/Workspace/ardupilot'
   text   data    bss    dec    hex filename
 929812   2848  57968 990628  f1da4 /home/khancyr/Workspace/ardupilot/modules/PX4Firmware/Build/px4fmu-v2_APM.build/firmware.elf

normal toolchain
make[1]: Leaving directory '/home/khancyr/Workspace/ardupilot'
   text   data    bss    dec    hex filename
 922764   2848  57948 983560  f0208 /home/khancyr/Workspace/ardupilot/modules/PX4Firmware/Build/px4fmu-v2_APM.build/firmware.elf
Reply all
Reply to author
Forward
0 new messages