Git Product home page Git Product logo

Comments (5)

uricamic avatar uricamic commented on July 21, 2024

Hi @tell10glu,

could you please provide some screenshot of the error you are getting. On linux there were no issues of this kind reported, so it might help to get in the picture of what might be wrong in your case.

from clandmark.

tell10glu avatar tell10glu commented on July 21, 2024

In CApperanceModel.h this is the error i am getting.
http://s21.postimg.org/ajv659nfr/Screen_Shot_2016_03_16_at_22_03_54.png

from clandmark.

uricamic avatar uricamic commented on July 21, 2024

Sorry, I didn't specify it, but I meant the screenshots of the whole CMake configuration procedure. And also bigger pictures please, this is not very readable.

from clandmark.

tell10glu avatar tell10glu commented on July 21, 2024

Is this enough ? If it's not, you should tell me where is the path of configuration file that you want.
http://s8.postimg.org/5g0qouk8l/Screen_Shot_2016_03_16_at_22_16_49.png

from clandmark.

uricamic avatar uricamic commented on July 21, 2024

I see, now I finally got what is the problem.

You compiled the library successfully and now you would like to use it in your project, right?

This is not documented on the webpages yet, I am sorry. Hope this quick tutorial will help you.

You should either follow the scheme which is used in examples folder, or use the external approach, the template for the CMakeLists.txt would be as follows

cmake_minimum_required(VERSION 2.8.9)

project(clandmark_external)

find_package(clandmark REQUIRED)
find_package(flandmark REQUIRED)

include_directories(
  ${OpenCV_INCLUDE_DIR}
  ${CLANDMARK_INCLUDE_DIRS}
  ${FLANDMARK_INCLUDE_DIRS}
)

if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE RELEASE CACHE STRING
      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
      FORCE
  )
endif(NOT CMAKE_BUILD_TYPE)

SET (CMAKE_EXE_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,'$ORIGIN/' " )

set(SRCS main)
foreach(var ${SRCS})
  add_executable(${var} ${var}.cpp)
  target_link_libraries(${var} ${FLANDMARK_LIBRARIES} ${CLANDMARK_LIBRARIES}
endforeach()

option(DOUBLE_PRECISION "Set the default precision used in CLandmark" ON)
# propagate precision definition
if(DOUBLE_PRECISION)
  add_definitions( -DDOUBLE_PRECISION=1 )
else(DOUBLE_PRECISION)
  add_definitions( -DDOUBLE_PRECISION=0 )
endif(DOUBLE_PRECISION)

modify it as needed (i.e. add some possible additional libraries like OpenCV etc.).

In case clandmark library is not found automatically, just modify the path manually during CMake configuration process.

from clandmark.

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.