Giter Site home page Giter Site logo

Comments (10)

RichardWarburton avatar RichardWarburton commented on June 18, 2024

Thanks for filing the issue. IIRC using pkgconfig to lookup unittest++ didn't work out so well for me, so is there a particular way you would like to have the include set? Eg: would you want to set an environment variable which overrides the unittest include?

from honest-profiler.

rombert avatar rombert commented on June 18, 2024

I have little knowledge of Makefiles and pkgconfig, but a environment variable override sounds fine.

from honest-profiler.

Pyrolistical avatar Pyrolistical commented on June 18, 2024

Same issue on Mac, I hacked the CMakeLists.txt to use my own unittest++

See #1 for more details

from honest-profiler.

RichardWarburton avatar RichardWarburton commented on June 18, 2024

@rombert can you confirm that the move to cmake has fixed this issue on your distro?

@Pyrolistical what changes did you make to CMakeLists.txt in order to get things to work on a mac?

#1 links to a method for pulling down external source dependencies and building them using cmake - though I've never done this before. This seems like a more general solution.

from honest-profiler.

Pyrolistical avatar Pyrolistical commented on June 18, 2024

@RichardWarburton I've added my hack to CMakeLists.txt in #1

from honest-profiler.

rombert avatar rombert commented on June 18, 2024

@RichardWarburton - for some reason this still does not work.

$ cmake CMakeLists.txt 
-- checking for module 'unittest++'
--   package 'unittest++' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:341 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:395 (_pkg_check_modules_internal)
  CMakeLists.txt:33 (pkg_check_modules)


-- using GCC
-- Configuring incomplete, errors occurred!

Is there any way I can help debug this? For the record, the headers live in /usr/include/unittest-cpp and the .a file is in /usr/lib64 .

from honest-profiler.

RichardWarburton avatar RichardWarburton commented on June 18, 2024

@rombert have you tried deleting CMakeCache.txt and re-running cmake CMakeLists.txt?

from honest-profiler.

rombert avatar rombert commented on June 18, 2024

@RichardWarburton - thanks, but that still did not help.

from honest-profiler.

RichardWarburton avatar RichardWarburton commented on June 18, 2024

@rombert I've added parameters for this for you. For example on ubuntu you would write the following to manually set UnitTest++:

UNITTEST_INCLUDE_DIRS="/usr/include/unittest++/" UNITTEST_LIBRARIES="UnitTest++" cmake CMakeLists.txt

If nothing appears to be different, try cleaning the cache - rm -rf CMakeCache.txt CMakeFiles/

from honest-profiler.

rombert avatar rombert commented on June 18, 2024
UNITTEST_INCLUDE_DIRS="/usr/include/unittest-cpp" UNITTEST_LIBRARIES="UnitTest++" cmake CMakeLists.txt 

worked for me, thank you!

from honest-profiler.

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.