Bernhard Roider wrote:
> Bo Peng wrote:
>>> i tried the cmake thing, but an attempt to build lyx from the created
>>> lyx-qt4.sln with msvc produced
>>> the following error:
>>
>> version.C needs to be generated from version.C.in and MSVS Gui does
>> not know this. I guess you need to first build lyx from command line
>> the first time to obtain this file, and then fire up msvs.
>>
>> Peter, am I right?
>> Bo
>>
> But version.C exists (i attached it since it is really small) and i get
> the error when compiling it.
>
> Bernhard
>
>
> ------------------------------------------------------------------------
>
> /* -*- C++ -*- */
> /**
> * \file version.C
> * This file is part of LyX, the document processor.
> * Licence details can be found in the file COPYING.
> *
> * \author Jean-Marc Lasgouttes
> *
> * Full author contact details are available in file CREDITS.
> *
> * Warning! This file is autogenerated from version.C.in.
> * All changes to this file will be lost.
> */
>
> ///
> char const * lyx_version = "1.5.0svn";
> ///
> char const * lyx_release_date = "not released yet";
>
> /// This is the version information shown by 'lyx -version'
> char const * lyx_version_info = "CMake Build";
Does this file resides in the source tree (trunk/src/version.C)?
Then delete it and call cmake again ('cmake .' in the build
folder is enough). There must only be a version.C in your build
folder.
Peter