[solved] Installation problems with Pyqt - locating old version of qmake
-
Hi and welcome to devnet,
You probably have Qt 4.7.4 bin folder in your PATH environment variable, remove it from there and it should go better.
Do you want to build PyQt for iOS ?
[edit: added missing word...]
-
Sorry, there was a word missing… I meant the PATH environment variable.
-
echo $PATH
to see what's inside that variableIf the bin dir of Qt 4 is in there, then PATH is modified somewhere like in e.g. your .profile file. If not there, then did you install it using macports/homebrew ?
-
When I type echo $PATH I get /Library/Frameworks/Python.framework/Versions/2.7/bin://anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
I dont think I installed Qt4 unless it came with anaconda? I installed Qt5 using the installer on their website.
-
What does
which qmake
return ? -
What else do you have in that folder ? That's a pretty unusual path
-
Then you can either:
- Remove that Qt 4.7 from your system
- Rename that folder while you build PyQt
- Prepend the path to your iOS qmake to PATH before you call PyQt configure script
-
By the third option do you mean the following:
python configure.py --qmake=/Users/paulbaranowski1/Qt/5.4/ios/bin/qmake
because when I do this I get the following output:
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
Error: Failed to determine the detail of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.or is there something else I should be doing?
-
My bad, I misread the original error message. No, you doing it right. However, call it again with --verbose to see the reason why it fails.
-
I get a huge chunk of text which I can copy if you want, but the end message is:
Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'make[1]: *** [iphoneos-release] Error 65
make: *** [release-iphoneos] Error 2 -
Did you subscribe to Apple's iOS developer program ?
-
Because developing/testing directly on a device requires that subscription, but the emulator not.
-
AFAIK, as soon as you want to run your application on your device, yes but again, it's an Apple constraint and it doesn't have anything to do with the framework your might be using.
-
Ah kk, so the only way to get PyQt would be to subscribe to the apple developers program and then run the same command. Do you know of any work arounds? I just want to have a play and learn some GUI programming with python, not do any actual development.