Open petersondroogh opened 5 years ago
Can you confirm which version of CGM you built and which underlying solid modeling engine you have used?
I used cgma-13.1. The solid modeling engine I use is CUBIT, FreeCAD, and eDrawing
On Sat, Feb 9, 2019 at 5:10 PM Paul Wilson notifications@github.com wrote:
Can you confirm which version of CGM you built and which underlying solid modeling engine you have used?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/svalinn/mcnp2cad/issues/54#issuecomment-462091460, or mute the thread https://github.com/notifications/unsubscribe-auth/AlCyO995L5Lqa7CN4RFX0VDsSOnyF0Mcks5vL2NegaJpZM4awwNB .
Building CGM requires access to a solid modeling software library. CGM was originally developed on top of the ACIS solid modeling library that is used by Cubit (among others). However, the Cubit license no longer supports building CGM in this way.
There is some support for a stand-alone version of CGM that uses the OpenCascade solid modeling engine, but we do not have a lot of experience with that.
The roadmap for the most active development branch of this project is working to build the mcnp2cad capability into a plugin for Trelis & Cubit, that we hope will be available on all platforms.
@gonuke -
I compiled/installed Eigen3, OCE, and CGM just fine, but I get a similar error type when trying to compile mcnp2cad. This is on MacOS Mojave v10.14.6. The error occurs during the build of libmcnp2cad.dylib
:
MacBook-Pro:build markreed$ make clean all
[ 7%] Building CXX object CMakeFiles/test_GQ.dir/test_GQ.cpp.o
[ 15%] Building CXX object CMakeFiles/test_GQ.dir/GQ_Characterize.cpp.o
[ 23%] Linking CXX executable test_GQ
[ 23%] Built target test_GQ
[ 30%] Building CXX object CMakeFiles/mcnp2cad.dir/mcnp2cad.cpp.o
[ 38%] Building CXX object CMakeFiles/mcnp2cad.dir/MCNPInput.cpp.o
[ 46%] Building CXX object CMakeFiles/mcnp2cad.dir/geometry.cpp.o
[ 53%] Building CXX object CMakeFiles/mcnp2cad.dir/volumes.cpp.o
[ 61%] Building CXX object CMakeFiles/mcnp2cad.dir/GQ_Characterize.cpp.o
[ 69%] Building CXX object CMakeFiles/mcnp2cad.dir/test_GQ.cpp.o
[ 76%] Linking CXX shared library libmcnp2cad.dylib
This error occurs during my make
run, after I already successfully ran cmake
like this:
cmake -B build . -DBUILD_CLI=yes -DIGEOM_LIB_DIR=/usr/local/lib/ -DIGEOM_INCLUDE_DIR=/usr/local/include/
Based on what I've seen from other Mac users online, this error type is related to some kind of compatibility issue (32-bit vs. 64-bit or different compilers for different packages), but I can't seem to fix it.
https://forums.wxwidgets.org/viewtopic.php?t=45585
One clue is that when I edit the mcnp2cad.dir/link.txt
file created by cmake
to link libcgm.a
instead of libiGeom.a
, the same type of error occurs with almost entirely different (and many fewer) specific error messages. Compare the attached text files to see the full error messages.
I think your issue is a little different @markreed. Your build is finding the iGeom
libraries, but they are not, in turn, finding the CGM
libraries. Our CMakelists.txt
file is probably a little underdeveloped for this scenario as we don't actively support it.
quick hack: try tweaking mcnp2cad.dir/link.txt
to link both libcgm.a
and libiGeom.a
(although I'm not sure what order a Mac might prefer. On linux is would be the order given here.
long term solution: better integration with the products of CGM
's build process to "ingest" the dependencies that is knows about regarding iGeom
--> CGM
I was hoping to run mcnp2cad on my mac. I was able to install cgm and armadillo on my mac. But it still did not work. I got the following error and was wondering if you have any thoughts