Re: CMake issue
Am 06.03.2016 um 16:05 schrieb Uwe Stöhr: I don't know anything about Cmake but since the target "ALL_BUILD" is correctly created it must be possible to add to the LyX.sln file also a target named "LyX" and "TeX2LyX". As workaround I use now msbuild src\LyX.vcxproj /p:Configuration=Debug msbuild src\tex2lyx\tex2lyx.vcxproj /p:Configuration=Debug instead of msbuild lyx.sln /p:Configuration=Debug /t:LyX /t: tex2lyx It would nevertheless be nice if the lyx.sln file could have several targets. regards Uwe
Re: CMake issue
Am 05.03.2016 um 20:01 schrieb Kornel Benko: If you are using Ninja, will there be .sln files? Yes. For now I removed Ninja from the build script but the problem persists. Remove ALL .sln files and CMakeCache.txt. Will some of them be recreated if used 'cmake -G"Visual Studio 14"? All of them will be recreated but the problem persists. I don't know anything about Cmake but since the target "ALL_BUILD" is correctly created it must be possible to add to the LyX.sln file also a target named "LyX" and "TeX2LyX". I even don't know, if your cmake version knows this generator. You can see the known generators by calling 'cmake -G' without any other input. I get this: Generators Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files. Optional [arch] can be "Win64" or "ARM". Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files. Optional [arch] can be "Win64" or "ARM". ... thanks and regards Uwe
Re: CMake issue
Am Samstag, 5. März 2016 um 18:55:19, schrieb Uwe Stöhr> Am 04.03.2016 um 13:06 schrieb Kornel Benko: > > > 'LyX' is not the same as 'lyx'. What about the target 'lyx'? > > There is also no target "lyx". The sln file has only one target "ALL_BUILD". > > regards Uwe If you are using Ninja, will there be .sln files? Probably not. And since the build dir contains CMakeCache.txt from previous runs, anything is possible. Remove ALL .sln files and CMakeCache.txt. Will some of them be recreated if used 'cmake -G"Visual Studio 14"? I even don't know, if your cmake version knows this generator. You can see the known generators by calling 'cmake -G' without any other input. Kornel signature.asc Description: This is a digitally signed message part.
Re: CMake issue
Am 04.03.2016 um 13:09 schrieb Peter Kümmel: You've passed -G two times. Yes, but also removing Ninja doesn't lead to a sln file with more than only one target "ALL_BUILD". regards Uwe
Re: CMake issue
Am 04.03.2016 um 13:06 schrieb Kornel Benko: 'LyX' is not the same as 'lyx'. What about the target 'lyx'? There is also no target "lyx". The sln file has only one target "ALL_BUILD". regards Uwe
Re: CMake issue
Am 04.03.2016 um 03:58 schrieb Uwe Stöhr: I have this code in my debug build script: cmake %LYX_SOURCE% -GNinja -G"Visual Studio 14" -DLYX_ENABLE_CXX11=ON -DLYX_USE_QT=QT5 -DLYX_ENABLE_EXPORT_TESTS=0 -DLYX_MERGE_FILES=0 -DLYX_NLS=1 -DLYX_INSTALL=0 -DLYX_RELEASE=0 -DLYX_CONSOLE=FORCE -DLYX_3RDPARTY_BUILD=1 msbuild lyx.sln /p:Configuration=Debug /t:LyX /t:tex2lyx and get the error that a target "LyX" does not exist in the lyx.sln file. That is true, there is only a project folder named "LyX". From within MSVC I can compile this folder but not from outside because the target is missing. I get the same problem with MSVC2010. In LyX's 2.1.x branch the target is there, but not in master. thanks and regards Uwe You've passed -G two times. Peter
Re: CMake issue
Am Freitag, 4. März 2016 um 03:58:08, schrieb Uwe Stöhr> I have this code in my debug build script: > > cmake %LYX_SOURCE% -GNinja -G"Visual Studio 14" -DLYX_ENABLE_CXX11=ON > -DLYX_USE_QT=QT5 -DLYX_ENABLE_EXPORT_TESTS=0 -DLYX_MERGE_FILES=0 > -DLYX_NLS=1 -DLYX_INSTALL=0 -DLYX_RELEASE=0 -DLYX_CONSOLE=FORCE > -DLYX_3RDPARTY_BUILD=1 > msbuild lyx.sln /p:Configuration=Debug /t:LyX /t:tex2lyx > > and get the error that a target "LyX" does not exist in the lyx.sln > file. That is true, there is only a project folder named "LyX". From > within MSVC I can compile this folder but not from outside because the > target is missing. 'LyX' is not the same as 'lyx'. What about the target 'lyx'? > I get the same problem with MSVC2010. In LyX's 2.1.x branch the target > is there, but not in master. > > thanks and regards > Uwe Kornel signature.asc Description: This is a digitally signed message part.
CMake issue
I have this code in my debug build script: cmake %LYX_SOURCE% -GNinja -G"Visual Studio 14" -DLYX_ENABLE_CXX11=ON -DLYX_USE_QT=QT5 -DLYX_ENABLE_EXPORT_TESTS=0 -DLYX_MERGE_FILES=0 -DLYX_NLS=1 -DLYX_INSTALL=0 -DLYX_RELEASE=0 -DLYX_CONSOLE=FORCE -DLYX_3RDPARTY_BUILD=1 msbuild lyx.sln /p:Configuration=Debug /t:LyX /t:tex2lyx and get the error that a target "LyX" does not exist in the lyx.sln file. That is true, there is only a project folder named "LyX". From within MSVC I can compile this folder but not from outside because the target is missing. I get the same problem with MSVC2010. In LyX's 2.1.x branch the target is there, but not in master. thanks and regards Uwe