Personal tools
You are here: Home Forum Install & build Salome on mac os x

Salome on mac os x

Up to Install & build
  • Salome on mac os x

    Posted by Dechaume at January 31. 2007
    Is there a mac os x (intel) binary version of salome somewhere ?
    Or any instructions on how to build it ?

    Thanks.

    • Re: Salome on mac os x

      Posted by pod at November 27. 2009

      That's amazing !!! Cannot wait to try SALOME 5.1.3 - will it be out soon ?

      I'm currently trying to compile 5.1.2 following those instructions

       

      Regards,

       

      PO

    • Re: Salome on mac os x

      Posted by Jasper Mine at January 02. 2010
      Hello, and Happy New Year,
       
      I recently configured and deployed an svn and bug tracking facility on my laptop over the holidays.  And one of the projects I added to the repository and project page was Salome.
       
      Now currently it only runs locally on my mobile machine. I do have a desktop unit in which I can migrate all this stuff to if there is some kind of interest for me to do so. But first.
       
      I am wondering what are the legalities of this maneuver? Should I not worry and just have fun? Could our efforts be accepted upstream? If we have a nice out of the box solution what are the chances I (or someone else) could continue to serve this "fork"?
       
      I've linked to a few screenshots of the bug tracker I've set up.
       
       
      Now I've never served an SVN repo from Apache before so I don't know how easy, rather, how long it will take to implement on my desktop if this is ok to do. If anybody has info on how to do that or would like to otherwise discuss this subject. I can be found on the IRC channel #Salome on irc.freenode.net, if you have an IRC client.  Or contact me in this thread.  I'm pretty sure it's just adding a few modules to the Apache .config.
       
      I have not yet had a successful compile but I've really only started poking at this the other day. Anyway, tell me what you guys are thinking.
       
      Jasper
       
      • Re: Salome on mac os x

        Posted by Paul RASCLE at January 09. 2010

        Previously Jasper Mine wrote:

        Hello, and Happy New Year,
         
        I recently configured and deployed an svn and bug tracking facility on my laptop over the holidays.  And one of the projects I added to the repository and project page was Salome.
         
        Now currently it only runs locally on my mobile machine. I do have a desktop unit in which I can migrate all this stuff to if there is some kind of interest for me to do so. But first.
         
        I am wondering what are the legalities of this maneuver? Should I not worry and just have fun? Could our efforts be accepted upstream? If we have a nice out of the box solution what are the chances I (or someone else) could continue to serve this "fork"?
         
        I've linked to a few screenshots of the bug tracker I've set up.
         
         
        Now I've never served an SVN repo from Apache before so I don't know how easy, rather, how long it will take to implement on my desktop if this is ok to do. If anybody has info on how to do that or would like to otherwise discuss this subject. I can be found on the IRC channel #Salome on irc.freenode.net, if you have an IRC client.  Or contact me in this thread.  I'm pretty sure it's just adding a few modules to the Apache .config.
         
        I have not yet had a successful compile but I've really only started poking at this the other day. Anyway, tell me what you guys are thinking.
         
        Jasper
         

        Jasper,

        Following our chat on irc.freenode.net, we are waiting for your site!

        Paul

    • Re: Salome on mac os x

      Posted by Paul RASCLE at December 15. 2009

      Hello again,

      I have updated the files about SALOME on Mac, following the publication of SALOME 5.1.3 :

      http://files.salome-platform.org/edf/SalomeBuildWithFink.html

      http://files.salome-platform.org/edf/SalomeBuildScripts_20091214.tgz

      The same screenshot as above: http://files.salome-platform.org/edf/Screenshot_2009-11-22_21.35.12.png

       

       

      Paul


    • Re: Salome on mac os x

      Posted by Paul RASCLE at December 17. 2009

      Hi,

      It looks like everything is ready to start the Qt Application, and the Gui stops silently...

      The only idea I have now is to add some prints, after SALOME_SessionServer.cxx line 534,  or use the debugger if your are familiar with gdb or ddd and if you have it in your environment.

      It is possible to launch Salome with ddd or gdb on the Gui process with the command :

      ./runAppli -k --ddd-session     or     ./runAppli -k --gdb-session

      and run, when you have the prompt.

      Maybe you will find where it goes wrong...

      Another thing you can do is send a tarfile containing the env.d directory in your application, config_appli.xml and the environment file you use in your application (prerequisites path in config_appli.xml).

      I am looking for other things to test.

      Paul

       

    • Re: Salome on mac os x

      Posted by Nicolas Geimer at January 11. 2010

      Hello,

      I've successfully built Salome 5.1.3 (KERNEL / GUI /GEOM / MED / SMESH/ VISU /YACS) using the Paul's patches and advice.

      Next steps for me is to pass all the qualification tests (Same tests as for Linux final 5.1.3 release).

       

      Also, I've seen that Qt supports Cocoa, Vtk supports Cocoa, I've seen also some OCC Cocoa bindings (Thanks Torsten). Thus I'm thinking that we could have a Cocoa Salome faster than I expected.

       

      Cheers,

       

      Nicolas 

      • Re: Salome on mac os x

        Posted by Torsten Sadowski at January 18. 2010

         

        Also, I've seen that Qt supports Cocoa, Vtk supports Cocoa, I've seen also some OCC Cocoa bindings (Thanks Torsten). Thus I'm thinking that we could have a Cocoa Salome faster than I expected.

         

        Thanks for the flowers but the Cocoa bindings are not my work :)
         
        Torsten

         

      • Re: Salome on mac os x

        Posted by Nicolas Geimer at January 11. 2010

        Previously Nicolas Geimer wrote:

        Hello,

        I've successfully built Salome 5.1.3 (KERNEL / GUI /GEOM / MED / SMESH/ VISU /YACS) using the Paul's patches and advice.

        Next steps for me is to pass all the qualification tests (Same tests as for Linux final 5.1.3 release).

         

        Also, I've seen that Qt supports Cocoa, Vtk supports Cocoa, I've seen also some OCC Cocoa bindings (Thanks Torsten). Thus I'm thinking that we could have a Cocoa Salome faster than I expected.

         

        Cheers,

         

        Nicolas 

         

        I forgot to mention that Paul remarks about compilers are still in force :

         

        - gcc 4.4.2 has to be used for basic modules (KERNEL, GUI at least)

        - omniNames crashes at runtime if compiled with gcc 4.4.2, no problem with gcc 4.2.1

        - some issues with boost_1.35 and gcc 4.4.2 in MED related modules

         

    • Re: Salome on mac os x

      Posted by Nicolas Geimer at October 29. 2009
      Hello, First to answer to you Jasper, tcl/tk is not needed if you want to use OpenCascade only for Salome. Tcl/Tk is only needed for the "Draw" executable of Cascade. You can disable some other features of Cascade as follows : flags="$flags --disable-debug --enable-production" flags="$flags --disable-jcas" flags="$flags --disable-draw --disable-wok" ./configure $flags --prefix=${INSTALL_DIR} ... Then, let me mention that Paul and I are 2 guys from the Salome development team. As a hobby (at home only), we start working on the Mac Os X porting of Salome 5. We got our Mac Book pro 2 weeks ago ;) Jasper, we're analyzing the Mac Os X development stuff, trying to take basic decisions such as autotools vs cmake, Xcode or not... Nicolas
    • Re: Salome on mac os x

      Posted by Jasper Mine at October 29. 2009
      Hello jelle, Nicolas,
       
      Greetings.  OK, I have opencascade configure with everything YES.  Then I run make and make install and it worked.  Did DRAWEXE in X11 and a window opens with menu at the top, and I can see 3d views when I access the view menu there.  So I am thinking I am one step closer to Salome compile.
       
      Thank-you for the advice, also there was some good info on the OpenCascade forum.  For others searching the way find part of the path here.  http://www.opencascade.org/org/forum/thread_14128/
       
      Thats great news Nicolas about access to a mac machine.  Can I recommend using cmake, it can generate project files for windows and macs xcode, as well as generate make files.  An example in action can be seen in the blender3d sources.
       
      Let me say I do not mind at all using X11 applications.  I use it for many things on OSX for example gimp, and dia.  So this is not a problem.  Could you tell if Salome works on mac in X11?
       
      I go now to try and get OpenFOAM to compile on mac os x 10.5.8 intel.  The screenshots of Salome beckon me :)
       
      Thank-you,
      Jasper
       
    • Re: Salome on mac os x

      Posted by Jasper Mine at September 25. 2009

      Hello,

      I am also interested to run Salome on os x.  Any compile tutorial out there?  Unbelievable this application is out for several year with no mac interest.  Where are you guys hiding?

      Thanks.

       

    • Re: Salome on mac os x

      Posted by jelle at January 31. 2010
      I'm curious; of course I do realize that this thread discusses an experimental build for osx. Having said that, I'm wondering whether it would be possible to discuss whether binaries of this experimental build could be uploaded somewhere ( I would be happy to provide storage/bandwith ). Building Salome for sure is not for the faint hearted / compiler challenged. Some time ago, Torsten has been so kind to provide me with the libs of OCC, which meant a lot to me. 
       
      Speaking as a python programmer ( Thomas Paviot and I develop pythonOCC ) the compilation step poses quite a serious threshold, since coming from a dynamic programming language one is not confronted with a complex compilation infrastructure. Also, its not unlikely that a shared effort on a binary build might increase quality while reducing the sum of effort compiling Salome for osx. Combine that with a Code_Aster binary and osx is a serious CAE platform ;')
      ( With the release of Snow Leopard such an effort is quite interesting given the 64-bit memory addressing )
       
      Surely having a place to store an experimental build would be a huge improvement, and a true culmination of the progress this thread has reported.
      Idea?
       
      Cheers,
       
      -jelle
    • Re: Salome on mac os x

      Posted by pod at September 23. 2010

      Good evening !

       

      This thread has been very quiet over the last 5-6 months / any news, progress, thoughts to share ?

       

      regards,

       

      PO

    • Re: Salome on mac os x

      Posted by Torsten Sadowski at January 08. 2010

      And the other one.

      Attachments
    • Re: Salome on mac os x

      Posted by Paul RASCLE at November 17. 2009

      Hello,

      As Nicolas said above, we have been working for a few days on the Mac OsX porting of Salome 5. Things are falling in place faster than I thought : I have a first part of Salome that compiles and works! (KERNEL, GUI, GEOM). SMESH starts also but there are still a lot of things to fix.

      We have been working with the Fink packages (http://www.finkproject.org) on Snow Leopard, and with the release candidate of SALOME 5.1.3.

      SALOME 5.1.3 will be released and published in a few days, unless too much last minute bugs. I think we will publish our patches for Mac Here soon after the 5.1.3 publication.

      I will elaborate more on our solution in another message, this is a preliminary solution. A lot of work is needed to obtain clean patches, and help from people who knows better Mac Os than us will be wecome!

      Paul

    • Re: Salome on mac os x

      Posted by Paul RASCLE at November 23. 2009

      Hello,

      SALOME 5.1.3 is now really starting to work on Mac, (KERNEL, GUI, GEOM, SMESH and VISU), with still with a lot of things to fix. 

      A screenshot: http://files.salome-platform.org/edf/Screenshot_2009-11-22_21.35.12.png

      I have summarized our work in the following link:

      http://files.salome-platform.org/edf/SalomeBuildWithFink.html

      You will find in this document the current state of the porting, and the scripts and patches, also available here:

      http://files.salome-platform.org/edf/SalomeBuildScripts_20091121.tgz

      The patches are applicable to SALOME 5.1.3, not yet published, but it can be helpful for all of you who are working on the SALOME porting on Mac Os X: our solution based on Fink is perhaps not the easiest way for the end user (a lot of packages to compile and install), so all ideas to make a lighter integration are welcome!

      There is still a lot of work to do on the patches to have them integrated in the source code (regroup several things in a portability layer, for instance...).

      If you have difficulties to acces the links above, let me know.

      Paul

    • Re: Salome on mac os x

      Posted by Paul RASCLE at November 23. 2009

      Hello,

      On my previous message about SALOME on Mac, I forgot a patch file about Med.

      The links are updated:

      http://files.salome-platform.org/edf/SalomeBuildWithFink.html

      http://files.salome-platform.org/edf/SalomeBuildScripts_20091122.tgz

      Paul

    • Re: Salome on mac os x

      Posted by Jasper Mine at December 15. 2009

      Congratulations on the Salome release!

      Cool news!  I'm sure the elves were very busy to have this finished in time for Christmas.

      I will follow your instructions on 5.1.3 compilation, thank you very much for taking the time to do this.

      Hope you have a happy holiday.

      Jasper

    • Re: Salome on mac os x

      Posted by pod at December 16. 2009

      Good morning,

      I compiled the whole thing / however, when I start the application, I can see the startup screen but I get this :

      INTERRUPTION from thread 0x10688c000 : - INTERRUPTION: /opt/salome_5.1.3/tarpublic/GUI_SRC_5.1.3/src/Session/Session_ServerThread.cxx [279] : CONDITION 0 NOT VERIFIED

      error close LocalTraceCollector : 11

       
      Any idea ?
       
      Thanks
       
      PO
    • Re: Salome on mac os x

      Posted by Paul RASCLE at December 17. 2009

      Hi,

      Other comments:

      I don't think hdf5 compilation with 4.2.1 or 4.4.2 will make any difference at that stage of the SALOME starting process, but after that, I don't know... I used the hdf5 provided by Fink and compiled with 4.4.2.

      The only thing I am sure is I needed to use either 4.2.1 or 4.4.2 depending on the product compiled to get something that works, but I still don't understand very well the bugs I have found with both versions of gcc.

      Paul

    • Re: Salome on mac os x

      Posted by pod at December 18. 2009

      ...something that I forgot to mention is that I get the splash screen, but nothing after / see attached

      Thanks

      PO

      Attachments
      • Re: Salome on mac os x

        Posted by Paul RASCLE at January 09. 2010

        Previously pod wrote:

        ...something that I forgot to mention is that I get the splash screen, but nothing after / see attached

        Thanks

        PO

        Hello,

        Did you made any progress ? I think you were very close to the success, and I don't know how find what was wrong.

        Paul

    • Re: Salome on mac os x

      Posted by Jasper Mine at October 29. 2009

      Hello,

      I mentioned I would report my progress.  So here it is.

      I am currently having trouble with the compile of the opencascade prerequisite.  I am stuck there.  It goes but openGL, tcl/tk are not being found during configure.  I am in communication with builders on the opencascade forum.

      Jasper

    • Re: Salome on mac os x

      Posted by jelle at October 29. 2009

      Hi Nicolas, Jasper,

      Its *wonderful* news to hear that you guys are working on porting Salome to OSX!

      Having Cmake sure would be an _absolute_ blessing, and as Jasper mentions can be considered a superset of make and Xcode. So +1 ;')

      Something we're working on at the PythonOCC front is to be able to start a Quartz window from OCC. This is pretty important since Carbon support is deprecated and X11 can be a hassle in some cases. Are you guys interesting in that at all? Its a wild guess, but perhaps this effort can be shared.

      Nicolas, would you mind sharing with us how far you've managed to compile Salome?

      Wonderful to see all this OSX activity, this is a terrific thread!

      Cheers,

      -jelle

       

    • Re: Salome on mac os x

      Posted by Jasper Mine at October 29. 2009

      jelle,

      Hi, I am probably jumping the gun here without knowing the current status of Salome running on osx.

       If it does not work on osx I would recommend trying to get it working on osx's x11 first as the differences between linux and osx are not that great.  Alot of back and forth communication would be necessary feeding each other gcc errors etc.  So perhaps an irc channel on freenode.net to communicate the compiling progress and fixes?  And then relay actual progress to a thread in the forum?

      If Salome does work in osx X11 then steps to cocoa-fy the window management and links to cocoa libs could be an option, I'm not sure if this is such a priority, but one benefit might be running Salome in OSX as a 64bit application.  I am interested in your project jelle, although I'm not sure what PythonOCC is.  From other forum posts it seems like your trying to package OpenCascade into an apple friendly framework?  Again good path if Salome is stable in its X11 configuration.

      OK.  So I started a channel on freenode.net called #Salome.  I have a bit of osx compiling experience as I have hacked this to work on osx http://epsylon.rptd.ch/forum/viewtopic.php?f=24&t=251  I also was doing at one time the package maintaining for blender 3d as the osx intel manager http://wiki.blender.org/index.php/Dev:Ref/Release_Checklist  And I do beta testing for various windows and *nix to osx platform transition beta testing.  With that said, I am not a very good coder so I will need help, lots and lots of help :) to make any progress.  If anybody reading this has good knowledge of the coding language and the internals of Salome I ask you join the irc channel, I will wait there.

      Hope to hear from you.

      Jasper

      • Re: Salome on mac os x

        Posted by Torsten Sadowski at November 12. 2009

        Hi Jasper,

         

        some patches:

         

        --- ./KERNEL_SRC_5.1.2/salome_adm/cmake_files/FindPLATFORM.cmake.orig   2009-11-

        12 18:15:01.000000000 +0100

        +++ ./KERNEL_SRC_5.1.2/salome_adm/cmake_files/FindPLATFORM.cmake        2009-11-

        12 18:17:21.000000000 +0100

        @@ -22,7 +22,7 @@

         

         MARK_AS_ADVANCED(ISSUE)

         FIND_FILE(ISSUE issue /etc)

        -IF(ISSUE)

        +IF(CMAKE_HOST_UNIX)

           SET(WINDOWS 0)

         ELSE()

           SET(WINDOWS 1)

         

        --- ./KERNEL_SRC_5.1.2/salome_adm/cmake_files/FindPYTHON.cmake.orig     2009-11-

        12 18:19:38.000000000 +0100

        +++ ./KERNEL_SRC_5.1.2/salome_adm/cmake_files/FindPYTHON.cmake  2009-11-12 18:19

        :45.000000000 +0100

        @@ -80,7 +80,7 @@

               SET(PYTHON_EXECUTABLE_TO_FIND python_d)

             ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)

           ELSE(WINDOWS)

        -    SET(PYTHON_EXECUTABLE_TO_FIND python)

        +    SET(PYTHON_EXECUTABLE_TO_FIND python2.5)

           ENDIF(WINDOWS)

           IF(NOT PYTHON_ROOT_USER)

             SET(PYTHON_EXECUTABLE_PATHS)

         

        and a bit environment:

         

        export PYTHON_ROOT=/sw

        export OMNIORBHOME=/Applications/Code-Aster10.0/Core/public/omniORB-4.1.3

        export HDF5HOME=/Applications/Code-Aster10.0/Core/public/hdf5-1.6.5

         

         

        Cheers

        Torsten

         

        • Re: Salome on mac os x

          Posted by Erwan ADAM at November 17. 2009

          Hi Torsten,

           

          I have integrated you patches in dev version.

          Too late for 5.1.3 ... but for next one.

          Happy to see that the effort done on cmake compilation

          is used by someone else !

           

          E.A.

      • Re: Salome on mac os x

        Posted by Torsten Sadowski at November 11. 2009

        Hi,

         

        it's nice to see people working on the problem. I've had a short look on compiling 5.1.2. Unluckily the "Use native" option has been removed from the build system though I can understand the reason. Currently the bug stops at tclx and I would expect problems with more prerequisites.

         

        My suggested approach would be to use fink or macport patches in all cases a problem occurs. Which means downloading the sources used by fink, applying the fink patches and changing the config_files to use any special build setting found in fink.

         

        If the prerequisites can be compiled successfully the real work starts...

         

        Cheers,

         

        Torsten

      • Re: Salome on mac os x

        Posted by Torsten Sadowski at November 12. 2009

        Hi Jasper,

         

        some patches:

         

        --- ./KERNEL_SRC_5.1.2/salome_adm/cmake_files/FindPLATFORM.cmake.orig   2009-11-

        12 18:15:01.000000000 +0100

        +++ ./KERNEL_SRC_5.1.2/salome_adm/cmake_files/FindPLATFORM.cmake        2009-11-

        12 18:17:21.000000000 +0100

        @@ -22,7 +22,7 @@

         

         MARK_AS_ADVANCED(ISSUE)

         FIND_FILE(ISSUE issue /etc)

        -IF(ISSUE)

        +IF(CMAKE_HOST_UNIX)

           SET(WINDOWS 0)

         ELSE()

           SET(WINDOWS 1)

         

        --- ./KERNEL_SRC_5.1.2/salome_adm/cmake_files/FindPYTHON.cmake.orig     2009-11-

        12 18:19:38.000000000 +0100

        +++ ./KERNEL_SRC_5.1.2/salome_adm/cmake_files/FindPYTHON.cmake  2009-11-12 18:19

        :45.000000000 +0100

        @@ -80,7 +80,7 @@

               SET(PYTHON_EXECUTABLE_TO_FIND python_d)

             ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)

           ELSE(WINDOWS)

        -    SET(PYTHON_EXECUTABLE_TO_FIND python)

        +    SET(PYTHON_EXECUTABLE_TO_FIND python2.5)

           ENDIF(WINDOWS)

           IF(NOT PYTHON_ROOT_USER)

             SET(PYTHON_EXECUTABLE_PATHS)

         

        and a bit environment:

         

        export PYTHON_ROOT=/sw

        export OMNIORBHOME=/Applications/Code-Aster10.0/Core/public/omniORB-4.1.3

        export HDF5HOME=/Applications/Code-Aster10.0/Core/public/hdf5-1.6.5

         

         

        Cheers

        Torsten

         

    • Re: Salome on mac os x

      Posted by Paul RASCLE at December 17. 2009

      Hello,

      The other process are still alive... I red more carefully the code in Session_ServerThread.cxx. The normal behaviour is:

      • check the presence of /Registry in CORBA Naming service : normally, it must not be present. (line 276)
      • when not present,
        • throw an exception (line 277),
        • catch it (line 281),
        • register a new instance of /Registry in Naming Service (line 285)
        • and continue...
      • if /Registry is found, 
        • print a message (line 278) "RegistryService servant already existing"
        • and abort (line 279)

      Sometimes, aborts occurs too early, before the print of  last lines of trace.

      A simple test could be to comment or remove the line 279: ASSERT (0); in GUI_SRC/src/Session/Session_ServerThread.cxx and recompile only GUI Module,
      then run SALOME, and give me the trace in console ( keep the option --enable-debug when compling the all the modules, to have a trace).

      I have attached my trace as an example of what happens when SALOME starts correctly.

       

      Attachments
    • Re: Salome on mac os x

      Posted by pod at December 17. 2009

      Hi Paul,

      I tried to modify and recompile the GUI module / same result unfortunately. I'm sending my trace for your review

      Thanks

      PO

      Attachments
    • Re: Salome on mac os x

      Posted by Paul RASCLE at December 17. 2009

      Good Evening,

      There is a probably a problem with omniOrb, but can't guess the exact reason. I suppose the process omniNames has been started and aborts (I had this problem when onmiNames was compiled with g++ 4.4.2 instead of 4.2.1)

      Could you give me more information ?

      - all the trace in the console,from the runAppli command to the last message,

      - the process still alive after the message : (command ps -jx) : when SALOME is running we have something like :

      prascle   508     1   507 8638d68    0 S      ??    0:00.02 omniNames -start 2810 -logdir /tmp/logs/prascle/omniNames_2810 -errlog /tmp/logs/prascle/omniNames_2810/omniNameErrors.log
      prascle   512     1   511 8f22380    0 S      ??    0:01.26 SALOME_Session_Server --with Registry ( --salome_session theSession ) --with ModuleCatalog...
      prascle   514     1   513 8638138    0 S      ??    0:00.07 SALOME_LauncherServer --with Registry ( --salome_session theSession ) --with ModuleCatalog…
      prascle   516     1   515 86384e0    0 S      ??    0:00.04 SALOME_ConnectionManagerServer
      prascle   518     1   517 8f224b8    0 S      ??    0:00.21 python /Users/prascle/projets/SALOME/Run/V513/bin/salome/SALOME_ContainerPy.py FactoryServerPy

      - the log files  in /tmp/logs/<yourLogName>

      Thanks,

      Paul

       

       

    • Re: Salome on mac os x

      Posted by Nicolas Geimer at January 12. 2010

      Hello,

      Salome is now running great on my  MBP with X11 and Fink, I'm trying to get it with Cocoa now. Then I've started to work with native products. I've got Qt Cocoa (4.6.0) Ok , Vtk Cocoa (CVS) Ok and I'm starting the process for OpenCascade following instructions of this link

       

      In this link, I compile using Torsten's procedure and I have a question/remark for Torsten ;), I think you forgot to mention to load the fink environment for autools issue, but I may be wrong, am I ?

       

      Cheers,

       

      Nicolas 

      • Re: Salome on mac os x

        Posted by Nicolas Geimer at January 13. 2010

        Previously Nicolas Geimer wrote:

        Hello,

        Salome is now running great on my  MBP with X11 and Fink, I'm trying to get it with Cocoa now. Then I've started to work with native products. I've got Qt Cocoa (4.6.0) Ok , Vtk Cocoa (CVS) Ok and I'm starting the process for OpenCascade following instructions of this link

         

        In this link, I compile using Torsten's procedure and I have a question/remark for Torsten ;), I think you forgot to mention to load the fink environment for autools issue, but I may be wrong, am I ?

         

        Cheers,

         

        Nicolas 

        Hello,

         

        About OpenCascade with Cocoa, I've following instruction from link in previous thread. I've built Opencascade .6.3.0, the Opencascade bindings and the small hello word project.

         

        Unfortunately, I've got an EXC_BAD_ADRESS signal (I've attached the backtrace). I'm investigating this but any help would be very appreciated. 

         

        Thanks in advance,

         

        Nicolas  

        Attachments
        • Re: Salome on mac os x

          Posted by Torsten Sadowski at January 18. 2010


          Unfortunately, I've got an EXC_BAD_ADRESS signal (I've attached the backtrace). I'm investigating this but any help would be very appreciated. 

           

          Thanks in advance,

           

          Nicolas  

          Hi Nicolas,

          Program received signal EXC_BAD_ACCESS, Could not access memory.

          Reason: KERN_INVALID_ADDRESS at address: 0x00000000fefd0008

          0xfefd0000 is the UndefinedHandleAddress (defined in Handle_Standard_Transient.hxx). This might be some kind of double free issue which should not happen with reference counts. I have no idea where the 8 comes from.

          Cheers
           
          Torsten
    • Re: Salome on mac os x

      Posted by Wernher Brevis at October 06. 2009

      I am also very interested any news?, Did you already submit a request to the fink project?

       

      Thanks

      • Re: Salome on mac os x

        Posted by Jasper Mine at October 08. 2009

        Wernher Brevis,

        I am currently gathering and trying to compile some of Salome's library dependancies for use on osx 10.5.

        I need this Application in the worst way as I'm currently designing a motorcycle, turbine, and sailboat for fun.  And $8,000 is ridiculous for a hobbiest to pay for software.

        I will report my success or failure here on this forum when the time comes.  I'm very disappointed there is not much osx communication here.

        Fink or Macports might be a good choice, however alot of the dependancies are not located on either so it would be a large undertaking.

        Talk later,

        Jasper

        Previously Wernher Brevis wrote:

        I am also very interested any news?, Did you already submit a request to the fink project?

         

        Thanks

         

        • Re: Salome on mac os x

          Posted by Wernher Brevis at April 05. 2010

          Sorry that I did not reply before, I will check the large amount of  "new" post here, and then I will see what it can be my contribution.

          Thank you for your efforts.

           

          Wernher

           

           

          Previously Jasper Mine wrote:

          Wernher Brevis,

          I am currently gathering and trying to compile some of Salome's library dependancies for use on osx 10.5.

          I need this Application in the worst way as I'm currently designing a motorcycle, turbine, and sailboat for fun.  And $8,000 is ridiculous for a hobbiest to pay for software.

          I will report my success or failure here on this forum when the time comes.  I'm very disappointed there is not much osx communication here.

          Fink or Macports might be a good choice, however alot of the dependancies are not located on either so it would be a large undertaking.

          Talk later,

          Jasper

          Previously Wernher Brevis wrote:

          I am also very interested any news?, Did you already submit a request to the fink project?

           

          Thanks

           

           

    • Re: Salome on mac os x

      Posted by Jasper Mine at November 17. 2009

      Hello,  

      In a day and a half Torsten was able to get Kernel compiling using cmake.  I also have kernel compiling on my system with an error in swig at the moment.  I was very happy to see him join the IRC channel.  Obviously Kernel is a small fraction of the whole that is Salome but I'm glad to see Torsten's progress.  

      Good news on the Salome 5.1.3 release!!!  And I hope we can get working on the mac port as soon as possible after your public release.

      Paul, interesting news about more of the modules compiling.  I sure am eager to see the edits to source to make this these modules compile.

      Thank-you for the interest and progress guys!

      Jasper

    • Re: Salome on mac os x

      Posted by jelle at March 26. 2010

      I'm really thrilled by all the effort on developing a osx build.

      However, making such a build is such a massive effort.

      I wonder whether we could organize a repository / location where binaries can be uploaded such that the effort of doing so can be distributed. I'm willing to offer server space for sure. It would be just so cool to rsync to a salome build, rather than having to spend a massive effort trying to build it. This coupled with a repository for Code_Aster would be really a great improvement?

      Idea?

       

      -jelle

    • Re: Salome on mac os x

      Posted by Nicolas Geimer at March 19. 2010

      Hello everybody,

       

      For your information, I've got a first draft of Salome on Mac OS X with Cocoa support. It implies that I had to re-build some prerequisites specially for Mac OS X (Qt 4.6.1 Cocoa, Vtk 5.4.2 Cocoa).

      After many patches, as a result, I've got a native Salome Cocoa GUI (including the VTK  Cocoa viewer) compiled  with Mac OS X frameworks.

       

      Today, there are 2 main problems :

       

       - I've got lot of bugs related to the Apple STL  (specially about the string type in STL). This is the first project I'm managing with Mac OS X. Is it a known problem ??

       

      - The OpenCascade library is not ported today, i.e. the GEOM module in Salome is only available through Python scripts. This is the next step (but it's a very big one).

       

      I'll provide patches for each module in the next days.

       

      Cheers,

       

      Nicolas

    • Re: Salome on mac os x

      Posted by jelle at October 29. 2009

      Hi Jasper,

      Thomas & I ( the developers of PythonOCC(.org) ) are both working on OSX.

      Perhaps we can offer some help?

       

      -jelle

    • Re: Salome on mac os x

      Posted by Torsten Sadowski at January 08. 2010

      Happy new Year!

       

      I will try to build fink packages for the prerequisites and maybe later for salome itself. Right now I've got omniorb and omniorbpy. To use them the .info files must be copied into 

       

      /sw/fink/dists/local/main/finkinfo/

      I don't know when (if at all) the packages will appear in fink unstable.

       

      Cheers, Torsten

      Attachments
      • Re: Salome on mac os x

        Posted by Paul RASCLE at January 09. 2010

        Previously Torsten Sadowski wrote:

        Happy new Year!

         

        I will try to build fink packages for the prerequisites and maybe later for salome itself. Right now I've got omniorb and omniorbpy. To use them the .info files must be copied into 

         

        /sw/fink/dists/local/main/finkinfo/

        I don't know when (if at all) the packages will appear in fink unstable.

         

        Cheers, Torsten

        Hello, that's good news!

        Have you already submitted the packages to Fink for integration or is it just a try ?

        Did you try to build 51.3 on Fink ?

        Paul

        • Re: Salome on mac os x

          Posted by Torsten Sadowski at January 10. 2010

          Hi Paul,

          I did submit the packages to Fink. The next to tackle will be hdf5 and med built with the gfortran from the R project (http://r.research.att.com/tools/). I dislike mixing gcc versions in a single program because I had strange crashes when a program linked libgcc_s.dylib directly and a different version via libgfortran.dylib.

          So far I did not try to build Salome. I want to package OCC first which will take time.

           

          Cheers, Torsten

          • Re: Salome on mac os x

            Posted by Paul RASCLE at January 13. 2010

            Previously Torsten Sadowski wrote:

            Hi Paul,

            I did submit the packages to Fink. The next to tackle will be hdf5 and med built with the gfortran from the R project (http://r.research.att.com/tools/). I dislike mixing gcc versions in a single program because I had strange crashes when a program linked libgcc_s.dylib directly and a different version via libgfortran.dylib.

            So far I did not try to build Salome. I want to package OCC first which will take time.

             

            Cheers, Torsten

            Hi Torsten,

            I hope that the packages will be accepted soon by Fink. Trying to have the same gcc version for all the products is definitely a good idea. If it works, it will be much more simple than my solution with a mix of gcc 4.4.2 and 4.2.1.

            Paul

    • Re: Salome on mac os x

      Posted by pod at December 17. 2009

      Hi,

      I have compiled omniOrb with gcc 4.2. I have this from a ps -jx after trying to launch ./runAppli :

      podallaire  1742     1  1741 8704fd8    0 S      ??    0:00.21 omniNames -start 2810 -logdir /tmp/logs/podallaire/omniNames_2810 -errlog /tmp/logs/podallaire/omniNames_2810/omniNameErrors.log

      podallaire  5300     1  5299 90ab728    0 S      ??    0:00.04 SALOME_ConnectionManagerServer

      podallaire  5302     1  5301 c3b65f0    0 S      ??    0:00.18 python /Users/podallaire/../../opt/salome_5.1.3/myAppli/bin/salome/SALOME_ContainerPy.py FactoryServerPy

      podallaire  5298     1  5297 8705d40    0 S      ??    0:00.06 SALOME_LauncherServer --with Registry ( --salome_session theSession ) --with ModuleCatalog ( -common /Users/podallaire/../../op

       
      Nothing special in the log file. 
       
      I compile salome twice from src with the same results ?! The only difference is the hdf5 was compiled with the default gcc, not gcc 4.4 - can it make a difference ?
       
      Thanks for helping
       
      PO
       
    • Re: Salome on mac os x

      Posted by pod at December 17. 2009

      Thanks for you time Paul / I will jump into the print statements later today

      In the meantime, I'm sending my myAppli directory + env file as requested.

      Regards,

      PO

      Attachments
    • Re: Salome on mac os x

      Posted by Paul RASCLE at December 18. 2009

      I checked your configuration and found nothing.

      The following lines in your environment are not necessary, but I created an application with these modifications to check if there is a side effect, but it still works for me. Everything looks OK so far.

      export PYTHON_ROOT=/sw
      alias python="/sw/bin/python2.6"
      export KERNEL_ROOT_DIR=${PRODROOT}/Install/KERNEL_V513
      export GUI_ROOT_DIR=${PRODROOT}/Install/GUI_V513
      export GEOM_ROOT_DIR=${PRODROOT}/Install/GEOM_V513

      Paul

    • Re: Salome on mac os x

      Posted by jelle at January 13. 2010

      It would be just  _wonderful_ to see Emmanual's patch integrated in OCC. Thanks so much for keeping us posted of your efforts Nicolas, it would a wonderful achievement to have OCC & Cocoa / Quartz working together!

      Cheers,

      -jelle

Powered by Ploneboard
Document Actions