Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

occjava with mac

Help
Anonymous
2013-03-24
2013-04-01

  • Anonymous
    2013-03-24

    Hi

    Having trouble installing occjava

    Ive been following what this guys says at the last post
    http://sourceforge.net/projects/jcae/forums/forum/253752/topic/1707823

    im trying to ./configure occ but it gives me this error

    Last login: Sun Mar 24 20:25:33 on ttys000
    user-mac-4:~ daniel$ de Desktop/
    -bash: de: command not found
    user-mac-4:~ daniel$ cd Desktop/
    user-mac-4:Desktop daniel$ cd opencascade/
    user-mac-4:opencascade daniel$ cd asfasf/
    user-mac-4:asfasf daniel$ cd jcae/trunk/occjava/
    user-mac-4:occjava daniel$ sudo ./autogen.sh
    Cleaning autotools files...
    Running autoreconf...
    configure.ac:97: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
    configure.ac:97: the top level
    configure.ac:101: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2670: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2680: AC_LINK_IFELSE is expanded from...
    configure.ac:101: the top level
    configure.ac:97: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
    configure.ac:97: the top level
    configure.ac:101: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2670: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2680: AC_LINK_IFELSE is expanded from...
    configure.ac:101: the top level
    configure.ac:97: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
    configure.ac:97: the top level
    configure.ac:101: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2670: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2680: AC_LINK_IFELSE is expanded from...
    configure.ac:101: the top level
    configure.ac:30: error: possibly undefined macro: AC_DISABLE_STATIC
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    configure.ac:31: error: possibly undefined macro: AC_PROG_LIBTOOL
    configure.ac:116: error: possibly undefined macro: AC_PROG_SWIG
    configure.ac:122: error: possibly undefined macro: AC_PROG_JAVAC
    configure.ac:123: error: possibly undefined macro: AC_JNI_INCLUDE_DIR
    autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1
    user-mac-4:occjava daniel$
    

    Thanks

     

  • Anonymous
    2013-03-24

    edit: i mean when i try ./autogen.sh

     

  • Anonymous
    2013-03-25

    Hi thanks for reply

    one question referring to cmake -DOCE_DIR=/path/to/oce/lib/oce-0.7.0-dev /path/to/occjava (for OCE)
    what is  DOCE_DIR=/path/to/oce/lib/oce-0.7.0-dev
    is that the installed location of oce or just the download of the site? could you give me an example of what your DOCE_DIR path looks like.

    thanks

     
  • Jerome Robert
    Jerome Robert
    2013-03-25

    It's the directory containing the OCE cmake files in the OCE installation directory and it looks like /path/to/oce/lib/oce-0.7.0-dev.

     

  • Anonymous
    2013-03-26

    problem..

    imac$ sudo make
    Swig source
    Scanning dependencies of target OccJava
    Building CXX object CMakeFiles/OccJava.dir/src/OccJavaJAVA_wrap.cxx.o
    clang: warning: argument unused during compilation: '-fpermissive'
    /Users/dsf/Desktop/delete/jCAE/build5/src/OccJavaJAVA_wrap.cxx:2275:23: error:
          taking the address of a temporary object of type 'gp_Pnt'
         
      result = (gp_Pnt *) &BRep_Tool::Pnt((TopoDS_Vertex const &)*arg1);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/sdf/Desktop/delete/jCAE/build5/src/OccJavaJAVA_wrap.cxx:10852:23: error:
          taking the address of a temporary object of type 'gp_Pnt'
         
      result = (gp_Pnt *) &((Adaptor3d_Curve const *)arg1)->Value(arg2);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/sdf/Desktop/delete/jCAE/build5/src/OccJavaJAVA_wrap.cxx:11786:23: error:
          taking the address of a temporary object of type 'gp_Pnt'
         
      result = (gp_Pnt *) &((GeomAPI_ProjectPointOnSurf const *)arg1)->Point(arg2);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3 errors generated.
    make: ***  Error 1
    make: ***  Error 2
    make: ***  Error 2
    -iMac-4:build5 sdf$

     
  • Denis Barbier
    Denis Barbier
    2013-03-26

    Hi Daniel,

    You are right, current code does not compile with clang, we have to fix it.
    In the meantime, you can edit occjava/CMakeLists.txt and replace line 59
      set(CMAKE_CXX_FLAGS -fpermissive)
    by
      set(CMAKE_CXX_FLAGS -Wno-address-of-temporary)

    These warnings are false-positives here.

     
  • Denis Barbier
    Denis Barbier
    2013-03-26

    Current git master should now compile fine.

     

  • Anonymous
    2013-03-27

    it works now after you changed the git

    thanks :)

    if anyone reading this needs help installing on mac, feel free to contact me