wjakob / instant-meshes

Interactive field-aligned mesh generator
Other
5.17k stars 591 forks source link

Compilig on Linux throws an error #144

Open titustesche opened 1 year ago

titustesche commented 1 year ago

I've followed the steps described to build the Application and everything went fine until make -j 4. It seems to work just fine at first, but then throws some exceptions and exits.

/media/ssd3/Instant Meshes/instant-meshes/ext/tbb/include/tbb/task.h:263:20: Error: Declaration of »tbb::task& tbb::internal::task_prefix::task()« changes meaning of »task« [-Wchanges-meaning]
263 |         tbb::task& task() {return *reinterpret_cast<tbb::task*>(this+1);}

and

src/tbb/arena.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:342: ext_build/tbb/CMakeFiles/tbb_static.dir/all] Fehler 2
make: *** [Makefile:136: all] Fehler 2

Everything that is mentioned to be needed is present on my System.

I'm currently running Garuda Linux Dr460nized 64 Bit

ameuret commented 11 months ago

I managed to get a working executable on Linux by relaxing the compiler expectations that came with C++17.

Make the following surgical strikes:

void * operator new(size_t sz) {
void* operator new[](size_t sz) {