Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile on Ubuntu 16.04 #3

Open
michbad opened this issue Jun 24, 2016 · 2 comments
Open

Doesn't compile on Ubuntu 16.04 #3

michbad opened this issue Jun 24, 2016 · 2 comments

Comments

@michbad
Copy link

michbad commented Jun 24, 2016

There are two problems when trying to compile the program on Ubuntu 16.04:

  • Error "hdf5.h not found". This is fixed by creating symlinks:

    cd /usr/lib/x86_64-linux-gnu
    sudo ln -s libhdf5_serial.so.<VERSION> libhdf5.so
    sudo ln -s libhdf5_serial_hl.so.<VERSION> libhdf5_hl.so
    

    and by adding more include paths in the SConstruct file:

    env.Append(LIBPATH = ["/usr/local/lib", "/usr/lib", "/usr/lib/x86_64-linux-gnu/hdf5/serial/"],
         CPPPATH = ["/usr/local/include", "/usr/include/hdf5/serial/"])`
    
  • Linking error related to pthreads. This is fixed by:
    env.Append(_LIBFLAGS = ["-lpthread"])
    It's important that -lpthread flag is at the end of the flags.

I'm not sure if that's a problem related to new versions of libraries or Ubuntu-specific, but perhaps the SConstruct file should be modified, or a new wiki page should be created.
(Compare: BVLC/caffe#2347 NVIDIA/DIGITS#156)

@christopher5106
Copy link

christopher5106 commented Jul 4, 2016

Just change the following line in the makefile :

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/

@christopher5106
Copy link

The makefile.config :

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/ and
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial/

and

cd /usr/lib/x86_64-linux-gnu
sudo ln -s libhdf5_serial.so.8.0.2 libhdf5.so
sudo ln -s libhdf5_serial_hl.so.8.0.2 libhdf5_hl.so

works for me

NotAndOr added a commit to NotAndOr/bookmarks that referenced this issue Jan 29, 2017
NotAndOr added a commit to NotAndOr/bookmarks that referenced this issue Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants