Git Product home page Git Product logo

Comments (6)

bbrister avatar bbrister commented on September 3, 2024

from sift3d.

cs123951 avatar cs123951 commented on September 3, 2024

Hi,
I got libofstd.a in /usr/lib/libofstd.a and /usr/local/lib/libofstd.a. I have installed DCMTK 3.6.2, the latest version, but I do not know how to build it as shared libraries.

Thanks again for your kindly reply.

from sift3d.

bbrister avatar bbrister commented on September 3, 2024

Try setting the variable BUILD_SHARED_LIBS=ON in your Cmake configuration for DCMTK. That should compile .so files instead of .a

from sift3d.

cs123951 avatar cs123951 commented on September 3, 2024

Thank you! I recompiled DCMTK by setting BUILD_SHARED_LIBS=ON and it succeeded!
However, another error happened when I call regSift3D.

ljy@user:~/Projects/SIFT3D-master/build/bin$ regSift3D --help
regSift3D: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/lib/sift3d/libsift3D.so)

My OS is Ubuntu 14.04. I attempted to install glibc_2.27, but it seems that glibc_2.27 can only run in Ubuntu 18 or higher version.
Can you help me?
Thanks a lot.

from sift3d.

bbrister avatar bbrister commented on September 3, 2024

Glad to hear we are making progress.

I have seen that error before when the C++ compiler for SIFT3D does not match the version used for libm. Have you installed a newer version of GCC than the one that comes with Ubuntu 14.04? One way to fix this is to downgrade to the default GCC. You can also upgrade your Ubuntu to 18.

This error probably won't occur in Matlab since it comes with its own versions of those core libraries. (But the same issue can result if Matlab doesn't support the GCC used for SIFT3D.)

from sift3d.

cs123951 avatar cs123951 commented on September 3, 2024

Hi,

Yes, the cause of the problem is the version of GCC. The following is my solution of this problem.
The version of my gcc is 5.5. So I downgrade it to 4.9.
I installed gcc-4.9 by the following commands:

sudo apt-get install gcc-4.9 
sudo apt-get install g++-4.9 

The installed gcc is in /usr/bin/, then I changed the setting before cmaking CMakeLists.txt:

export CC=/usr/bin/gcc-4.9
export CXX=/usr/bin/g++-4.9

Currently, I do not need to use Matlab. So I do know what will happen if I use Matlab.

All in all, thank you very much for your kind reply!

from sift3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.