[Kst] Windows compilation - MSB1011 errors and qSqrt missing
Steve Maher
Stephen.F.Maher at nasa.gov
Sat Aug 24 13:57:54 UTC 2013
Hi,
I'm having trouble compiling revision 1363667 on Windows using Visual
Studio 10 and Qt 4.8.5 and am hoping for some guidance.
cmake command line:
*
*
*cmake ../kst/cmake -Dkst_3rdparty_build=ON -Dkst_pch=OFF -Dkst_verbose=ON*
The first issue was qSqrt was not found in libkstapp/view.cpp and
circleitem.cpp. I added an include for QtCore/qmath.h to both and that
fixed the compilation error.
The second issue is that 43 projects (3rdparty mostly I guess) fail (when
building in VS) with the following error:
*MSBUILD : error MSB1011: Specify which project or solution file to use
because this folder contains more than one project or solution file.*
Below is an example for building 3rdparty getdata. I'm guessing it's
related to the fact there are multiple *.vcxproj files in
build/3rdparty/getdata/src/getdata-build/ but I'm far from a Visual Studio
expert. I just opened the kst.sln file after cmake completed and right
clicked on a project and selected "build solution"; is there a more
involved incantation? I also tried with kst_pch=ON.
Thanks for any tips,
Steve
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32
------
2>------ Build started: Project: getdata, Configuration: Debug Win32 ------
2> Building Custom Rule
C:/cygwin/home/smaher/kst/kst/cmake/3rdparty/CMakeLists.txt
2> CMake does not need to re-run because
C:\cygwin\home\smaher\kst\build\3rdparty\CMakeFiles\generate.stamp is
up-to-date.
2> Creating directories for 'getdata'
2> Performing download step (download, verify and extract) for 'getdata'
2> -- downloading...
2> src='
http://sourceforge.net/projects/getdata/files/getdata/0.8.0/getdata_win-0.8.0.zip
'
2>
dst='C:/cygwin/home/smaher/kst/build/3rdparty/getdata/src/getdata_win-0.8.0.zip'
2> timeout='none'
2> -- [download 0% complete]
2> -- [download 7% complete]
2> -- [download 100% complete]
2> -- downloading... done
2> -- verifying file...
2>
file='C:/cygwin/home/smaher/kst/build/3rdparty/getdata/src/getdata_win-0.8.0.zip'
2>CUSTOMBUILD : -- verifying file... warning : did not verify file - no
URL_HASH specified?
2> -- extracting...
2>
src='C:/cygwin/home/smaher/kst/build/3rdparty/getdata/src/getdata_win-0.8.0.zip'
2> dst='C:/cygwin/home/smaher/kst/build/3rdparty/getdata/src/getdata'
2> -- extracting... [tar xfz]
2> -- extracting... [analysis]
2> -- extracting... [rename]
2> -- extracting... [clean up]
2> -- extracting... done
2> No update step for 'getdata'
2> No patch step for 'getdata'
2> Performing configure step for 'getdata'
2> -- Configuring done
2> -- Generating done
2>CUSTOMBUILD : CMake warning :
2> Manually-specified variables were not used by the project:
2>
2> CMAKE_BUILD_TYPE
2>
2>
2> -- Build files have been written to:
C:/cygwin/home/smaher/kst/build/3rdparty/getdata/src/getdata-build
2> Performing build step for 'getdata'
2> Microsoft (R) Build Engine Version 4.0.30319.1
2> [Microsoft .NET Framework, Version 4.0.30319.1008]
2> Copyright (C) Microsoft Corporation 2007. All rights reserved.
2>
2>MSBUILD : error MSB1011: Specify which project or solution file to use
because this folder contains more than one project or solution file.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20130824/12651e2c/attachment.html>
More information about the Kst
mailing list