Re: python-pyqt -- building against Qtopia in 2008.8
On Wednesday, September 24, 2008 00:14:12 Erin Yueh wrote: > Hi Kelvie, > > After discussed with few co-workers, we think that we should separate > Qtopia Qt lib and Qt4 Qt lib and let them store at different places. > When we would run qt applications, we can use > LD_LIBRARY_PATH to set qt lib. Currently, I use 'env' before running my AP. > Yes, right now I do the same (I have, in my /usr/local/bin a script called pyqt that exports the library paths and runs python; and the she-bang line on my scripts are '#!/usr/bin/env pyqt') Also, on a limited memory device like this, is this really the way to go? I don't think that if we use qt-x11 it will conform to the save theme that Qtopia apps will use, and there will be a _lot_ of duplicated functions loaded in memory (qt-x11 and qtopia are practically the same). > About QMessageBox, I can run it correctly before I re-installing all qt > related packages. But now, it wont show up and crash my AP. Now, I only > install libQtCore, libQtGui, libQtNetwork, libQtWebKit, python-sip and > python-pyqt. I guess I need to install more related Qt4 lib packages. Ah, good to know. I should try it on my side (I believe my version of pyqt was built against 4.3.2 whereas the libraries are 4.4.1; they should be binary compatible, but I'm sure there may be a few quirks). -- Kelvie Wong ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: python-pyqt -- building against Qtopia in 2008.8
Kelvie Wong wrote: > Hello Erin, > > On Thursday, September 18, 2008 03:50:36 Erin Yueh wrote: >> also, i will discuss with Holger to see whether we can change Qt lib to >> '/usr/lib', instead of '/opt/Qtopia/lib'. > > That's great; though it doesn't solve the problem of actually building > against > Qtopia using OE -- it will have to go in the staging area for that to happen > (and perhaps there needs to be a bbclass for it?) > > There are also issues with QMessageBox's using the X11 version of Qt, do you > see this as well? I can't seem to get a modal QMessageBox to show up (via > the > static functions similar to QMessageBox::warning()) > > Regards, Hi Kelvie, After discussed with few co-workers, we think that we should separate Qtopia Qt lib and Qt4 Qt lib and let them store at different places. When we would run qt applications, we can use LD_LIBRARY_PATH to set qt lib. Currently, I use 'env' before running my AP. About QMessageBox, I can run it correctly before I re-installing all qt related packages. But now, it wont show up and crash my AP. Now, I only install libQtCore, libQtGui, libQtNetwork, libQtWebKit, python-sip and python-pyqt. I guess I need to install more related Qt4 lib packages. Regards, Erin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: python-pyqt -- building against Qtopia in 2008.8
Hello Erin, On Thursday, September 18, 2008 03:50:36 Erin Yueh wrote: > also, i will discuss with Holger to see whether we can change Qt lib to > '/usr/lib', instead of '/opt/Qtopia/lib'. That's great; though it doesn't solve the problem of actually building against Qtopia using OE -- it will have to go in the staging area for that to happen (and perhaps there needs to be a bbclass for it?) There are also issues with QMessageBox's using the X11 version of Qt, do you see this as well? I can't seem to get a modal QMessageBox to show up (via the static functions similar to QMessageBox::warning()) Regards, -- Kelvie Wong ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: python-pyqt -- building against Qtopia in 2008.8
Hi Kelvie, Kelvie Wong wrote: [...] > > However, this brought me to thinking, is there a way to build a version of > PyQt against the qtopia libraries that are already installed? (the ones > located in /opt/Qtopia) I am using OE to build 'qt-x11-free', 'python-sip', 'pytho-pyqt' packages with all latest version. Qt is 4.4.1, sip is 4.7.7 and pyqt is 4.4.3. Since i would like to use Qt WebKit functions, i can launch a web browser in my NEO now. Yup, i have to export LD_LIBRARY_PATH='/usr/lib' first. Also, i launch my python script like this: 'LD_PRELOAD=/usr/lib/libQtWebKit.so.4 ./browser.py'. > > I see that these are in a separate package (qtopia-phone-x11, I believe, > rather than qtopia-core), and do not have an associated bbclass with them > also, i will discuss with Holger to see whether we can change Qt lib to '/usr/lib', instead of '/opt/Qtopia/lib'. > Is this even a viable thing to attempt? If at all possible, I would like to > get PyQt working (well) on the Freerunner, and I am sure I am not the only > one. > > (PS. is this the right list for these kind of questions?) Cheers, Erin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: python-pyqt -- building against Qtopia in 2008.8
Le 16/9/2008, "Kelvie Wong" <[EMAIL PROTECTED]> a écrit: Hi Kelvie, >get PyQt working (well) on the Freerunner, and I am sure I am not the only >one. No, you are not the only one! My application is now using PyGTK (see my previous - and first - post) because I run it on a Nokia Internet Tablet, and I would like to run it on Openmoko, and then switch to PyQT! I can't help you, right now, because I don't have any knowledge of Openmoko, but I would like to. So, if could point me to documentations to do what you did, I may have a look. I don't have a FreeRunner, but I installed the qemu-emulator. Is it possible to use it as a developpement plateform? >(PS. is this the right list for these kind of questions?) Don't know either. -- Frédéric ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
python-pyqt -- building against Qtopia in 2008.8
Over the past week (on and off), I have attempted to try and get PyQt working (as I feel it is the quickest way to get GUI apps up and running), but have run into some trouble. First off, I have got PyQt (PyQt-4.3.3 linked against the Qt 4.4 libraries) working, but, of course, as the libraries are not already loaded, it is fairly slow to load the library. I can share the opk/ipk files, if there's interest (and if anyone is interested in hosting them :). This requires that qt4-x11- free be installed, however; and the LD_LIBRARY_PATH must be set to search /usr/lib/ first so that it doesn't try to open the ones in /opt/Qtopia/ first and come up with undefined references. However, this brought me to thinking, is there a way to build a version of PyQt against the qtopia libraries that are already installed? (the ones located in /opt/Qtopia) I see that these are in a separate package (qtopia-phone-x11, I believe, rather than qtopia-core), and do not have an associated bbclass with them Is this even a viable thing to attempt? If at all possible, I would like to get PyQt working (well) on the Freerunner, and I am sure I am not the only one. (PS. is this the right list for these kind of questions?) -- Kelvie Wong ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community