[Eric] Eric 4.0.0 windows QT tools problem
Detlev Offenbach
detlev at die-offenbachs.de
Thu Jun 14 18:23:22 BST 2007
On Mittwoch, 13. Juni 2007, Eric Weick wrote:
> I was having a lot of difficulty installing pyqt and eric4 in the past
> until the latest release of eric. This is the procedure that I've
> documented along the way.
> I totally uninstalled/deleted everything including python and then started
> over. I'm not sure it was necessary, but I wanted a fresh start.
> The following notes are kinda rough, but I believe discernible.
> Hope this helps.
> -Eric (not THE eric, however)
> _________________
> Install Python 2.5
>
> 1. Install MinGW
> 1a. put mingw\bin in PATH
>
> Install latest snapshot for QT
> ftp://ftp.silug.org/pub/qt/snapshots/
> Unzip
> Place in QT dir
> Change “PATH” in Environment Variables to point to new snapshot
> (ex. C:\qt\4.2.3\bin)
> ** close and reopen cmd window when you change the path to make it
> effective **
> From the cmd prompt, cd to the new folder and type ‘configure’
> Then type mingw32-make
>
>
>
> 2. Install Latest sip-snapshot:
> http://www.riverbankcomputing.com/Downloads/Snapshots/sip4/
> 2a. unzip and then goto command prompt in unzipped dir
> 2b. python configure.py -p win32-g++
> 2c. mingw32-make
> 2d. mingw32-make install
>
> Install PyQt4 –
> http://www.riverbankcomputing.co.uk/pyqt/download.php
> or Get latest snapshot
> http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt4/
> cd to unzipped dir
> (If trouble installing: prbly need to add QMAKE_CFLAGS_THREAD = -mthreads
> to C:\Qt\4.3.0\mkspecs\default\qmake.conf)
> python configure.py
> mingw32-make
> mingw32-make install
>
> 3. Install Latest snapshot of qscintilla:
>
> http://www.riverbankcomputing.com/Downloads/Snapshots/QScintilla2/
> 3a. unzip and then goto command prompt in unzipped dir
> 3b. cd Qt4
> 3c. qmake qscintilla.pro
> 3d. mingw32-make
> 3e. mingw32-make install
>
> 4. Move qscintilla2.dll from the %qtdir%\lib to %qtdir%\bin
>
> 5. In qscintilla dir, cd example-qt4
> 5a. qmake application.pro
> 5b. mingw32-make; mingw32-install
>
> 5c. cd..
> 5e. cd python
> 5f. python configure.py
> (If this fails, find ‘pyqtconfig.py’ in the PyQt download file
> and move it to site-packages) 5g. mingw32-make and mingw32-make
> install
>
> 5h. cd ..
> 5j. cd designer-qt4
> 5k. qmake designer.pro; mingw32-make; mingw32-make install
>
> 6. download and unzip Eric4
> 6a. python install.py
>
Step 7 is not required anymore. QScintilla2, PyQt4 and eric4 come with ready
built API files, which will be installed, if the installation order as given
in the README file is followed (that is 3 and 4 of above recipe before
installationof PyQt4).
Detlev
> 7. download and install the two gen_*.tar.gz files from
> http://www.die-offenbachs.de/detlev/eric-extras.html
> 7a. in the gen_python directory (or wherever the api is that was
> extracted from the tarballs) 7b. python gen_python_api.py -a
> python25/Lib/site-packages/eric4 (assuming that's where the eric stuff is)
> 7c. in the gen_sip directory:
> 7d. python gen_sip_api.py --pyqt4
> c:\python25\lib\site-packages\eric4 7e. run c:\python25\eric4.bat
>
> ---------------------------------------------------------------------------
>---------------------
>
> Detlev Offenbach wrote:
> On Montag, 11. Juni 2007, Laurent Dufréchou wrote:
>
> Hi Detlev,
>
> I've installed QT 4.3.0 from qt-win-opensource-4.3.0-mingw.exe.
> sip 4.6, qscintilla 1.73-gpl-2.1, and PyQt-win-gpl-4.2
> the last three have been compiled by hand...
> Here is my qmake.conf with my modif, if you want to compare...
> was in E:\Qt\4.3.0\mkspecs\default\
>
> A strange thing is that file wasn't checked in
> E:\Qt\4.3.0\mkspecs\default\win32-g++
>
> ?? well perhaps it's ok, anyway the problem would have been the same :)
>
> Laurent
>
> Detlev Offenbach a écrit :
>
> On Montag, 11. Juni 2007, Laurent Bonny wrote:
>
> Hi every one,
>
> I can confirm what the other laurent said. To install Eric4 on windows,
> you have to add a line in qmake.conf
> 'QMAKE_CFLAGS_THREAD ='
>
> Did you try to install the Qt4 executable installer (like
> qt-win-opensource-4.3.0-mingw.exe)? I am using this and it worked without
> problems. However, I compiled PyQt, sip and QScintilla2 myself because
> the installers usually are missing the pyqtconfig.py file.
>
>
> In the same way I was unable to make everything work without compiling
> myself PyQT, SIP and qscintilla (the exe package you can download for
> PyQT doesn't seems to be recognize by Qscintilla2, and through it
> Eric4). I know this should be a message sent on Qscintilla list, but I
> though this could be usefull too for futur Eric4 windiws users.
> Keep up the good work, and thanks for your great work
> Laurent
>
> 2007/6/10, Detlev Offenbach <detlev at die-offenbachs.de>:
>
> On Donnerstag, 7. Juni 2007, Laurent Dufréchou wrote:
>
> Hello Detlev,
>
> I've just tried your last 4.0.0 eric release. That was a bit hard
> (under windows) but finally it works!
> (I had to add 'QMAKE_CFLAGS_THREAD =' in qmake.conf(!).)
>
> I'm trying to naviguate around the menu and I've found a bug.
> Well... don't know if it's a bug, perhaps a misuse of the GUI...
> If i want to launch designer via Extras/Tools/Designer... I've got
> this message:
> Window title: Process Generation Error
> Text: Could not start Qt-Designer.
> Ensure that it is available as bin\designer.exe
>
> The fact is that designer.exe is in my path variable and also I've set
> QT4DIR to e:\QT\4.3.0\ (i've also tried e:\QT\4.3.0\bin). No way to
> make it launch designer...
>
> :(
>
> Moreover at work, I've selected Export Qt4 Directory entered above in
> preferences/QT menu and the application won't start anymore.
> I've launch eric4-config.bat and hopefully it restored the
> situation!<- Is this OK?
>
> Any idea on how to make tools work under windows??
>
> That is a bug on win32. It will be fixed in the next release. If you
> have Qt3
> installed next to Qt4, should have two designer actions/menu entries.
> One for
> the Qt4 variant and one for the Qt3 one. However, due to the bug in
> UserInterface.py, the Qt4 related designer action is not generated.
> This just
> happens on win32.
>
> Regards,
> Detlev
> --
> Detlev Offenbach
> detlev at die-offenbachs.de
>
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
>
> Detlev
>
>
> Hi,
>
> in my Qt 4.2.3 installation qmake.conf of the default directory has this
> entry
>
> QMAKE_CFLAGS_THREADS = -mthreads
>
> Regards,
> Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list