|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] Setting flags for build? |
Date: | Sat, 7 Sep 2013 20:17:04 +0200 |
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.compileThat 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_sdkBUILD ardrone2_sdk, TARGET apmake[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 allCC /home/ben/git-work/paparazzi/var/ardrone2_sdk/ap/firmwares/rotorcraft/main.oIn 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 ')' tokenmake[1]: *** [/home/ben/git-work/paparazzi/var/ardrone2_sdk/ap/firmwares/rotorcraft/main.o] Error 1make: *** [ap.compile] Error 2Cheers, FelixOn 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.compileor equivalently:make -C /home/ben/git-work/paparazzi AIRCRAFT=ardrone2_sdk ap.compileIf I do this, I get a bit further, but...CC /home/ben/git-work/paparazzi/var/ardrone2_sdk/ap/firmwares/rotorcraft/main.oIn 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 â tokenmake[1]: *** [/home/ben/git-work/paparazzi/var/ardrone2_sdk/ap/firmwares/rotorcraft/main.o] Error 1make: *** [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, 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
_______________________________________________
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
[Prev in Thread] | Current Thread | [Next in Thread] |