From: Adrien B. <adr...@gm...> - 2005-11-07 03:02:57
|
Hello, i just bought my first mac today, and i try to install PyQt, but... 1) I don't know which packages i had to install, and where i can find them. 2) I installed Fink and then the pyqt-py24 package, but my pyqt app want to connect to a X Server. I'd like to have native MacOSX widgets, and don't have to run any X Server, is it possible ? If you could give me urls for wich packages to install, and "what to do and how" to make pyqt working.. :) I'm completly new on Macs (i actually run linux), so please explain it to me (a poor newbie with mac) Thanks a lot, Adrien |
From: Diez B. R. <de...@we...> - 2005-11-07 11:00:12
|
Am Montag, 7. November 2005 04:02 schrieb Adrien Bourdet: > Hello, > i just bought my first mac today, and i try to install PyQt, but... > 1) I don't know which packages i had to install, and where i can find them. There might be other ways, but this is how I did it (I hope so at least, has been a while): Install mac-python 2.4 from http://pythonmac.org/packages/ Download the free mac qt version: ftp://ftp.trolltech.com/qt/source/ Make sure you use the latest 3.x, otherwise PyQt won't work. Build and install. Download sip and pyqt, and build it using the python2.4 from above. > If you could give me urls for wich packages to install, and "what to > do and how" to make pyqt working.. :) > I'm completly new on Macs (i actually run linux), so please explain it > to me (a poor newbie with mac) Yeah, one feels somewhat lost... I can also highly recommend iTerm, a terminal with better encoding support and _tabs_! Regards, Diez |
From: Adrien B. <adr...@gm...> - 2005-11-07 11:39:15
|
2005/11/7, Diez B. Roggisch <de...@we...>: > Install mac-python 2.4 from > > http://pythonmac.org/packages/ > I didn't find this package :( > > Build and install. Download sip and pyqt, and build it using the python2.= 4 > from above. > Do i download sip and pyqt from official websites ? > Yeah, one feels somewhat lost... I can also highly recommend iTerm, a ter= minal > with better encoding support and _tabs_! > > Regards, > Diez > Thanks again, Adrien > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Downl= oad > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Pyqt-mac-list mailing list > Pyq...@li... > https://lists.sourceforge.net/lists/listinfo/pyqt-mac-list > |
From: Diez B. R. <de...@we...> - 2005-11-07 11:50:45
|
> I didn't find this package :( Me neither. Strange, I thought I got it from there. Well, you should be able to go without it, using the stock-python of OS X. I just prefer 2.4. > > > Build and install. Download sip and pyqt, and build it using the > > python2.4 from above. > > Do i download sip and pyqt from official websites ? Yes. You should be able to use fink, but then use the source and build it yourself - otherwise, it will be build against the X11-qt. Which is your problem in the first place. Regards, Diez |
From: Adrien B. <adr...@gm...> - 2005-11-07 12:01:07
|
2005/11/7, Diez B. Roggisch <de...@we...>: > > I didn't find this package :( > > Me neither. Strange, I thought I got it from there. Well, you should be = able > to go without it, using the stock-python of OS X. I just prefer 2.4. > So you think pyqt/sip will work with python 2.3 ? > > > > > Build and install. Download sip and pyqt, and build it using the > > > python2.4 from above. > > > > Do i download sip and pyqt from official websites ? > > Yes. You should be able to use fink, but then use the source and build it > yourself - otherwise, it will be build against the X11-qt. Which is your > problem in the first place. > Ok. When i buid it from Fink, it uses X11, but if i use official package, it will not ? great :) Thanks for your help Adrien |
From: Diez B. R. <de...@we...> - 2005-11-07 12:45:57
|
> So you think pyqt/sip will work with python 2.3 ? I don't think so, I know - it is said so in the docs :) > Ok. When i buid it from Fink, it uses X11, but if i use official > package, it will not ? great :) Yup. Diez |
From: Adrien B. <adr...@gm...> - 2005-11-07 15:00:58
|
2005/11/7, Diez B. Roggisch <de...@we...>: > > So you think pyqt/sip will work with python 2.3 ? > > I don't think so, I know - it is said so in the docs :) > > > Ok. When i buid it from Fink, it uses X11, but if i use official > > package, it will not ? great :) > > Yup. > > Diez > Ok, so I only have to find python2.4 :) I downloaded python2.4.2 from python.org, I'm going to try with this one Adrien |
From: Diez B. R. <de...@we...> - 2005-11-07 15:07:17
|
Am Montag, 7. November 2005 16:00 schrieb Adrien Bourdet: > 2005/11/7, Diez B. Roggisch <de...@we...>: > > > So you think pyqt/sip will work with python 2.3 ? > > > > I don't think so, I know - it is said so in the docs :) > > > > > Ok. When i buid it from Fink, it uses X11, but if i use official > > > package, it will not ? great :) > > > > Yup. > > > > Diez > > Ok, so I only have to find python2.4 :) > I downloaded python2.4.2 from python.org, I'm going to try with this one I doubt that will work. As I said before, you can go with python2.3, no deal. I personally just prefer python 2.4. And using it "raw" from python.org won't help much IMHO, as you need a "Framework build", which is a special form of package format for python. But I'm not entirely sure about that - I'm a novice with mac os myself :) Regards, Diez |
From: Adrien B. <adr...@gm...> - 2005-11-07 23:51:19
|
I downloaded sip, pyqt and qt. I can't compile/link qt nor sip :(. With gcc4, I get compilations errors. With gcc3, theses errors are reported as warnings and the compilations goes on. But i can't link. I did as the INSTALL files from qt says... I also configured qt with : ./configure -no-accessibility -no-ipv6 -no-tablet -fast, and i put /usr/lib:/sw/lib into DYLD_LIBRARY_PATH, but nothing work better Here is the message i get when i try to compile sip or qt sip : c++ -headerpad_max_install_names -o sip main.o transform.o gencode.o heap.o parser.o lexer.o ld: Undefined symbols: _fprintf$LDBLStub _printf$LDBLStub _vfprintf$LDBLStub _sprintf$LDBLStub make[1]: *** [sip] Error 1 make: *** [all] Error 2 qt : ld: warning multiple definitions of symbol _dladdr .obj/release-shared/dlfcn.o definition of _dladdr in section (__TEXT,__text= ) /usr/lib/libSystem.dylib(dyldAPIsInLibSystem.o) definition of _dladdr ld: warning multiple definitions of symbol _dlclose .obj/release-shared/dlfcn.o definition of _dlclose in section (__TEXT,__tex= t) /usr/lib/libSystem.dylib(dyldAPIsInLibSystem.o) definition of _dlclose ld: warning multiple definitions of symbol _dlerror .obj/release-shared/dlfcn.o definition of _dlerror in section (__TEXT,__tex= t) /usr/lib/libSystem.dylib(dyldAPIsInLibSystem.o) definition of _dlerror ld: warning multiple definitions of symbol _dlopen .obj/release-shared/dlfcn.o definition of _dlopen in section (__TEXT,__text= ) /usr/lib/libSystem.dylib(dyldAPIsInLibSystem.o) definition of _dlopen ld: warning multiple definitions of symbol _dlsym .obj/release-shared/dlfcn.o definition of _dlsym in section (__TEXT,__text) /usr/lib/libSystem.dylib(dyldAPIsInLibSystem.o) definition of _dlsym ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _sprintf$LDBLStub _fprintf$LDBLStub _snprintf$LDBLStub _vsnprintf$LDBLStub /usr/bin/libtool: internal link edit command failed make[2]: *** [../lib/libqt.3.3.4.dylib] Error 1 make[1]: *** [sub-src] Error 2 make: *** [init] Error 2 are libraries missing on my system ? Thanks for your help Adrien |
From: Diez B. R. <de...@we...> - 2005-11-08 09:50:25
|
Adrien Bourdet wrote: > I downloaded sip, pyqt and qt. > I can't compile/link qt nor sip :(. > With gcc4, I get compilations errors. With gcc3, theses errors are > reported as warnings and the compilations goes on. But i can't link. > I did as the INSTALL files from qt says... > I also configured qt with : ./configure -no-accessibility -no-ipv6 > -no-tablet -fast, and i put /usr/lib:/sw/lib into DYLD_LIBRARY_PATH, > but nothing work better Sorry to hear that. I didn't have these problmes. I currently can't remember if and how I build Qt. I checked back on my machine (yesterday I was at work, under Linux) - and I found PyQt-mac and sip source dirs, so I certainly build those myself. But no Qt-Source (nor package) in sight - maybe I got a binary, contrary to my previous posts. HTH, Diez |
From: Adrien B. <adr...@gm...> - 2005-11-08 12:17:27
|
> Sorry to hear that. I didn't have these problmes. I currently can't > remember if and how I build Qt. I checked back on my machine (yesterday > I was at work, under Linux) - and I found PyQt-mac and sip source dirs, > so I certainly build those myself. But no Qt-Source (nor package) in > sight - maybe I got a binary, contrary to my previous posts. > > HTH, > > Diez I'm supid, I tried with the wrong version of qt. I took the same as my linux version (3.3.4), and i read later that only 3.3.5 was supported on tiger. This night I compiled Qt, SIP and PyQt without troubles... great ! Now the installation is ok, I can talk about real problems about pyqt programming :) I have done a little app in pyqt wich works fine on linux. But with the mac version, my QDialog seams to not have the focus :( All widgets are paint with a grey color, as if they were disabled, but they work ! Perhaps i didn't configure my QDialog correctly ? I haven't my code under my eyes yet, but i remeber the call method : dlg.show() dlg.exec_loop() Does the parameters of __init__ could be implicated in my problem ? Adrien |
From: Diez B. R. <de...@we...> - 2005-11-08 15:44:29
Attachments:
setup.py
|
Adrien Bourdet wrote: >>Sorry to hear that. I didn't have these problmes. I currently can't >>remember if and how I build Qt. I checked back on my machine (yesterday >>I was at work, under Linux) - and I found PyQt-mac and sip source dirs, >>so I certainly build those myself. But no Qt-Source (nor package) in >>sight - maybe I got a binary, contrary to my previous posts. >> >>HTH, >> >>Diez > > > I'm supid, I tried with the wrong version of qt. I took the same as my > linux version (3.3.4), and i read later that only 3.3.5 was supported > on tiger. > This night I compiled Qt, SIP and PyQt without troubles... great ! > > Now the installation is ok, I can talk about real problems about pyqt > programming :) > > I have done a little app in pyqt wich works fine on linux. But with > the mac version, my QDialog seams to not have the focus :( All widgets > are paint with a grey color, as if they were disabled, but they work ! > Perhaps i didn't configure my QDialog correctly ? > I haven't my code under my eyes yet, but i remeber the call method : > dlg.show() > dlg.exec_loop() > > Does the parameters of __init__ could be implicated in my problem ? No, you need to run the application as an "aliased applet". That means you need something like the attached setup.py. HTH, Diez |
From: Adrien B. <adr...@gm...> - 2005-11-10 00:21:32
|
2005/11/8, Diez B. Roggisch <de...@we...>: > Adrien Bourdet wrote: > > I have done a little app in pyqt wich works fine on linux. But with > > the mac version, my QDialog seams to not have the focus :( All widgets > > are paint with a grey color, as if they were disabled, but they work ! > > Perhaps i didn't configure my QDialog correctly ? > > I haven't my code under my eyes yet, but i remeber the call method : > > dlg.show() > > dlg.exec_loop() > > > > Does the parameters of __init__ could be implicated in my problem ? > > No, you need to run the application as an "aliased applet". That means > you need something like the attached setup.py. > > HTH, > > Diez > Hmm, my application is just a .py file that i run like : 'python MyAppli.py'. Could I fix the problem without making a MacOSX .app ? I'd prefer launch it in python because i have to develop and debug :) I didn't say that earlier, but the main menubar doesn't appear. Adrien |
From: Kevin W. <sw...@wo...> - 2005-11-10 00:51:16
|
Adrien Bourdet wrote: > 2005/11/8, Diez B. Roggisch <de...@we...>: >> Adrien Bourdet wrote: >>> I have done a little app in pyqt wich works fine on linux. But with >>> the mac version, my QDialog seams to not have the focus :( All widgets >>> are paint with a grey color, as if they were disabled, but they work ! >>> Perhaps i didn't configure my QDialog correctly ? >>> I haven't my code under my eyes yet, but i remeber the call method : >>> dlg.show() >>> dlg.exec_loop() >>> >>> Does the parameters of __init__ could be implicated in my problem ? >> No, you need to run the application as an "aliased applet". That means >> you need something like the attached setup.py. >> >> HTH, >> >> Diez >> > > Hmm, my application is just a .py file that i run like : 'python > MyAppli.py'. Could I fix the problem without making a MacOSX .app ? > I'd prefer launch it in python because i have to develop and debug :) > > I didn't say that earlier, but the main menubar doesn't appear. > > Adrien > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Pyqt-mac-list mailing list > Pyq...@li... > https://lists.sourceforge.net/lists/listinfo/pyqt-mac-list > > You need to launch it with "pythonw," not "python." -- Cheers, Kevin Walzer, PhD WordTech Software - "Tame the Terminal" http://www.wordtech-software.com sw at wordtech-software.com |
From: Adrien B. <adr...@gm...> - 2005-11-10 01:21:05
|
2005/11/10, Kevin Walzer <sw...@wo...>: > Adrien Bourdet wrote: > > I didn't say that earlier, but the main menubar doesn't appear. > > > > Adrien > > > > > You need to launch it with "pythonw," not "python." > > -- > Cheers, > > Kevin Walzer, PhD > WordTech Software - "Tame the Terminal" > http://www.wordtech-software.com > sw at wordtech-software.com > All is okay, I should be more quiet now Thanks all for your help Adrien |