thank you!
i see now (i didn’t find it before as in m CMakeCache.txt it is “X11_SM_LIB”)
i tried:
//Path to a library.
X11_SM_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libSM.so -luuid
it gave this error:
make[2]: *** No rule to make target ‘/usr/lib/x86_64-linux-gnu/libSM.so -luuid’, needed by ‘lib/libvtkRenderingOpenGL2-pv5.5.so.1’. Stop.
CMakeFiles/Makefile2:3296: recipe for target ‘VTK/Rendering/OpenGL2/CMakeFiles/vtkRenderingOpenGL2.dir/all’ failed
make[1]: *** [VTK/Rendering/OpenGL2/CMakeFiles/vtkRenderingOpenGL2.dir/all] Error 2
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2
the same with:
X11_SM_LIB:“FILEPATH=/usr/lib/x86_64-linux-gnu/libSM.so -luuid”
X11_SM_LIB:“STRING=/usr/lib/x86_64-linux-gnu/libSM.so -luuid”
X11_SM_LIB:FILEPATH="/usr/lib/x86_64-linux-gnu/libSM.so -luuid" ended with:
/usr/bin/ld: cannot find -l/usr/lib/x86_64-linux-gnu/libSM.so -luuid
collect2: error: ld returned 1 exit status
VTK/Rendering/OpenGL2/CMakeFiles/vtkRenderingOpenGL2.dir/build.make:3093: recipe for target ‘lib/libvtkRenderingOpenGL2-pv5.5.so.1’ failed
make[2]: *** [lib/libvtkRenderingOpenGL2-pv5.5.so.1] Error 1
CMakeFiles/Makefile2:3296: recipe for target ‘VTK/Rendering/OpenGL2/CMakeFiles/vtkRenderingOpenGL2.dir/all’ failed
make[1]: *** [VTK/Rendering/OpenGL2/CMakeFiles/vtkRenderingOpenGL2.dir/all] Error 2
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2
X11_SM_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libSM.so;-luuid
took the longest but also gave an error:
[100%] Linking CXX executable …/bin/pvdataserver
//usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference to uuid_generate@UUID_1.0' //usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference touuid_unparse_lower@UUID_1.0’
collect2: error: ld returned 1 exit status
CommandLineExecutables/CMakeFiles/pvdataserver.dir/build.make:129: recipe for target ‘bin/pvdataserver’ failed
make[2]: *** [bin/pvdataserver] Error 1
CMakeFiles/Makefile2:49614: recipe for target ‘CommandLineExecutables/CMakeFiles/pvdataserver.dir/all’ failed
make[1]: *** [CommandLineExecutables/CMakeFiles/pvdataserver.dir/all] Error 2
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2
gosia@nela:~/jobs$ c
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu 7.3.0-27ubuntu1~18.04’ --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
COLLECT_GCC_OPTIONS=’-v’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -v -imultiarch x86_64-linux-gnu test.c -quiet -dumpbase test.c -mtune=generic -march=x86-64 -auxbase test -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/cc5lHcHh.s
GNU C11 (Ubuntu 7.3.0-27ubuntu1~18.04) version 7.3.0 (x86_64-linux-gnu)
compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory “/usr/local/include/x86_64-linux-gnu”
ignoring nonexistent directory “/usr/lib/gcc/x86_64-linux-gnu/7/…/…/…/…/x86_64-linux-gnu/include” #include “…” search starts here: #include <…> search starts here:
/usr/lib/gcc/x86_64-linux-gnu/7/include
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
GNU C11 (Ubuntu 7.3.0-27ubuntu1~18.04) version 7.3.0 (x86_64-linux-gnu)
compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP
A segfault is expected. I guess more will have to be done to track down where the libuuid requirement is actually coming from and how to get it into the build.
in CMakeCache.txt helped and paraview compiled without problems,
there must be some difference between PV 5.5.2 and 5.6.0 related to that error, as i didn’t install/reinstall any other software on my laptop in between,
Thanks for reporting back. There probably is some difference, but if anyone needs to know in the future, bisecting would probably show the change which fixed it.
Similar to what Ben said I think one just needs to do this in the CMake-way. Therefore, add the following line to the file ParaView-v*/CMakeLists.txt: SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -luuid")
I’m not sure where to put it, I just placed it before the first include(...) statement. Solved the issue at least for me.