Regard3D icon indicating copy to clipboard operation
Regard3D copied to clipboard

Issues with `make` on Arch - SQLite

Open bradsk88 opened this issue 7 years ago • 3 comments

I managed to get the cmake command to finish successfully after installing various dependencies.

Now that I'm running make, I'm getting the following error.

$ make
[  4%] Built target kgraph
[ 12%] Built target daisy
[ 19%] Built target AKAZE
[ 26%] Built target fast-akaze
[ 29%] Built target liop
[ 32%] Built target tinyply
[ 33%] Building C object thirdparty/sqlite/CMakeFiles/sqlite.dir/sqlite3.c.o
/home/bradsk88/Downloads/regard/src/thirdparty/sqlite/sqlite3.c: In function ‘sqlite3IsNaN’:
/home/bradsk88/Downloads/regard/src/thirdparty/sqlite/sqlite3.c:28276:3: error: #error SQLite will not work correctly with the -ffast-math option of GCC.
 # error SQLite will not work correctly with the -ffast-math option of GCC.
   ^~~~~
make[2]: *** [thirdparty/sqlite/CMakeFiles/sqlite.dir/build.make:63: thirdparty/sqlite/CMakeFiles/sqlite.dir/sqlite3.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:404: thirdparty/sqlite/CMakeFiles/sqlite.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

Any ideas on how I can get past this?

bradsk88 avatar Sep 28 '17 04:09 bradsk88

Yes: Open CMakeLists.txt in the source folder of Regard3D, find all occurrences of -ffast-math and remove them. Then rebuild.

rhiestan avatar Sep 28 '17 19:09 rhiestan

Got me further. Once make finishes, where does the executable live?

bradsk88 avatar Sep 29 '17 16:09 bradsk88

In your build directory, where you started cmake. Isn't it there?

rhiestan avatar Sep 30 '17 08:09 rhiestan