#4754: can no build with cmake for VS 2017
-------------------------------------+-------------------------
Reporter: alistar | Owner:
Type: bug | Status: new
Priority: normal | Milestone: unspecified
Component: other | Version: unspecified
Operating System: All/Non-Specific |
-------------------------------------+-------------------------
follow
{{{
Windows using MSVC
You need Visual Studio 2015 or 2017 (recommended) CMake
(https://cmake.org/) and QT 5.9.1 (https://www.qt.io/)
Build dependencies are provided with vcpkg project from Microsoft. Run
"get-dependencies.ps1" script from powershell in order to download source
and build them.
From now you can use cmake the canonical way or directly from Visual
Studio 2017 ; the only requirement is to pass the
CMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystem/vcpkg.cmake variable.
The canonical way is the command 'cmake -H.
-DCMAKE_TOOLCHAIN_FILE=vcpkg\scripts\buildsystem\vcpkg.cmake -Bbuild -G
"Visual Studio 14 2015" '
With VS2017 open the warzone 2100 folder, then "CMake menu > Change
Cmake settings" will create a json file. There add
"-DCMAKE_TOOLCHAIN_FILE=vcpkg\scripts\buildsystems\vcpkg.cmake" to
cmakeCommandArgs.
}}}
and it always says error
{{{
CMake Error at
D:/CMake/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:137
(message):
Could NOT find PhysFS (missing: PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
Call Stack (most recent call first):
D:/CMake/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:377
(_FPHSA_FAILURE_MESSAGE)
D:/CMake/share/cmake-3.8/Modules/FindPhysFS.cmake:47
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
vcpkg/scripts/buildsystems/vcpkg.cmake:252 (_find_package)
lib/framework/CMakeLists.txt:3 (find_package)
}}}
all have been builded
{{{
The following packages are already installed:
freetype[core]:x86-windows
gettext[core]:x86-windows
glew[core]:x86-windows
harfbuzz[core]:x86-windows
libiconv[core]:x86-windows
libogg[core]:x86-windows
libpng[core]:x86-windows
libtheora[core]:x86-windows
libvorbis[core]:x86-windows
openal-soft[core]:x86-windows
physfs[core]:x86-windows
sdl2[core]:x86-windows
zlib[core]:x86-windows
Starting package 1/13: physfs:x86-windows
Package physfs:x86-windows is already installed
Elapsed time for package physfs:x86-windows: 334.7 us
Starting package 2/13: openal-soft:x86-windows
Package openal-soft:x86-windows is already installed
Elapsed time for package openal-soft:x86-windows: 464.7 us
Starting package 3/13: libvorbis:x86-windows
Package libvorbis:x86-windows is already installed
Elapsed time for package libvorbis:x86-windows: 324.2 us
Starting package 4/13: libogg:x86-windows
Package libogg:x86-windows is already installed
Elapsed time for package libogg:x86-windows: 337 us
Starting package 5/13: harfbuzz:x86-windows
Package harfbuzz:x86-windows is already installed
Elapsed time for package harfbuzz:x86-windows: 320.4 us
Starting package 6/13: libiconv:x86-windows
Package libiconv:x86-windows is already installed
Elapsed time for package libiconv:x86-windows: 415.9 us
Starting package 7/13: libtheora:x86-windows
Package libtheora:x86-windows is already installed
Elapsed time for package libtheora:x86-windows: 344.4 us
Starting package 8/13: libpng:x86-windows
Package libpng:x86-windows is already installed
Elapsed time for package libpng:x86-windows: 341.8 us
Starting package 9/13: sdl2:x86-windows
Package sdl2:x86-windows is already installed
Elapsed time for package sdl2:x86-windows: 332.9 us
Starting package 10/13: glew:x86-windows
Package glew:x86-windows is already installed
Elapsed time for package glew:x86-windows: 316.3 us
Starting package 11/13: freetype:x86-windows
Package freetype:x86-windows is already installed
Elapsed time for package freetype:x86-windows: 317.3 us
Starting package 12/13: gettext:x86-windows
Package gettext:x86-windows is already installed
Elapsed time for package gettext:x86-windows: 317.3 us
Starting package 13/13: zlib:x86-windows
Package zlib:x86-windows is already installed
Elapsed time for package zlib:x86-windows: 324 us
}}}
what is wrongs? It build before good.
--
Ticket URL: <http://developer.wz2100.net/ticket/4754>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project