On Windows 7, the cmake build process fails to generate a
correct .vcxproj for the frontend_qt4 project.
The problem is that Visual Studio decided that the header
files are being included twice.
The solution is to not include the header files.
A patched CMakeLists.txt is attached.
NOTE: while this works, compiles, and runs, it removes all
header files from the frontend_qt4 project. It is recommended
that the lyx cmake symbols be updated so that a list of used
headers is generated by the lyxautomoc() macro.
Tested on Windows 7, Visual Studio 2010, cmake 2.8
In the subject you refer to Visual Studio 2012, but in the message
you only refer to Windows 7, and later on you refer to Windows 7,
Visual Studio 2010. I don't understand exactly when the problem
occurs.
I do not see this problem on Windows 7 either with Visual Studio
2010 or 2012.
Could you be more specific as to what cmake version you used? I should
clarify, I'm testing with Visual Studio 2010 Ultimate Edition. I
recently installed the 2012 trial, but then uninstalled it; I
apologize for the typo.
As for "not seeing" the problem, could you be more specific? You do
not see the problem after downloading a fresh tree, running cmake 2.8.9?
nloading a fresh tree, running cmake 2.8.9?
I compile LyX with CMake and MSVC for years now, and I 've never seen
the problem you mentioned. Yes, I use CMake 2.8.9.
I don't see how I can be more specific about a problem I don't have.
Maybe you could provide some error messages and/or other details to
figure out why it doesn't work for you.
Vincent