bgrimstad/splinter

Cannot open include file: 'json.h': No such file or directory

espdev opened this issue · 4 comments

I'm trying to use your fine library, but I'm getting an error:

Cannot open include file: 'json.h': No such file or directory

I think this error is occurred because thirdparty header file json.h has not been copied to include directory in cmake_install_prefix while INSTALL step.

I think you need to create a cmake config for standard CMake find_package mechanism for using your library as external dependency in other cmake-based projects. For example:

find_package(Splinter REQUIRED)

add_executable(MySplinesApp main.cpp)
target_include_directories(MySplinesApp ${SPLINTER_INCLUDE_DIRS})
target_link_libraries(MySplinesApp ${SPLINTER_LIBRARIES})

Thanks!

Thanks for your feedback. I agree, this is definitely something we should do. We are quite busy at the moment, but in the fall we intend to overhaul the library.

If you don't mind me asking, what do you use the library for, and what language do you use?

@gablank Thank you for your answer

I use the library for the interpolation and smoothing 1D and 2D data sets in our application which processes 2D/3D medical images. We use C++ as the main language and Python to develop prototypes and algorithms.

Please verify that 8b27508 fixes this problem.

It seems like it does. Fixed in 8b27508.