eidelen / DicomToMesh

A command line tool to transform a DICOM volume into a 3d surface mesh (obj, stl or ply). Several mesh processing routines can be enabled, such as mesh reduction, smoothing or cleaning. Works on Linux, OSX and Windows.
MIT License
451 stars 93 forks source link

Error on Mac OS X during build: library not found for -lpugixml #30

Closed cogitas3d closed 8 months ago

cogitas3d commented 3 years ago

Dear friends,

I upgrade de system to Catalina and rebuild the DicomToMesh-vtk-9-novisual branch. All appear works, but at 100% I receive an error message.

Scanning dependencies of target dicom2meshlib [ 12%] Building CXX object lib/CMakeFiles/dicom2meshlib.dir/src/dicomFactory.cpp.o [ 25%] Building CXX object lib/CMakeFiles/dicom2meshlib.dir/src/dicomRoutines.cpp.o [ 37%] Building CXX object lib/CMakeFiles/dicom2meshlib.dir/src/meshData.cpp.o [ 50%] Building CXX object lib/CMakeFiles/dicom2meshlib.dir/src/meshRoutines.cpp.o [ 62%] Linking CXX static library libdicom2meshlib.a [ 62%] Built target dicom2meshlib Scanning dependencies of target dicom2mesh [ 75%] Building CXX object dicom2mesh/CMakeFiles/dicom2mesh.dir/src/main.cpp.o [ 87%] Building CXX object dicom2mesh/CMakeFiles/dicom2mesh.dir/src/dicom2mesh.cpp.o [100%] Linking CXX executable dicom2mesh ld: library not found for -lpugixml clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [dicom2mesh/dicom2mesh] Error 1 make[1]: [dicom2mesh/CMakeFiles/dicom2mesh.dir/all] Error 2 make: *** [all] Error 2

Is it possible to solve it?

A big hug!

eidelen commented 3 years ago

Hi Cicero, Sorry for the delay. Unfortunately I am still on Mojave. Did you rerun the cmake command? Sometimes it is even the best to just erase the whole build-folder. Edit: Maybe you need to rebuild vtk too.

eidelen commented 8 months ago

Hi Cicero, I suppose this is closed. Feel free to open again. Best regards, Adrian