|
From: | Ben Laurie |
Subject: | Re: [Paparazzi-devel] Setting flags for build? |
Date: | Sat, 7 Sep 2013 17:35:31 +0100 |
Hi Ben,easiest is to compile from the Paparazzi directory:make AIRCRAFT=ardrone2_sdk ap.compileor equivalently:make -C /home/ben/git-work/paparazzi AIRCRAFT=ardrone2_sdk ap.compile
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, FelixOn 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.compileBut I get:make: Entering directory `/home/ben/git-work/paparazzi'-----------------------------------------------------------------------Paparazzi version v5.0.0_stable-95-g80193d1-dirty-----------------------------------------------------------------------ardrone2_sdkBUILD ardrone2_sdk, TARGET apFatal error: exception Xml.File_not_found("/home/ben/paparazzi/conf/conf.xml")make: *** [ap.ac_h] Error 2make: 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
[Prev in Thread] | Current Thread | [Next in Thread] |