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

Alexander Neundorf neundorf at kde.org
Fri Jan 19 23:23:38 CET 2007


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)
>
> That line used to work in KUbuntu (Laurent Montel wrote all the CMake-magic
> about OCaml and libfacile) but does no longer in OpenSUSE 10.2. I am
> getting this error:
>
> cd /home/kde4/build/kdeedu/kalzium/src && /usr/bin/cmake -P
> CMakeFiles/kalzium.dir/cmake_clean_target.cmake
> cd /home/kde4/build/kdeedu/kalzium/src
> && /usr/bin/c++     -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef
> -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security
> -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -g3
> -fno-inline  -fPIC "CMakeFiles/kalzium.dir/kalzium.o"
> "CMakeFiles/kalzium.dir/main.o"
> "CMakeFiles/kalzium.dir/periodictableview.o"
> "CMakeFiles/kalzium.dir/detailinfodlg.o"
> "CMakeFiles/kalzium.dir/tablesdialog.o"
> "CMakeFiles/kalzium.dir/orbitswidget.o"
> "CMakeFiles/kalzium.dir/elementdataviewer.o"
> "CMakeFiles/kalzium.dir/detailedgraphicaloverview.o"
> "CMakeFiles/kalzium.dir/molcalcwidget.o"
> "CMakeFiles/kalzium.dir/somwidget_impl.o"
> "CMakeFiles/kalzium.dir/timewidget_impl.o"
> "CMakeFiles/kalzium.dir/kalziumdataobject.o"
> "CMakeFiles/kalzium.dir/spectrumwidget.o"
> "CMakeFiles/kalzium.dir/nuclideboard.o" "CMakeFiles/kalzium.dir/exporter.o"
> "CMakeFiles/kalzium.dir/spectrumviewimpl.o"
> "CMakeFiles/kalzium.dir/kalziumutils.o"
> "CMakeFiles/kalzium.dir/kalziumgradienttype.o"
> "CMakeFiles/kalzium.dir/kalziumnumerationtype.o"
> "CMakeFiles/kalzium.dir/kalziumpainter.o"
> "CMakeFiles/kalzium.dir/kalziumschemetype.o"
> "CMakeFiles/kalzium.dir/kalziumtabletype.o"
> "CMakeFiles/kalzium.dir/search.o" "CMakeFiles/kalzium.dir/searchwidget.o"
> "CMakeFiles/kalzium.dir/rsdialog.o" "CMakeFiles/kalzium.dir/eqchemview.o"
> "CMakeFiles/kalzium.dir/moleculeview.o" "CMakeFiles/kalzium.dir/prefs.o"
> "/home/kde4/build/kdeedu/kalzium/src/solver.o"
> "/home/kde4/build/kdeedu/kalzium/src/modwrap.o"  -o kalzium -rdynamic
> -L/usr/local/lib -L/opt/kde4/lib -L/home/kde4/build/kdeedu/lib -lQtCore
> -lpthread -lkdecore -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lXpm
> -lQt3Support -lQtGui -lQtXml -lkdefx -lkdeui -lkhtml -lkutils -lscience
> -lkdeeduplot -lkdeeduui -lopenbabel -lQtOpenGL -lcompoundviewer -lasmrun
> -lstr -lnums -lm -ldl -lkdeui -lkde3support -lktexteditor -lkdocument
> -lkdeprint -lkde3support -lkutils -lkparts -lkjs -lm -lpcre -lpcreposix
> -lphononcore -ljpeg -lgif -lpng -lkhtml -lopenbabel -lQtOpenGL -lkio
> -lkdeui -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lXpm -lQt3Support
> -lQtXml -lkdefx -lQtGui -lkwalletclient -lkdesu -lkdecore -lQtCore
> -lpthread -lQtSvg -lQtDBus -lutil -lz -lbz2 -lresolv -lXtst -lkparts -lGL
> -lGLU -Wl,-rpath,/home/kde4/install/lib:/usr/local/lib:/opt/kde4/lib
> /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld:
> cannot find -lasmrun
> collect2: ld returned 1 exit status
> make[2]: *** [kalzium/src/kalzium] Error 1
>
>
> Of course, OCaml and libfacile are installed and CMake (2.4.6, by the way)
> claims to have found both OCaml and Libfacile. libasm comes with OCaml....
>
> I don't know where to start working on this problem, so any pointers might
> help...

Instead of simply using "asmrun" in target_link_libraries(), you should use
find_library(ASMRUN_LIBRARY NAMES asmrun PATHS <add extra search paths here> )

Where is libasmrun.so located on your system ?

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