Author Topic: OSX version of API  (Read 4430 times)

RMS

  • meshmixer founder
  • Administrator
  • Hero Member
  • *****
  • Posts: 1238
    • View Profile
    • gradientspace
OSX version of API
« on: December 18, 2014, 11:04:38 PM »
just added. The included pre-build mmapi.so was compiled on 10.10.1, with XCode 6. I have no idea if it will work on older versions of OSX...
created meshmixer - now starting gradientspace - meshmixer consulting available http://www.gradientspace.com/consulting

MagWeb

  • Administrator
  • Hero Member
  • *****
  • Posts: 1191
    • View Profile
Re: OSX version of API
« Reply #1 on: March 01, 2015, 04:05:57 PM »
Being a newbie on python:

As far as I understood (at least the make_package_python.sh says so) there should be a  _mmapi.so in distrib/python_osx ?
Seems this is missing and test.py seems to need it.
Running test.py quits at:

File "/Users/MagWeb/Downloads/mm-api-master/distrib/python_osx/mmapi.py", line 20, in swig_import_helper
    import _mmapi
ImportError: No module named _mmapi
I'm just a user as you are. Being no Autodesk employee: I do not know where this road will lead to, nor do I claim to've all stuff got right.

MagWeb

  • Administrator
  • Hero Member
  • *****
  • Posts: 1191
    • View Profile
Re: OSX version of API
« Reply #2 on: May 03, 2015, 02:53:25 PM »
Saw you made some changes concerning the MAC distrib.
Now the api works for me building a python_osx via build_python_distrib.sh

Building it via the process described for OSX in build/INSTRUCTIONS:
install_swig_osx.sh fails. Seems it misses to download pcre-8.35 successfully.
(success after pcre-8.35 was downloaded manually to swigosx and the command "rm -rf swigosx" was commented out in install_swig_osx.sh - a second go did it after that)
I'm just a user as you are. Being no Autodesk employee: I do not know where this road will lead to, nor do I claim to've all stuff got right.

RMS

  • meshmixer founder
  • Administrator
  • Hero Member
  • *****
  • Posts: 1238
    • View Profile
    • gradientspace
Re: OSX version of API
« Reply #3 on: May 06, 2015, 10:10:16 AM »
are you using the master, or the next_update branch?
created meshmixer - now starting gradientspace - meshmixer consulting available http://www.gradientspace.com/consulting

MagWeb

  • Administrator
  • Hero Member
  • *****
  • Posts: 1191
    • View Profile
Re: OSX version of API
« Reply #4 on: May 06, 2015, 04:50:15 PM »
I used the master branch...

Gonna check if it works using next_update brunch the next days.

I'm just a user as you are. Being no Autodesk employee: I do not know where this road will lead to, nor do I claim to've all stuff got right.

francesco289

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: OSX version of API
« Reply #5 on: June 26, 2015, 09:21:00 AM »
I've solved this, modify the script as written here:
https://github.com/meshmixer/mm-api/issues/5

RMS

  • meshmixer founder
  • Administrator
  • Hero Member
  • *****
  • Posts: 1238
    • View Profile
    • gradientspace
Re: OSX version of API
« Reply #6 on: July 04, 2015, 11:49:42 AM »
argh, sorry. I fixed this problem locally quite a long time ago, but I did not realize I had forgotten to push it to the remote next_update branch. I updated the build script to use pcre-8.36, and it now downloads it from a location that should be more reliable (i.e. my dropbox). Also the top-level python build script automatically does this.

This is now in the master branch, as well as an updated python_osx disturb that works with 2.9
created meshmixer - now starting gradientspace - meshmixer consulting available http://www.gradientspace.com/consulting

Vikapolyak

  • Newbie
  • *
  • Posts: 1
    • View Profile
OSX version of API
« Reply #7 on: March 19, 2016, 03:00:30 PM »
Ok, got the output working. It seems to be fairly stable. I have not checked the show functions yet, but I will be doing that next. I am running on OSX Mavericks 10.9.2

P.S.: ?????? ??????? ?? ??? ?? ?????? >>> ????????
SUCH JOKES YOU HAVE NOT SEEN >>> [url = http://tut.la/31o] VIEW [/ url]
???? ???-?? ????????? ?????? ?????? ????!