#277 mged crash on Mac OS X

crash or data loss
closed-accepted
nobody
5
2010-11-08
2010-10-22
No

I'm still having problems getting MGED to run on OS X 10.6.4. I noted similar reports about getting the segmentation fault after successful compilation of brlcad and the suggestion to use the "--enable-all" flag for ./configure but when I do that I get the following error:

Making all in db
../src/conv/asc2g operators.asc operators.asc2g
dyld: Library not loaded: /usr/brlcad/lib/libwdb.19.dylib
Referenced from: /Users/kirkjohnson/downloads/brlcad-7.16.10/src/conv/.libs/asc2g
Reason: image not found
/bin/sh: line 1: 46197 Trace/BPT trap LD_LIBRARY_PATH=../src/other/tcl/unix:../src/other/tk/unix:$LD_LIBRARY_PATH DYLD_LIBRARY_PATH=../src/other/tcl/unix:/src/other/tk/unix:$DYLD_LIBRARY_PATH ../src/conv/asc2g `if test -e operators.asc ; then echo operators.asc ; else echo ../db/operators.asc ; fi` operators.asc2g
make[1]: *** [operators.asc2g] Error 133
make: *** [all-recursive] Error 1

any suggestions? Can I still use brlcad even though MGED doesn't work?

Discussion

  • Richard Uschold

    Richard Uschold - 2010-10-25

    I did get some similar error message while compiling on Mac OS X 10.8.5. When changing compile/configure options, or, for that matter, ANY system change that is expected to change the resulting complied code, it seems to be a good idea to delete the entire sub-directory tree: ../brlcad-7.16.10/ and extract the tar file again. This solved a few of my issues.

    Gilligan

     
  • Kirk Johnson

    Kirk Johnson - 2010-11-08

    Problem solved. If anyone else has similar issues and finds this using a search engine, I'll include my steps for resolution.

    I configured using --enable-tk --enable-tcl --with-ogl

    make -j2 resulted in the following error

    Making all in db
    ../src/conv/asc2g operators.asc operators.asc2g
    dyld: Library not loaded: /usr/brlcad/lib/libwdb.19.dylib
    Referenced from: /*****/******/*****/brlcad-7.16.10/src/conv/.libs/asc2g
    Reason: image not found
    /bin/sh: line 1: 49243 Trace/BPT trap LD_LIBRARY_PATH=../src/other/tcl/unix:../src/other/tk/unix:$LD_LIBRARY_PATH DYLD_LIBRARY_PATH=../src/other/tcl/unix:/src/other/tk/unix:$DYLD_LIBRARY_PATH ../src/conv/asc2g `if test -e operators.asc ; then echo operators.asc ; else echo ../db/operators.asc ; fi` operators.asc2g
    make[1]: *** [operators.asc2g] Error 133
    make: *** [all-recursive] Error 1

    The key to success was a response to a similar post here "sourceforge.net/projects/brlcad/forums/forum/362509/topic/3866841" as shown below.

    The existing install can confuse the runtime linker on some versions of Mac OS X. That said, the error is fairly benign as everything is compiled by that point in the build process. You should be able to "make install" successfully now. A subsequent "make" run *after* make install should also work.

    So, I went ahead and issued "make install" and after the installation issued "make -j2" again which resulted in no errors this time.

    The installation functions as intended.

     
  • Kirk Johnson

    Kirk Johnson - 2010-11-08
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks