Help needed: libasm and others are not found (kdeedu/Kalzium)

Alexander Neundorf neundorf at kde.org
Sat Jan 20 00:40:03 CET 2007


On Friday 19 January 2007 23:59, Carsten Niehaus wrote:
> Am Freitag, 19. Januar 2007 23:23 schrieb Alexander Neundorf:
> > On Friday 19 January 2007 19:15, Carsten Niehaus wrote:
> > > Moin all
> > >
> > > if(LIBFACILE_FOUND)
> > >    target_link_libraries(kalzium asmrun str nums m dl)
> > > endif(LIBFACILE_FOUND)
> >
> > Instead of simply using "asmrun" in target_link_libraries(), you should
> > use find_library(ASMRUN_LIBRARY NAMES asmrun PATHS <add extra search
> > paths here> )
>
> I guess the same holds true for the four other libs?

Yes.
And then of course actually use that value in target_link_libraries()

> > Where is libasmrun.so located on your system ?
>
> /usr/lib/ocaml/libasmrun.a

Ok, so it should be something like:

find_library(ASMRUN_LIBRARY NAMES asmrun PATH_SUFFIXES ocaml)

Then the default lib dirs (/lib, /usr/lib, /usr/local/lib) will be checked, 
and additionally ocaml/ will be appended to each of these dirs and they will 
be searched too.

> The funny thing is that I just removed libfacile and reinstalled it, not
> libasmrun is found... But libasmrun has _nothing_ to do with libfacile...

> it comes with ocaml. libfacile is in $OCAMLDIR/libfacile/ and just
> installed four files (facile.a  facile.cma  facile.cmi  facile.cmxa). I
> really don't know why, but now it works...

Maybe something like OCAML_LIB was used which added /usr/local/lib/ocaml/ 
already to the link command ?

> Still, should I change the cmake-logic to what you proposed?

Yes :-)

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list