Le samedi 17 octobre 2009 17:08:29, Andrew a écrit :
> Hi there,
Hi !
> I'm having some challenges compiling the latest SVN of liquidsoap with
> the aacplus library enabled. I get the following:
>
> gmake[3]: Entering directory `/root/downloads/savonet/liquidsoap/src'
> OCAMLC -o liquidsoap
> /root/downloads/savonet/liquidsoap/../ocaml-aacplus/src/
> libaacplus_stubs.a(aacplus_stubs.o)(.text+0x26): In function
>
> `finalize_aac_env':
> : undefined reference to `AacEncClose'
>
(...)
> Error during linking
> gmake[3]: *** [liquidsoap] Error 2
> gmake[3]: Leaving directory `/root/downloads/savonet/liquidsoap/src'
> gmake[2]: *** [all-auto-ocaml-prog] Error 2
> gmake[2]: Leaving directory `/root/downloads/savonet/liquidsoap/src'
> gmake[1]: *** [all-subdirs] Error 2
> gmake[1]: Leaving directory `/root/downloads/savonet/liquidsoap'
> gmake: *** [all] Error 1
>
>
> Any thoughts?
Hmmm..
The error comes from the fact that the linker does not find the symbols for
libaacplus.
This may come from several points. First, could you show us the compilation
logs for ocaml-aacplus ?
In these logs, you should see something like:
/usr/bin/ocamlopt -a -cclib -laacplus_stubs -cclib -laacplus -
cclib -lm -cclib -lfftw3f \
-o aacplus.cmxa aacplus.cmx
Which indicates that the module needs aacplus (l-aacplus) to compile. This
value should then be passed to liquidsoap when compiling.
You can also check this using ocamlobjinfo:
~ ocamlobjinfo ./aacplus.cma:
(...)
Extra C object files: -lfftw3f -lm -laacplus -laacplus_stubs
Hence, second question, could you send the compilations logs of liquidsoap
when using V="" (gmake V=""). That way, we should be able to check if the
linker flags include -laacplus.
Eventually, I remember that *BSD users often have compilation issues when a
library is located in /usr/local/lib since this path is not included by
default. That could be another reason for the issue, but then I think the
linker should complain that it didn't find the lib..
Let us know !
Romain
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users