[PyQt] Error: "The input line is too long" when compiling latest snapshot under WinXP

Devon Rueckner devon.rueckner at temboo.com
Fri Aug 21 19:25:29 BST 2009


Hi --

I ran into this issue while compiling PyQt 4.5.4 against Qt 4.5.1 on
windows xp using mingw and cmd.exe.

I was able to work around it by changing line 37 of QtGui\Makefile from
	$(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
to
	$(LINK) $(LFLAGS) -o $(TARGET) @ofiles $(LIBS)
and copying the contents of $(OFILES) into a new file called "ofiles".

One strange thing was that this was only necessary on one XP windows
box - another did not seem to hit input character limit.

~ Devon



On Sat, Apr 4, 2009 at 2:10 PM, <dcassidy36 at mass.rr.com> wrote:
> I am not sure how to work around this one:
>
> The input line is too long.
> mingw32-make[1]: *** [QtGui.pyd] Error 255
> mingw32-make[1]: Leaving directory `C:/PyQt-20090403/QtGui'
> mingw32-make: *** [all] Error 2
>
> The latest snapshot I could build was from 2009331, and looking at the make files, it seems to stem from these two lines in the QtGui makefile:
>
> "CPPFLAGS = -DNDEBUG -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"C:\PyQt-20090403\qpy\QtGui" -IC:\Python26\include -Ic:/Qt/2009.01/qt\mkspecs\default -Ic:/Qt/2009.01/qt/include\QtGui -Ic:/Qt/2009.01/qt/include\QtCore -Ic:/Qt/2009.01/qt/include
>
> LIBS = -L"C:\PyQt-20090403\qpy\QtGui\release" -LC:\Python26\libs -Lc:/Qt/2009.01/qt/lib -lqpygui -lpython26 -lQtGui4 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32 -lQtCore4 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32"
>
> It looks like adding -lqpygui and the path to it seems to cause the command prompt to hit the max character limit. Can anyone tell me if there is a workaround for building PyQt4.5 on windows?
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



More information about the PyQt mailing list