openNurbs compiling issues on Linux


I am trying to compile my opennurbs library with gcc/12.3 but it is failing with the following error:

ar: opennurbs_3dm_attributes.o: file format not recognized
make[2]: *** [Makefile:481: libopenNURBS.a] Error 1
make[2]: Leaving directory ‘/scratch/babazado/StarPU/SRC/opennurbs’
make[1]: *** [Makefile:3: all] Error 2
make[1]: Leaving directory ‘/scratch/babazado/StarPU/SRC’
make: *** [Makefile:201: all] Error 2

However, when I do with gcc/9.3, it compiles without any issue. Can anyone help me out?


Please use CMake if possible, the makefile is outdated and will not work.

mkdir build; cd build
cmake <path/to/source> -DCMAKE_INSTALL_PREFIX=/path/to/install
make -jN install

Thanks @menno for replying back. What if I want to continue with Makefile? what is the issue with Makefile that I can fix it?

You’ll need to compile and add the files that are in the android_uuid directory to the static library target. They are listed in the CMakeLists.txt file, but not in the makefile.