paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Setting flags for build?


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Setting flags for build?
Date: Sat, 7 Sep 2013 20:17:04 +0200

Hi Ben,

fixed in master (LEDs were not properly defined, will try to make this more robust in the makefiles).

Cheers, Felix


On Sat, Sep 7, 2013 at 7:39 PM, Ben Laurie <address@hidden> wrote:



On 7 September 2013 18:02, Felix Ruess <address@hidden> wrote:
Hi Ben,

I would guess this has to do with the locale you have set?

Good call (apparently UK English is not appreciated [LANG=en_GB.UTF-8]).
 
Run "locale" from the command line to check it.

When you run something in paparazzi center it sets LANG=C to get messages in English and do proper coloring...
So you can also set that when running from the commandline to get a "neutral" locale:
LANG=C make AIRCRAFT=ardrone2_sdk ap.compile

That fixes the error messages, but not the error - now what?

$ LANG=C make AIRCRAFT=ardrone2_sdk ap.compile
-----------------------------------------------------------------------
Paparazzi version v5.1_devel-317-gbc39559
-----------------------------------------------------------------------
ardrone2_sdk
BUILD ardrone2_sdk, TARGET ap
make[1]: Nothing to be done for `radio_ac_h'.
make[1]: Nothing to be done for `flight_plan_ac_h'.
cd sw/airborne; make TARGET=ap all
CC /home/ben/git-work/paparazzi/var/ardrone2_sdk/ap/firmwares/rotorcraft/main.o
In file included from /home/ben/git-work/paparazzi/sw/airborne/firmwares/rotorcraft/telemetry.h:33:0,
                 from firmwares/rotorcraft/main.c:37:
/home/ben/git-work/paparazzi/sw/airborne/subsystems/radio_control.h: In function 'radio_control_periodic_task':
/home/ben/git-work/paparazzi/sw/airborne/subsystems/radio_control.h:97:5: error: expected _expression_ before ')' token
/home/ben/git-work/paparazzi/sw/airborne/subsystems/radio_control.h:100:5: error: expected _expression_ before ')' token
make[1]: *** [/home/ben/git-work/paparazzi/var/ardrone2_sdk/ap/firmwares/rotorcraft/main.o] Error 1
make: *** [ap.compile] Error 2

 

Cheers, Felix


On Sat, Sep 7, 2013 at 6:35 PM, Ben Laurie <address@hidden> wrote:



On 1 September 2013 17:36, Felix Ruess <address@hidden> wrote:
Hi Ben,

easiest is to compile from the Paparazzi directory:
make AIRCRAFT=ardrone2_sdk ap.compile
or equivalently:
make -C /home/ben/git-work/paparazzi AIRCRAFT=ardrone2_sdk ap.compile

If I do this, I get a bit further, but...

CC /home/ben/git-work/paparazzi/var/ardrone2_sdk/ap/firmwares/rotorcraft/main.o
In file included from /home/ben/git-work/paparazzi/sw/airborne/firmwares/rotorcraft/telemetry.h:33:0,
                 from firmwares/rotorcraft/main.c:37:
/home/ben/git-work/paparazzi/sw/airborne/subsystems/radio_control.h: In function â:
/home/ben/git-work/paparazzi/sw/airborne/subsystems/radio_control.h:97:5: error: expected _expression_ before â token
/home/ben/git-work/paparazzi/sw/airborne/subsystems/radio_control.h:100:5: error: expected _expression_ before â token
make[1]: *** [/home/ben/git-work/paparazzi/var/ardrone2_sdk/ap/firmwares/rotorcraft/main.o] Error 1
make: *** [ap.compile] Error 2

(I have no idea what's up with the compiler saying "â" instead of function names, etc - it seems to have started doing that since an Ubuntu update, but it is unrelated, since the compile works fine from the Paparazzi Center).

 

The main Makefile automatically sets the PAPARAZZI_HOME and PAPARAZZI_SRC environment variables, and if you explicitly specify another Makefile directly (for which there is no need) these are not not automatically set.

Regarding passing extra command line defines: the easiest way is probably to add <define name="FOO" value="BAR"/> to the firmware section of your airframe file, which will be added as a global command line define (-DFOO=BAR). You can also omit the value to get -DFOO.

Hope that helps,...

Cheers, Felix


On Sun, Sep 1, 2013 at 6:00 PM, Ben Laurie <address@hidden> wrote:
I've been debugging the ARDrone stuff (patches soon). It'd be nice to be able to #if the debug code rather than comment it out.

Is there an easy way to -D some flag for the build from the Paparazzi Center?

Also, how do I build from the command line? I tried just using the command line it shows:

make -C /home/ben/git-work/paparazzi -f Makefile.ac AIRCRAFT=ardrone2_sdk ap.compile

But I get:

make: Entering directory `/home/ben/git-work/paparazzi'
-----------------------------------------------------------------------
Paparazzi version v5.0.0_stable-95-g80193d1-dirty
-----------------------------------------------------------------------
ardrone2_sdk
BUILD ardrone2_sdk, TARGET ap
Fatal error: exception Xml.File_not_found("/home/ben/paparazzi/conf/conf.xml")
make: *** [ap.ac_h] Error 2
make: Leaving directory `/home/ben/git-work/paparazzi'


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]