|
From: Shahrokh N. (PhD) <Nas...@mu...> - 2020-09-29 07:10:38
|
Hello Dear TEEM developers and users: I want to access/extract scale-space particles system and hessian matrix and finally segment the pulmonary vessels. I asked my issue in the 3DSlicer Support<https://discourse.slicer.org/t/how-to-access-get-to-the-scale-space-particles/13591> and SlicerCIP community<https://discourse.slicer.org/t/how-to-access-get-to-the-scale-space-particles-system/13675> but received no feedback. For this purpose, I extracted the pulmonary vascular skeleton by using 3DSlicer modules and VMTK<http://www.vmtk.org/>. After doing it successfully, I tried to install teem on Fedora (versions 13 and 25) and Ubuntu (version 18.0.4.4) from source code I tried different methods but I did not succeed. Try #1: I download teem ()teem-1.11.0-src) and build it according with the description given in the site of Teem:Build<http://teem.sourceforge.net/build.html>. sn@MP:~$ mkdir teem sn@MP:~$ cp /home/sn/Downloads/teem-1.11.0-src.tar.gz ./teem/ sn@MP:~$ cd ./teem/ sn@MP:~/teem$ tar -xzf teem-1.11.0-src.tar.gz sn@MP:~/teem$ mkdir teem-1.11.0-build sn@MP:~/teem$ cd ./teem-1.11.0-build/ sn@MP:~/teem/teem-1.11.0-build$ ccmake ../teem-1.11.0-src ... Press [c] to configure ... I get the following error message: ... warning: Turning off Teem_ZLIB, because it wasn't found. warning: Turning off Teem_PNG, because it wasn't found. warning: Turning off Teem_BZIP2, because it wasn't found. CMake Warning (dev) at CMakeLists.txt:451 (EXPORT_LIBRARY_DEPENDENCIES): Policy CMP0033 is not set: The export_library_dependencies command should not be called. Run "cmake --help-policy CMP0033" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. ... Press [e] to exit help ... Page 1 of 1 BUILD_EXPERIMENTAL_APPS *OFF BUILD_EXPERIMENTAL_LIBS *OFF BUILD_HEX *OFF BUILD_SHARED_LIBS *OFF BUILD_TESTING *ON CMAKE_BACKWARDS_COMPATIBILITY *2.4 CMAKE_BUILD_TYPE * CMAKE_INSTALL_PREFIX */usr/local Teem_BZIP2 *OFF Teem_FFTW3 *OFF Teem_LEVMAR *OFF Teem_PNG *OFF Teem_PTHREAD *ON Teem_USE_LIB_INSTALL_SUBDIR *OFF Teem_VTK_MANGLE *OFF Teem_VTK_TOOLKITS_IPATH * Teem_VTK_ZLIB_MANGLE_IPATH * Teem_ZLIB *OFF ... I change the variable of BUILD_SHARED_LIBS to ON. ... Press [c] to configure ... I get the following warning message: ... CMake Warning (dev) at CMake/TestQnanhibit.cmake:33 (IF): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "HAVE_QNANHIBIT_VALUE" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMakeLists.txt:80 (TEST_QNANHIBIT) This warning is for project developers. Use -Wno-dev to suppress it. ... Press [e] to exit help ... Press [g] to generate and exit ... sn@MP:~/teem/teem-1.11.0-build$ make ... sn@MP:~/teem/teem-1.11.0-build$ sudo make install ... sn@MP:~/teem/teem-1.11.0-build$ ll -h /usr/local/lib/libteem.so lrwxrwxrwx 1 root root 12 Sep 29 09:34 /usr/local/lib/libteem.so -> libteem.so.1 sn@MP:~/teem/teem-1.11.0-build$ ll -h /usr/local/lib/libteem.so.1 lrwxrwxrwx 1 root root 17 Sep 29 09:34 /usr/local/lib/libteem.so.1 -> libteem.so.1.11.0 sn@MP:~/teem/teem-1.11.0-build$ ll -h /usr/local/lib/libteem.so.1.11.0 -rw-r--r-- 1 root root 3.9M Sep 29 09:34 /usr/local/lib/libteem.so.1.11.0 sn@MP:~/teem/teem-1.11.0-build$ Then I tested the installation steps with the following commands: sn@MP:~/teem/teem-1.11.0-build$ cd /home/sn/teem sn@MP:~/teem$ mkdir workspace sn@MP:~/teem$ cd workspace/ sn@MP:~/teem/workspace$ wget http://people.cs.uchicago.edu/~glk/ssp/mobius.py ... sn@MP:~/teem/workspace$ wget http://people.cs.uchicago.edu/~glk/ssp/img/fmob-c4h.nrrd ... sn@MP:~/teem/workspace$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib sn@MP:~/teem/workspace$ python mobius.py Traceback (most recent call last): File "mobius.py", line 3, in <module> import teem ImportError: No module named teem sn@MP:~/teem/workspace$ As you can see in the lines above, I defined the variable of LD_LIBRARY_PATH that refer to the location of libteem.so as mentioned in it<http://people.cs.uchicago.edu/~glk/ssp/>. At this site, it is mentioned that: ... These python programs assume (in their use of "import teem") that the location of the shared library for all of Teem, created by CMake, is in whatever library path variable your OS uses for this purpose. ... Anyway I get the error message of No module named teem. Why? Try #2: Also I installed the last version of teem (teem_1.12.0~20160122) from teem package : Ubuntu<https://launchpad.net/ubuntu/+source/teem>. Again, I get the same error. Try #3: Finally, I install with apt according with it<https://www.howtoinstall.me/ubuntu/18-04/teem-apps/>. I do not success. As you see, I tried the different ways, but I do not success. Please guide me to solve it. Best regards. Shahrokh. Shahrokh Nasseri Assistant Professor of Medical Physics Department and Research Center of Medical Physics Mashhad University of Medical Sciences Mashhad, Iran Tel: +98 513 8002328 Fax: +98 513 8002 320 e-mail: nas...@mu..., sha...@gm... |