cubert-hyperspectral / cuvis.cpp

Apache License 2.0
1 stars 2 forks source link

Problems using cmake on ubunutu #6

Open antmedellin opened 1 year ago

antmedellin commented 1 year ago

I am trying to update my code for the new changes on an ubuntu system. When I went to use the cmake command, I get the following error:

CMake Error at /cuvis.sdk/cuvis.cpp/FindCuvisCpp.cmake:85 (message): Failed to compile and run get_version_executable Call Stack (most recent call first): /cuvis.sdk/cuvis.cpp/FindCuvisCpp.cmake:92 (get_library_version) CMakeLists.txt:64 (find_package)

The associated line in the cmake file is (find_package(CuvisCpp REQUIRED))

It looks like the comment for the relevant code is for dll which is for windows and not ubuntu. How should the file be modified to work with ubuntu?

Thanks, Anthony

antmedellin commented 12 months ago

Had to comment out the following and it still worked.

# if (NOT GET_VERSION_COMPILE_RESULT)
#   message(FATAL_ERROR "Failed to compile and run get_version_executable")
# endif()

This variable is true for the the findcuvis.cmake file but not for the findcuviscpp.cmake file

Also had to set DOXYGEN_BUILD_DOCUMENTATION to false.

After trying "make" command it would not get past "Searching for documented variables..."

robertCubert commented 12 months ago

@birkholz-cubert could you please investigate?