[Top][All Lists]

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

Re: [Paparazzi-devel] Module using external package

From: Felix Ruess
Subject: Re: [Paparazzi-devel] Module using external package
Date: Thu, 15 Aug 2013 19:04:34 +0200


although I never tried it, there should not be any limitation (in principle) using external libraries in modules.
You however need to add a raw makefile section to your module.xml and add your library there.

Something like:
<module name="foo" dir="bar">
    <description>my awsome module</description>
  <makefile target="ap">
    <file name="my_source.c"/>
    <raw>ap.CFLAGS += -lmylib</raw>

Can you please post your module xml file?

Cheers, Felix

On Thu, Aug 15, 2013 at 4:59 PM, m <address@hidden> wrote:
Hello all,

I wanted to create a module in which I use external package(IPOPT) for some computation. Since I'm quite new to paparazzi I'm not sure how that can be done... I used simple example code from the IPOPT package and modified it into a module and first I want to compile it with paparazzi however when I try to do that with target 'ap'(with simulation I get similar results) it seems like object file created can not find libraries:

/home/bheliom/develop/paparazzi/var/Bixler/ap/modules/hs_module/hs071_c.o: In function `ipopt_init':
/home/bheliom/develop/paparazzi/sw/airborne/modules/hs_module/hs071_c.c:75: undefined reference to `CreateIpoptProblem'
/home/bheliom/develop/paparazzi/sw/airborne/modules/hs_module/hs071_c.c:89: undefined reference to `AddIpoptStrOption'

Undefined references are of course IPOPT functions. When I use makefile in my module folder just to check whether the code is working with IPOPT, it works so include directories are well defined.

Can I even use external package like this ? Or I have to somehow implement it into paparazzi ? I tried changing makefile options in my module xml but without any good result. 

Paparazzi-devel mailing list

reply via email to

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