Git Product home page Git Product logo

Comments (5)

uricamic avatar uricamic commented on July 21, 2024

Hi @mrjogo,

just to avoid possible confusion, was the library successfully compiled?

from clandmark.

mrjogo avatar mrjogo commented on July 21, 2024

Yes, using default CMake options.

I could be missing a step to set up CMake after installing CLandmark using make install. Using this trivial CMakeLists.txt:

cmake_minimum_required(VERSION 2.8)
project(test_clandmark)

find_package(clandmark REQUIRED)

MESSAGE(STATUS "CLANDMARK_INCLUDE_DIRS: " ${CLANDMARK_INCLUDE_DIRS})
MESSAGE(STATUS "CLANDMARK_LIBRARIES: " ${CLANDMARK_LIBRARIES})

Creates the following output (you can see the variables aren't set):

$ cmake ..
-- The C compiler identification is AppleClang 5.1.0.5030040
-- The CXX compiler identification is AppleClang 5.1.0.5030040
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CLANDMARK_INCLUDE_DIRS: 
-- CLANDMARK_LIBRARIES: 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ruddick/Desktop/test_clandmark/build

Thanks!

from clandmark.

uricamic avatar uricamic commented on July 21, 2024

And do you see clandmark_DIR and flandmark_DIR variables in CMake?

If anything fails, you can specify the include directories and libraries manually by adding the libclandmark/ folder to the includes and both clandmark and flandmark dynamic libraries...

from clandmark.

mrjogo avatar mrjogo commented on July 21, 2024

I output all the CMake variables from the above CMakeLists.txt, and here were the clandmark ones:

-- clandmark_CONFIG=/usr/local/lib/cmake/clandmark/clandmarkConfig.cmake
-- clandmark_CONSIDERED_CONFIGS=/usr/local/lib/cmake/clandmark/clandmarkConfig.cmake
-- clandmark_CONSIDERED_VERSIONS=1.5
-- clandmark_DIR=/usr/local/lib/cmake/clandmark
-- clandmark_FOUND=1
-- clandmark_VERSION=1.5
-- clandmark_VERSION_COUNT=2
-- clandmark_VERSION_MAJOR=1
-- clandmark_VERSION_MINOR=5
-- clandmark_VERSION_PATCH=0
-- clandmark_VERSION_TWEAK=0

Interestingly, when I add find_package(flandmark REQUIRED), I get the following error, despite flandmark also having been installed:

CMake Error at CMakeLists.txt:5 (find_package):
  By not providing "Findflandmark.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "flandmark", but CMake did not find one.

  Could not find a package configuration file provided by "flandmark" with
  any of the following names:

    flandmarkConfig.cmake
    flandmark-config.cmake

  Add the installation prefix of "flandmark" to CMAKE_PREFIX_PATH or set
  "flandmark_DIR" to a directory containing one of the above files.  If
  "flandmark" provides a separate development package or SDK, be sure it has
  been installed.

I can certainly work around this, but it seems that something's going wrong with the install (I'm afraid I'm not familiar enough with CMake or your library to diagnose what).

from clandmark.

uricamic avatar uricamic commented on July 21, 2024

Ok, thanks for the error messages, I will try to fix this.

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.