Open phonyphonecall opened 9 years ago
Honestly, no clue. I'm glad my MacOS environenmt works. A few people have been trying to replicate it, but so far no-one has been successful. I have very little knowledge on this area, so there is little I can do to help here.
@daid understandable. Do you have a suggested alternate method to setup a mac dev environment?
Here are the steps I followed to setup a build env on MacOS X 10.10.1, feel free to adapt it to your own setup.
brew uninstall python
brew install python --universal --framework
This should give you the necessary requirements for the non-system framework based universal python.
http://docs.python-guide.org/en/latest/dev/virtualenvs/
pip install virtualenv
virtualenv Cura
cd Cura
source bin/activate
http://stackoverflow.com/questions/791959/download-a-specific-tag-with-git http://stackoverflow.com/questions/2411031/how-do-i-clone-into-a-non-empty-directory
cd Cura
git init
git remote add origin https://github.com/daid/Cura
git fetch
git checkout
http://umforum.ultimaker.com/index.php?/topic/7577-cura-mac-os-x-sources-compil/
download wxPython sources versions 3.0.1.1 here and uncompress it somewhere. I did it in the Cura folder, and added the wxPython folder to .gitignore. You might get some build errors if you're on Yosemite, so apply the necessary changes from this link https://github.com/KiCad/KicadOSXBuilder/issues/40
cd wxPython-src-3.0.1.1/wxPython
python build-wxpython.py --osx_cocoa --mac_arch=i386,x86_64 --install
Create file Cura/bin/pythonw with the following content:
#!/bin/bash
ENV=`python -c "import sys; print sys.prefix"`
PYTHON=`python -c "import sys; print sys.real_prefix"`/bin/python
export PYTHONHOME=$ENV
exec $PYTHON "$@"
Quit terminal, reopen, go back to Cura folder and reactivate virtualenv.
cd Cura-15.01-RC5-Makerbot
source bin/activate
Download power 1.3 sources here.
"super has no attribute init" build error https://bitbucket.org/ronaldoussoren/pyobjc/issue/110/subclass-of-nsobject-super-has-no
cd power-1.3
python setup.py build
python setup.py install
cd Cura
pip install -r requirements.txt
pip install -r requirements_darwin.txt
modulegraph error https://bitbucket.org/jinnko/py2app/commits/dba244c843397345d2bac8cdfc92ba9d66192bfc
cd Cura
pythonw -m Cura.cura
cd Cura
./package.sh darwin
@melka thanks! I'll have a run through this.
When setting up a new dev environment the homebrew script fails to execute properly. Error:
I've fixed all issues in brew doctor, and uninstalled everything python I could find on the machine. I would report it to the homebrew issues, but similar issues in that issue tracker claim that this error is a formulaic issue. Reference: https://github.com/Homebrew/homebrew/issues/33903
Let me know how I can help.
brew --verson:
0.9.5
OSX10.10.1