On 7/11/07, Phil Thompson <[EMAIL PROTECTED]> wrote:
On Wednesday 11 July 2007 8:05 pm, Martin Blais wrote:
>
> 0. - I adjusted my PATH to include C:/MinGW/bin
>    - I'm running all of the code below in a Cygwin bash shell.

Don't, use cmd.exe.

Hi Phil. Thanks for answering so quickly.

Here is my experience doing the same from a ``cmd.exe`` (still not working).

 First, note that my PATH does NOT contain Cygwin::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>echo %PATH%
   C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program
Files\Microsoft SQL
Server\90\Tools\binn\;c:\Python25\Lib\site-packages\mingw-3.4.5-win32.egg\bin;C:\blp\API


 I ran the simplest configure command::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>C:/Python25/python.exe configure.py
   Determining the layout of your Qt installation...
   Error: 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.

 Oops, it seems I need to specify the location of qmake. Okie, so I
 add it to the cmdline::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>C:/Python25/python.exe
configure.py -q C:/Qt/4.3.0/qmake/qmake.exe -w
   Determining the layout of your Qt installation...
   C:\Qt\4.3.0\qmake\qmake.exe -o qtdirs.mk qtdirs.pro
   QMAKESPEC has not been set, so configuration cannot be deduced.
   Error processing project file: qtdirs.pro
   Error: C:\Qt\4.3.0\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.


 Oh, oh; I need to set QMAKESPEC, okay::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>set QMAKESPEC=win32-g++

 Still does not work::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>C:/Python25/python.exe
configure.py -q C:/Qt/4.3.0/qmake/qmake.exe -w
   Determining the layout of your Qt installation...
   C:\Qt\4.3.0\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:\Qt\4.3.0\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.


 It's that problem with setting the difficult-to-find QMAKEPATH (see
 ``C:/iwmake/build_mingw_opensource\mkspecs``); I've already been
 through this, so I set it::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>set QMAKEPATH=C:/Qt/4.3.0

 But it still won't go through::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>C:/Python25/python.exe
configure.py -q C:/Qt/4.3.0/qmake/qmake.exe -w
   Determining the layout of your Qt installation...
   C:\Qt\4.3.0\qmake\qmake.exe -o qtdirs.mk qtdirs.pro
   mingw32-make -f qtdirs.mk release
   'mingw32-make' is not recognized as an internal or external command,
   operable program or batch file.
   Error: Failed to create release\qtdirs.exe. 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.


 I need to adjust my PATH to access MinGW's make::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>set PATH=C:\MinGW\bin;%PATH%

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>echo %PATH%
   
C:\MinGW\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program
Files\Microsoft SQL
Server\90\Tools\binn\;c:\Python25\Lib\site-packages\mingw-3.4.5-win32.egg\bin;C:\blp\API

 But it still does not go through::

   C:\tmp\PyQt-win-gpl-4-snapshot-20070710>C:/Python25/python.exe
configure.py -q C:/Qt/4.3.0/qmake/qmake.exe -w
   Determining the layout of your Qt installation...
   C:\Qt\4.3.0\qmake\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:/tmp/PyQt-win-gpl-4-snapshot-20070710'
   g++ -c -O2 -Wall -fno-exceptions -fno-rtti -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQT_NEEDS_QMAIN -I"c:\iwmake\build_mingw_opensource\include\QtCore"
-I"c:\i
   wmake\build_mingw_opensource\include"
-I"c:\iwmake\build_mingw_opensource\include\ActiveQt" -I"release"
-I"." -I"..\..\Qt\4.3.0\mkspecs\win32-g++" -o release\qtdirs.o
qtdirs.cpp
   qtdirs.cpp:1:17: QFile: No such file or directory
   qtdirs.cpp:2:24: QLibraryInfo: No such file or directory
   qtdirs.cpp:3:23: QTextStream: No such file or directory
   qtdirs.cpp: In function `int main(int, char**)':
   qtdirs.cpp:7: error: `QFile' undeclared (first use this function)
   qtdirs.cpp:7: error: (Each undeclared identifier is reported only
once for each function it appears in.)
   qtdirs.cpp:7: error: expected `;' before "outf"
   qtdirs.cpp:9: error: `outf' undeclared (first use this function)
   qtdirs.cpp:9: error: `QIODevice' has not been declared
   qtdirs.cpp:9: error: `WriteOnly' undeclared (first use this function)
   qtdirs.cpp:9: error: `QIODevice' has not been declared
   qtdirs.cpp:9: error: `Truncate' undeclared (first use this function)
   qtdirs.cpp:9: error: `QIODevice' has not been declared
   qtdirs.cpp:9: error: `Text' undeclared (first use this function)
   qtdirs.cpp:12: error: `QTextStream' undeclared (first use this function)
   qtdirs.cpp:12: error: expected `;' before "out"
   qtdirs.cpp:14: error: `out' undeclared (first use this function)
   qtdirs.cpp:14: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:14: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:14: error: `PrefixPath' undeclared (first use this function)
   qtdirs.cpp:14: error: `location' undeclared (first use this function)
   qtdirs.cpp:15: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:15: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:15: error: `HeadersPath' undeclared (first use this function)
   qtdirs.cpp:16: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:16: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:16: error: `LibrariesPath' undeclared (first use this function)
   qtdirs.cpp:17: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:17: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:17: error: `BinariesPath' undeclared (first use this function)
   qtdirs.cpp:18: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:18: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:18: error: `DataPath' undeclared (first use this function)
   qtdirs.cpp:19: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:19: error: `QLibraryInfo' has not been declared
   qtdirs.cpp:19: error: `PluginsPath' undeclared (first use this function)
   mingw32-make[1]: *** [release\qtdirs.o] Error 1
   mingw32-make[1]: Leaving directory `C:/tmp/PyQt-win-gpl-4-snapshot-20070710'
   mingw32-make: *** [release] Error 2
   Error: Failed to create release\qtdirs.exe. 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.


Am I missing something, or it seems that this
``c:\iwmake\build_mingw_opensource`` path is still in effect. How do I
fix that?
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to