[Eric] Re: Simplified installation?

techtonik techtonik at php.net
Mon Jun 25 16:45:16 BST 2007


Andreas Pakulat <apaku at ...> writes:

> > > C:\WorkSpace\Eric IDE\Prerequisites\PyQt-win-gpl-4.2>configure.py -w -p
> > > win32-g++ Determining the layout of your Qt installation...
> > > C:\Tools\Qt4\qmake\qmake.exe -o qtdirs.mk qtdirs.pro
> > > Could not find mkspecs for your QMAKESPEC(win32-g++) after trying:
> > >         C:/iwmake/build_mingw_opensource\mkspecs
> > > Error processing project file: qtdirs.pro
> > > Error: C:\Tools\Qt4\qmake\qmake.exe failed to create a makefile. Make
> > > sure you have a working Qt v4 qmake on your PATH or use the -q argument
> > > to explicitly specify a working Qt v4 qmake.
> > 
> > Those imply Qt installation problems. Your path to qmake looks odd, you
> > would expect it to be in a "bin" directory.
> 
> Well, actually that is ok if you've built qt4 on windows. Because
> there's no make install possible on windows and thus bin/qmake.exex ==
> qmake/qmake.exe.
> 

Actually changing qmake path to C:\Tools\Qt4\bin\qmake.exe helped (one of those
kinds of magic that really suxx). In addition it appeared that I didn't have
mingw32-make.exe in my installation on MinGW, because it is never installed by
default. So I have to add MinGW distribution installed by Qt to PATH. 


C:\WorkSpace\_2compile\Eric IDE\Prerequisites\PyQt-win-gpl-4.2>configure.py -w
-p win32-g++ -q C:\Tools\Qt4\bin\qmake.exe
Determining the layout of your Qt installation...
C:\Tools\Qt4\bin\qmake.exe -o qtdirs.mk qtdirs.pro
mingw32-make -f qtdirs.mk release
mingw32-make -f qtdirs.mk.Release
mingw32-make[1]: Entering directory `C:/WorkSpace/_2compile/Eric
IDE/Prerequisites/PyQt-win-gpl-4.2'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\
Tools\Qt4\include\QtCore" -I"c:\Tools\Qt4\include\QtCore"
-I"c:\Tools\Qt4\include" -I"c:\Tools\Qt4\include\ActiveQt" -I"release" -I"."
-I"c:\Tools\Qt4\mkspecs\d
efault" -o release\qtdirs.o qtdirs.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o
"release\qtdirs.exe" release\q
tdirs.o  -L"c:\Tools\Qt4\lib" -lmingw32 -lqtmain -lQtCore4
mingw32-make[1]: Leaving directory `C:/WorkSpace/_2compile/Eric
IDE/Prerequisites/PyQt-win-gpl-4.2'
release\qtdirs.exe
Error: release\qtdirs.exe failed to create qtdirs.out. Make sure your Qt v4
installation is correct.

Well, the last message was due to the absence of Qt4Core.dll in PATH. Added it
as well, but isn't it qmake what should have added it automatically? 


...
Error: C:\Tools\Qt4\mkspecs\default\qmake.conf: macro 'QMAKE_CFLAGS_THREAD' is
not defined.


Now the famous QMAKE_CFLAGS_THREAD. I doesn't seem that patching Qt4 is a good
idea, but there is no other choice so far.


--- C:/Tools/Qt4/mkspecs/default/qmake.conf_old	Tue Jun 19 10:58:14 2007
+++ C:/Tools/Qt4/mkspecs/default/qmake.conf	Mon Jun 25 18:22:14 2007
@@ -26,6 +26,7 @@
 QMAKE_CFLAGS_RELEASE	= -O2
 QMAKE_CFLAGS_DEBUG	= -g
 QMAKE_CFLAGS_YACC	= -Wno-unused -Wno-parentheses
+QMAKE_CFLAGS_THREAD	=
 
 QMAKE_CXX		= g++
 QMAKE_CXXFLAGS		= $$QMAKE_CFLAGS


At least I've managed to start compilation! Well, it took about 2 hours with
your hints. Good I've stumbled upon this group. Still waiting another 30 minutes
to complete compilation.. I guess I have to check it tomorrow. 

Thanks for support. Tomorrow I'll start with QScintilla and hopefully I will see
Eric by Wednesday. =)

Regards,
 anatoly t.



More information about the Eric mailing list