GithubHelp home page GithubHelp logo

Comments (5)

anhttran avatar anhttran commented on August 15, 2024

Did you build Dlib to shared object (.so) file?
Check the CMakeLists.txt of Dlib before building. With my version (19.10), I need to add the following line befor building Dlib:
"set(DLIB_IN_PROJECT_BUILD false)"

from extreme_3d_faces.

anlan625 avatar anlan625 commented on August 15, 2024

Hi Thanks for the reply.

I checked my CMakeLists.txt again and I found it includes "set(DLIB_IN_PROJECT_BUILD false)". I tried to build it from scratch again and the same problem comes again.

Here is my CMakeLists.txt:
get_directory_property(has_parent PARENT_DIRECTORY)
if(NOT has_parent
set(DLIB_IN_PROJECT_BUILD false)
endif()
add_subdirectory(dlib)

According to dlib:
( When you call add_subdirectory(dlib) from a parent CMake project dlib's
CMake scripts will assume you want to statically compile dlib into
whatever you are building rather than create a standalone copy of dlib.
This means CMake will build dlib as a static library, disable dlib's
install targets so they don't clutter your project, and adjust a few other
minor things that are convenient when statically building dlib as part of
your own projects.
On the other hand, if there is no parent CMake project or if
DLIB_IN_PROJECT_BUILD is set to false, CMake will compile dlib as a normal
standalone library (either shared or static, based on the state of CMake's
BUILD_SHARED_LIBS flag), and include the usual install targets so you can
install dlib on your computer via make install. Since the only reason
to build this CMakeLists.txt (the one you are reading right now) by itself
is if you want to install dlib, we indicate as such by setting
DLIB_IN_PROJECT_BUILD to false.)

Later, I tried to delete the "add_subdirectory(dlib)" and build it again, it still does not work.

I wonder what to do now. Thanks again!

from extreme_3d_faces.

FelipeCrispim avatar FelipeCrispim commented on August 15, 2024

Hi @anlan625 , one temporary solution that you can do is directly add the path of the Dlib in the includes of the file modules/PoseExpr/include/DlibWrapper.h.

from extreme_3d_faces.

anhttran avatar anhttran commented on August 15, 2024

Thank you for your interest on my work.
I will provide Docker file to build this code in few days. Hope it will solve all compilation issues.

from extreme_3d_faces.

anhttran avatar anhttran commented on August 15, 2024

I have converted my code to Docker for easier installation.

from extreme_3d_faces.

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.