Giter Club home page Giter Club logo

Comments (6)

hoamle avatar hoamle commented on July 20, 2024 1

You also need to link to libhdf5_hl_cpp.so and libhdf5_cpp.so. In face_swap/face_swap/CMakeLists.txt, add /path/to/libhdf5_hl_cpp.so and /path/to/libhdf5_cpp.so to target_link_libraries(face_swap ... ) after ${HDF5_LIBRARIES} (#L38)

Both files are most likely included in your anaconda2's library directory (/home/zmce/anaconda2/lib/, as are libhdf5_hl.so and libhdf5.so).

from face_swap.

hoamle avatar hoamle commented on July 20, 2024 1

@tjusxh You need to edit the CMakeList.txt in subdirectory ./face_swap (i.e. face_swap/face_swap/CMakeLists.txt, not the one at the project root (i.e. not face_swap/CMakeLists.txt).

I just edited the previous comment to make it clearer.

from face_swap.

YuvalNirkin avatar YuvalNirkin commented on July 20, 2024

Don't rely on the libraries that come with Anaconda.
Download the binaries from the official site or build your own version of HDF5.

from face_swap.

inkImage avatar inkImage commented on July 20, 2024

Hi, @hoamle , It is be fixed.Thanks

from face_swap.

noirblack avatar noirblack commented on July 20, 2024

Hi, @inkImage I get the same error, but I am not clearly have to fix it.
I can't find ${HDF5_LIBRARIES} in CMakeList.txt.
Could you help me? Thanks.

from face_swap.

tjusxh avatar tjusxh commented on July 20, 2024

@hoamle
According to your suggestion. I change the CMakeList.txt as following. But my question still exist. Please give me some suggestion. Thanks very much!
if(MSVC)

Find HDF5 using it's hdf5-config.cmake file with MSVC

if(DEFINED HDF5_DIR)
list(APPEND CMAKE_MODULE_PATH ${HDF5_DIR})
endif()
find_package(HDF5 COMPONENTS C HL CXX REQUIRED)
set(HDF5_LIBRARIES hdf5-shared hdf5_cpp-shared)
set(HDF5_HL_LIBRARIES hdf5_hl-shared)
target_link_libraries(face_swap "/usr/lib/x86_64-linux-gnu/libhdf5_cpp.so")
target_link_libraries(face_swap "/usr/lib/x86_64-linux-gnu/libhdf5_hl_cpp.so")
else()
find_package(HDF5 COMPONENTS HL REQUIRED)
endif()

My libhdf5_cpp.so and libhdf5_hl_cpp.so are located in /usr/lib/x86_64-linux-gnu.
default

from face_swap.

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.