tags:

views:

82

answers:

1

It is PythonQt : pythonqt.sourceforge.net. I am using PythonQt-1.1 . Qt version 4.6.2 and Python 2.6.4.10 . Visual studio 2008 From instruction:

cd PythonQtRoot  
vcvars32  
qmake  
nmake

after I typed qmake, it generated makefile, then I entered nmake but it said "makefile(22) :fatal error U1000: syntax error: ')' missing in macro invocation Stop." What did I do wrong here?

Thanks in advance....

A: 

I remember running into similar problems when building other packages with recent releases of Qt on Win32. I'm running under cygwin, by the way. After a fair amount of debugging, I discovered that 'qmake' was using the wrong 'mkspec'. One thing that helped this situation was to force the use of the correct mkspec, like so:

export QMAKESPEC=win32-msvc2008 or export QMAKESPEC=win32-msvc

To find the list of all valid mkspecs, I looked in the directory: c:\Qt\4.6.0\mkspecs or c:\Qt\2010.01\qt\mkspecs

For one particular package, I had some conflicts with other tools installed on my system and had to edit the actual mkspec file to point to the correct tool using an absolute path, but it sounds like that is not your problem here. It sounds like yours is generating a gmake-compatible Makefile instead of an nmake-compatible Makefile, so this fix should work.

-- Glenn

Glenn