ossimlabs / ossim

Core OSSIM (Open Source Software Image Map) package including C++ code for OSSIM library, command-line applications, tests, and build system
MIT License
296 stars 142 forks source link

Unknown cmake ossim macro and unfound modules #242

Open BastienMac opened 4 years ago

BastienMac commented 4 years ago

Hello,

I'm trying to compile ossim as I can... I tryed with 2 versions :

In both case I have a problem with the ossim macro (like OSSIM_ADD_COMMON_MAKE_UNINSTALL). I think the macro should be defined in a file (OssimUtilities.cmake if I refer to some comments in the CMakeLists.txt of the svn version). But I'm not able to find that file.

I also have errors saying that the modules OssimVersion, OssimUtilities and OssimCommonVariables can't be found.

Here my cmake output :

CMake Error at CMakeLists.txt:33 (INCLUDE):
  include could not find load file:

    OssimVersion

CMake Error at CMakeLists.txt:34 (INCLUDE):
  include could not find load file:

    OssimUtilities

CMake Error at CMakeLists.txt:35 (INCLUDE):
  include could not find load file:

    OssimCommonVariables

CMake Error at CMakeLists.txt:91 (add_subdirectory):
  add_subdirectory given source "/install/ossim2.0/ossim" which is not an
  existing directory.

-- Found Doxygen: /usr/bin/doxygen (found version "1.8.5")
CMake Warning at CMakeLists.txt:251 (MESSAGE):
  File /install/ossim2.0/ossim/share/ossim/geoids/egm96.grd not found for
  install!

CMake Error: File /install/ossim2.0/ossim/cmake/packaging/pkgconfig/ossim.pc.in does not exist.
CMake Error at CMakeLists.txt:277 (configure_file):
  configure_file Problem configuring file

CMake Error at CMakeLists.txt:310 (OSSIM_ADD_COMMON_MAKE_UNINSTALL):
  Unknown CMake command "OSSIM_ADD_COMMON_MAKE_UNINSTALL".

Could you say me how to import the ossim macros ? And how to solve the problem with the not found modules if possible.

Thanks for your help