[solved] Installation problems with Pyqt - locating old version of qmake
-
What does
which qmake
return ? -
//anaconda/bin/qmake
Thank you so much for your help I have been struggling with this all day and making no progress
-
What else do you have in that folder ? That's a pretty unusual path
-
@SGaist
loads of .exe files such as 2to3, activate, binstar, conda etc about 160 of them in total -
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 ?
-
I dont think so, why?
-
Because developing/testing directly on a device requires that subscription, but the emulator not.
-
So to install Pyqt you have to have a developers subscription even if you aren't doing it commercially?
-
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.
-
Then why iOS and not OS X ? Otherwise, use the simulator
-
Theres no reason, I just didnt realise there was a choice. So how would I install PyQt for OS X development?
-
Just replace the iOS qmake by the one for OS X and you should be good to go
-
Sorry I am aware that I am being really dim and these are probably very obvious questions but how do I replace the qmake, do you mean the qmake in the /Users/paulbaranowski1/Qt/5.4/ios/bin/qmake path? Do I need to redownload a Qt for OS X or are all the libraries etc the same so it doesnt matter?
-
Just change the path to the OS X version, if you installed Qt using the online installer and didn't select the OS X version, then just run the manager and add it. Otherwise, if you used the offline installer you should already have it.
You can use
find /Users/paulbaranowski1/Qt/5.4 -name "qmake"
to find all installed qmake -
So I hadn't downloaded the OS X version I think, so I decided to just start again and install Qt from the beginning. I am in the Qt setup wizard and when selecting the components my options under Qt5.4 are clang-64bit, various androids and iOS. Where do I select the OS X version?