Omid1
(Omid)
June 20, 2024, 2:01pm
1
Hi,
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?
~Thanks
menno
(Menno Deij - van Rijswijk)
June 20, 2024, 2:44pm
2
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
Omid1
(Omid)
June 20, 2024, 4:25pm
3
Omid:
Hi,
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?
~Thanks
Thanks @menno for replying back. What if I want to continue with Makefile? what is the issue with Makefile that I can fix it?
menno
(Menno Deij - van Rijswijk)
June 20, 2024, 6:41pm
4
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.