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
295 stars 143 forks source link

`build.sh`: Error messages when downloading tar unclear #296

Open feefladder opened 4 months ago

feefladder commented 4 months ago

So, in stead of cloning the repo, I decided to download the tar archive.

wget https://github.com/ossimlabs/ossim/releases/download/v2.12.0/ossim-2.12.0.tar.gz
tar -xvf ossim-2.12.tar.gz
ossim-2.12/scripts/build.sh

first, it says: Error: Cannot locate the cmake config script expected at /home/user/git/LISEM/local/ossim/cmake/scripts/ossim-cmake-config.sh. Cannot continue. Which is not true, the script exists but errors:

ossim-2.12/cmake/scripts/ossim-cmake-config.sh

gives

CMake Error at CMakeLists.txt:114 (add_subdirectory):
  add_subdirectory given source "ossim" which is
  not an existing directory.

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
CMake Warning at CMakeLists.txt:281 (MESSAGE):
  File ossim/share/ossim/geoids/egm96.grd not
  found for install!

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

because the dir is named ossim-2.12 in stead of ossim renaming the dir works :)

feefladder commented 4 months ago

Whoops, actually what the script says is correct!

Caused by line 34 in env.sh

but the name is hard-coded in a lot of places. Maybe adding something in the error that the directory really needs to be called ossim