maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How do I setup the SDK vm image for PyQt4? (https://talk.maemo.org/showthread.php?t=44920)

fred123 2010-02-18 01:02

How do I setup the SDK vm image for PyQt4?
 
I am trying to setup dev environment for PyQt4.6 on SDK image.

I have installed Qt Creator fromm .tgz
apt-get installed Pyuic4
downloaded and unpacked Eric4, PyQt4, sip which PyQt said was missing.

I have configured sip, but it errors on Make.

I have done a search but found nothing, so time to ask for help.

attila77 2010-02-18 01:10

Re: How do I setup the SDK vm image for PyQt4?
 
Whoa, you're in too deep, no make/configure needed of anything. When you say SDK image, do you mean scratchbox or the premade vmware images ? SIP certainly does not need to be installed separately. Just 'apt-get install python-qt4 pyqt4-dev-tools' in the vmware image (or 'apt get install python2.5-qt4 python2.5-qt4-dev-tools' if you're in scratchbox) and it will pull in all dependencies (pyuic, sip, etc included).

fred123 2010-02-18 01:35

Re: How do I setup the SDK vm image for PyQt4?
 
I thought there must be a simple way!

PyQt installed into SDK image and sandbox Ok.

Now trying to install eric4, get the following errors

root@maemo-desktop:/home/maemo/Desktop/eric4-4.4.1# python install.py
Checking dependencies
Python Version: 2.5.2
Found PyQt
Sorry, please install QScintilla2 and
it's PyQt4 wrapper.
Error: cannot import name Qsci

Have I got the wrong version of eric or a problem with Qt?

fatalsaint 2010-02-18 02:29

Re: How do I setup the SDK vm image for PyQt4?
 
Well actually I would install python2.5-dev-tools python-qt4-dev, pyqt-tools in the main Ubuntu, not just the SDK.. and then install Eric4 in Ubuntu.

Do your development in main Ubuntu, and then copy/move it into the SDK/scratchbox when you want to see it run on the Xephyr/N900 mock-up.

Getting Eric4 in the SDK/Scratchbox isn't going to do you much good I don't think.

Edited to fix my python versions for Ubuntu, not SDK.

fred123 2010-02-18 09:44

Re: How do I setup the SDK vm image for PyQt4?
 
i was trying to put eric in ubuntu, is Qscintilla in a repo or do i have to build it?

attila77 2010-02-18 11:27

Re: How do I setup the SDK vm image for PyQt4?
 
Quote:

Originally Posted by fred123 (Post 533892)
i was trying to put eric in ubuntu, is Qscintilla in a repo or do i have to build it?

Ubuntu universe repos include 'eric' as a package (which pulls in scintilla automatically). PyQt development is a well-beaten path in almost all major linux distros (you just need to search for the proper packages included with the distro), if you are tempted on making/configuring/installing things from source or from upstream (=the original author's sites), you know you're doing something wrong, go back to the package manager and take a look again (or ask here :) ).

fred123 2010-02-18 12:28

Re: How do I setup the SDK vm image for PyQt4?
 
Ok eric installed many thanks @attila77.

Now I can write my first linux/n900 app.


All times are GMT. The time now is 07:10.

vBulletin® Version 3.8.8