Hi List,

I'm new here, so please be patient! :)

I'm building Slicer3 on Solaris 10 (and OpenSolaris too), together with all of 
it's requirements, CMake included (to be precise: CMake is first in the 
toolchain).

I asked the bellow question on the Slicer-devel list, and I was kindly advised 
to ask it here too, as it rather seems to be a cmake issue.

I build Slicer 3 with cmake version 2.4-patch 2 (as described on the Slicer 
pages), and no problem up until Slicer. When it comes to Slicer, "suddenly" a 
"-lutil" linker flag gets added to the 
[slicer3-build-dir]/[whatever_path]/build.make files, and the compilation 
stops, as the linker cannot find -lutil.
But only if I do it with gcc... If I build with Sun's cc/CC (build the whole 
"toolchain" with that), no "-lutil" gets added to those build.make files. 
There is no such thing as libutil.so on Solaris, and Slicer certainly does not 
need it here. (this lib does not exist on neither Windows, nor on the Mac).
I wrote a one-liner script to replace the string "-lutil" with "" as a 
workaround, but that's just an ugly hack :)
There is no such problem with - for example - neither ITK or VTK.
I have not found _any_ sign of "libutil" "lutil" or "LIBUTIL" or similar string 
in the Slicer sources, so I'm practically lost here...
I'm not a CMake expert, so therefore I kindly ask you for some advice where to 
start with this issue. Where/what would you look for this issue first?

Thank you for your time

Attila Nagy

(PS: referring to a recent conversation about Solaris and CMake - I had 
absolutely no problems building and using CMake neither on Nevada, nor on 
Solaris 10 (x86 both); and both with gcc and Sun's cc everything went fine)

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to