setsmdeveloper / SETSM

The Surface Extraction from TIN-based Searchspace Minimization (SETSM) software is a fully automatic algorithm for deriving Digital Terrain Models (DTM) from pairs of satellite imagery.
Apache License 2.0
64 stars 19 forks source link

Compiling with gcc fails #5

Open baerbock opened 5 years ago

baerbock commented 5 years ago

I've prepared it with CC=gcc cmake .. -DCMAKE_INSTALL_PREFIX=/usr

[ 75%] Building C object CMakeFiles/setsm.dir/voronoi_setsm.c.o
gcc: fatal error: no input files
compilation terminated.
/bin/sh: -fopenmp: command not found
make[2]: *** [CMakeFiles/setsm.dir/build.make:89: CMakeFiles/setsm.dir/setsmgeo.c.o] Error 127
make[2]: *** Waiting for unfinished jobs....
gcc: fatal error: no input files
compilation terminated.
/bin/sh: -fopenmp: command not found
make[2]: *** [CMakeFiles/setsm.dir/build.make:76: CMakeFiles/setsm.dir/voronoi_setsm.c.o] Error 127
gcc: fatal error: no input files
compilation terminated.
/bin/sh: -fopenmp: command not found
make[2]: *** [CMakeFiles/setsm.dir/build.make:63: CMakeFiles/setsm.dir/setsm_code.c.o] Error 127
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/setsm.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
JudyGardiner commented 5 years ago

Thanks for reporting this. Apparently our cmake build is out of date. I'll work on it, but probably not until after the first of the year.

khsa1 commented 5 years ago

I am having trouble reproducing this issue. Can you provide the full outputs of your cmake and the make VERBOSE=1 commands?

baerbock commented 5 years ago

@khsa1 I was able to fix the compilation. SETSM seems to

I wish you a Merry Christmas and will investigate default.txt in the new year! And I'm very sorry if I've wrongly guessed your religion, Самуил Хувис.

khsa1 commented 5 years ago

@baerbock Yes, you will need OpenMP to compile the code, but I am surprised that you needed empty CFLAGS/CXXFLAGS and CC=gcc.

I was able to reproduce the issue with a non-empty CFLAGS or CXXFLAGS and will look into it. But I can compile without manually setting CC=gcc. I would appreciate any additional information or log files you can provide to help debug this.

No problem, have a merry Christmas.