Qt-interest Archive, December 2007
Own compilers and Qt Visual Studio integration
Message 1 in thread
Hi all,
I've integrated a small python script which generates c++ code from a header
file into our build chain:
pyidl.output = $$OBJECTS_DIR/${QMAKE_FILE_IN}.cpp
pyidl.input = PYIDL
pyidl.commands = $$QMAKE_PYIDL ${QMAKE_FILE_IN} $$OBJECTS_DIR
pyidl.variable_out = SOURCES
pyidl.name = ./idl.py
QMAKE_EXTRA_COMPILERS += pyidl
PYIDL += <here comes the header file>
It works nice under Linux using qmake/make for build. Now I've imported
the .pro file into Visual Studio 2005 using the Qt Visual Studio integration.
Everyting works except the generation of sources from the above script. VS
complains:
c1xx : fatal error C1083: Cannot open source file: '.\obj\<generated c++
file>': No such file or directory
which is definitively right - the file was not created. Is there a way to make
it workable in VS too?
BTW: using the command line and qmake/nmake in Windows works, so this is only
a minor drawback, but it would be nice to get it working...
Mathias
--
[ signature omitted ]