|
From: | alonso acuña |
Subject: | [Paparazzi-devel] problem compiling xml generated files and Mandriva installation |
Date: | Wed, 10 Jul 2013 14:24:33 -0600 |
Date: Wed, 10 Jul 2013 14:53:33 +0200
From: Felix Ruess <address@hidden>
To: Paparazzi devel list <address@hidden>
Subject: Re: [Paparazzi-devel] Paparazzi-devel Digest, Vol 112, Issue
22
Message-ID:
<CAEc+GFeiwuQw7W1Sm=7JqMJKDG_x0jYhm9sVEd8D9700AiS=address@hidden>
Content-Type: text/plain; charset="utf-8"
Hi Alonso,
can you please take a look at the generated file
(paparazzi/var/Microjet/generated/modules.h) with the preprocessing errors?
Seems this is not correctly generated in your case and contains some error
messages from the DTD or so...
The debian maintainers of xml-light patched it so it doesn't barf DTD
traces into the output, I think this is the problem you are seeing.
How did you install the ocaml xml-light library? Is that a binary package
already available from Mandriva?
I actually added the same patch to the OCaml Package Manager
(opam)<http://opam.ocamlpro.com/> some
time ago:
https://github.com/OCamlPro/opam-repository/blob/master/packages/xml-light.2.2/files/fix_dtd_trace.patch
So you could either install xml-light via opam as well or patch it yourself
if you installed from the "official" sources.
Cheers, Felix
On Wed, Jul 10, 2013 at 2:24 AM, alonso acu?a <address@hidden> wrote:
> Hello Felix. I upgraded ocaml and some other libraries and now I get a
> clean make of paparazzi. However when building inside of the Paparazzi
> Center I get errors like
>
> paparazzi/var/Microjet/generated/modules.h:146:2: error: invalid
> preprocessing directive #PCDATA
>
> paparazzi/var/Microjet/generated/airframe.h:1:10: error: expected '=',
> ',', ';', 'asm' or '__attribute__' before ':' token
>
>
>
> ocamlc -version
> 4.00.1
> uname -a
> Linux tecram11 2.6.34.13alon #1 SMP PREEMPT Tue Feb 12 10:48:05 CST
> 2013 i686 i686 i386 GNU/Linux
>
>
>
>
>> Date: Tue, 9 Jul 2013 14:46:47 +0200
>> From: Felix Ruess <address@hidden>
>> To: Paparazzi devel list <address@hidden>
>> Subject: Re: [Paparazzi-devel] Problem compiling
>> Message-ID:
>> <CAEc+GFczUFD1=
>> address@hidden>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi Alonso,
>>
>> Since you are using v5.0 it shouldn't try to build input2ivy in custom
>> mode... removing the function calls that are not found will of course
>> render the joystick interface unusable.
>>
>> This might have something to do with your OCaml version.
>> Can you please provide some more details about your system?
>>
>> ocamlc -version
>> uname -a
>>
>> And post the full verbose build output of joystick:
>> cd sw/ground_segment/joystick
>> make clean
>> make Q=''
>>
>> Cheers, Felix
>>
>>
>> On Tue, Jul 9, 2013 at 12:17 PM, alonso <address@hidden> wrote:
>>
>> > Hello. I am trying to learn Paparazzi and have just installed it but I
>> am
>> > having some trouble. The initial make had some issues
>> >
>> > OC input2ivy.ml
>> > OL input2ivy
>> > /tmp//ccoeQJCE.o:(.data+0x7d8): undefined reference to `ml_stick_read'
>> > /tmp//ccoeQJCE.o:(.data+0x7dc): undefined reference to `ml_stick_init'
>> > collect2: ld returned 1 exit status
>> > File "_none_", line 1, characters 0-1:
>> > Error: Error while building custom runtime system
>> > make[1]: *** [input2ivy] Error 2
>> > make: *** [joystick] Error 2
>> >
>> >
>> > I had to edit input2ivy.ml in order to remove calls to those funtions,
>> > then I managed to complete the make.
>> >
>> > Now when I run
>> >
>> > make AIRCRAFT=Microjet sim Q=''
>> >
>> > I get the output below. I read in some other message that the above
>> > command could be usefull in order to debug this problem but I don't
>> really
>> > know what I am doing yet.
>> > I am using Mandriva Linux which I understand is not supported but
>> perhaps
>> > this is not too complicated to fix?
>> >
>> > Thanks
>> >
>> > Alonso Acu?a
>> >
>> >
>> >
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nongnu.org/archive/html/paparazzi-devel/attachments/20130710/403cd0f1/attachment.html>
------------------------------
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
End of Paparazzi-devel Digest, Vol 112, Issue 26
************************************************
[Prev in Thread] | Current Thread | [Next in Thread] |