[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] static Python target osx-64 missing util.h
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2015-12-11 12:39:42
Message-ID: A559B2F2-B435-49FB-AB84-04A3554B59CA () riverbankcomputing ! com
[Download RAW message or body]

On 9 Dec 2015, at 9:26 a.m., John Hackett <john.hackett@icon-is.co.uk> wrote:
> 
> Phil,
> 
> Am I missing something? I've reread the tutorial on pyqtdeploy and can't see \
> anything about the need for XCode when setting up to cross compile from Linux to \
> Mac.... 
> My setup is:
> 
> o/s Ubuntu 14.04.
> Qt5.5.1
> PyQt-commercial-5.5
> sip-4.17
> Python 2.7.9
> 
> I have set up directories as specified here: \
> http://pyqt.sourceforge.net/Docs/pyqtdeploy/tutorial.html#ref-directory-structure 
> I use the PyCharm IDE to edit the Python code which is in a single file. I think \
> I've followed the tutorial re installing the static builds for a native \
> installation and have managed to get the app to compile and run correctly on the \
> host machine (Ubuntu 14.04). So, this should mean that I now have the correct \
> Qt/PyQt/Python libraries and paths set up now and the few Python code changes I had \
> to make to get the App compiled - it was running in the IDE but some changes needed \
> to be made to allow it to compile correctly. 
> My (naive!) expectation was that having got all this correct in Linux the only \
> changes required to compile for the Mac (and later windows) would be to change the \
> $SYSROOT and compile static versions of Python, sip and PyQt5 with the same \
> pyqtdeploycli commands as before but with the "target" variable changed from \
> "linux-64" to "osx-64" into the $SYSROOT directory. [ see \
> http://pyqt.sourceforge.net/Docs/pyqtdeploy/static_builds.html ] 
> Clearly this had failed at the first hurdle - I can't seem to compile the static \
> Python with oxs-64 as the target.... 
> Are my assumptions not correct? If not then what am I missing?
> 
> PS: searching for util.h on my Mac (find /Applications/Xcode.app -name util.h) \
> gives me quite a few results - if I find the correct one do I just copy it from my \
> mac to the linux host? And if so where so I put it? It seems odd to me that this \
> would be required.

I didn't pick up on the fact you are trying to cross-compile for Mac. I know of no \
way to do this, you must compile them natively.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic