Hey,
after successfully installing szip:x64-windows and some other packages with vcpkg I ran into another problem while trying to install pcl:x64-windows...
Using Windows 7 and VS 2017
PS D:\vcpkg> .\vcpkg install pcl:x64-windows
The following packages will be built and installed:
pcl[core]:x64-windows
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:282 (vcpkg_execute_required_process
ports/vtk/portfile.cmake:107 (vcpkg_configure_cmake)
scripts/ports.cmake:73 (include)
Error: Building package vtk:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: vtk:x64-windows
Vcpkg version: 2019.06.21-nohash
Additionally, attach any relevant sections from the log files above.
config-x64-windows-out.log
vcpkg_configure_cmake.txt
environment.txt
CMake Error at CMakeLists.txt:156 (export):
export EXPORT or TARGETS specifier missing.
port update ?
port bug
How can i counteract this?
Or more precise: How can I do a port update?
Error at CMakeLists.txt:156
edit D:/vcpkg/buildtrees/vtk/src/v8.2.0-b37306c27c/CMakeLists.txt str 156
Or more precise: How can I do a port update?
vcpkg help

@Voskrese First of all: Thanks for your help!
Am I right with the vcpkg edit <pkg> -command?
This is what i get:
PS D:\vcpkg> .\vcpkg edit vtk
Error: Visual Studio Code was not found and the environment variable EDITOR is not set or invalid.
The following paths were examined:
C:/Program Files/Microsoft VS Code Insiders/Code - Insiders.exe
C:/Program Files/Microsoft VS Code/Code.exe
C:/Program Files (x86)/Microsoft VS Code Insiders/Code - Insiders.exe
C:/Program Files (x86)/Microsoft VS Code/Code.exe
C:/Users/frsp/AppData/Local/Programs/Microsoft VS Code Insiders/Code - Insiders.exe
C:/Users/frsp/AppData/Local/Programs/Microsoft VS Code/Code.exe
You can also set the environmental variable EDITOR to your editor of choice.
Or do you mean PS D:\vcpkg> .\vcpkg.exe install vtk[core]:x64-windows --overlay-ports=<path> ?
But I really don't know what to write at <path>...
I'm really confused at this point
Same with #6889
@wangli28 Thanks for your help
I already ran into issue #6889 , but for me it did not help...
_...\vcpkgbuildtrees\vtk\src\v8.2.0-b37306c27c\CMakeLists.txt_:
CMakeLists.txt
It runs this error after the modification of the _CMakeLists.txt_:
PS D:\vcpkg> .\vcpkg install vtk[core]:x64-windows
The following packages will be built and installed:
vtk[core]:x64-windows
Starting package 1/1: vtk:x64-windows
Building package vtk[core]:x64-windows...
-- Using cached D:/vcpkg/downloads/Kitware-VTK-v8.2.0.tar.gz
-- Using source at D:/vcpkg/buildtrees/vtk/src/v8.2.0-b37306c27c
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: C:/Program Files/CMake/bin/cmake.exe;--build;.;--config;Debug;--target;install;--;-v
Working Directory: D:/vcpkg/buildtrees/vtk/x64-windows-dbg
See logs for more information:
D:\vcpkg\buildtrees\vtk\install-x64-windows-dbg-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:96 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
ports/vtk/portfile.cmake:134 (vcpkg_install_cmake)
scripts/ports.cmake:73 (include)
Error: Building package vtk:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: vtk:x64-windows
Vcpkg version: 2019.06.21-nohash
Additionally, attach any relevant sections from the log files above.
install-x64-windows-dbg-out.log
in install-x64-windows-dbg-out.log:
D:\vcpkg\buildtrees\vtk\x64-windows-dbg\ThirdParty\glew\vtk_glew.h(40): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
...
When i browse to this location the vtk_glew.h is there...
ninja: build stopped: subcommand failed.
After trying to install vtk:x86-windows I ended up with a nearly similar error.
PS C:\...> vcpkg install vtk:x86-windows
The following packages will be built and installed:
...
Building package bzip2[core]:x86-windows... done
Installing package bzip2[core]:x86-windows...
Installing package bzip2[core]:x86-windows... done
Elapsed time for package bzip2:x86-windows: 19.86 s
...
Building package libpng[core]:x86-windows... done
Installing package libpng[core]:x86-windows...
Installing package libpng[core]:x86-windows... done
Elapsed time for package libpng:x86-windows: 19.74 s
...
Building package freetype[core]:x86-windows... done
Installing package freetype[core]:x86-windows...
Installing package freetype[core]:x86-windows... done
Elapsed time for package freetype:x86-windows: 20.37 s
...
Starting package 4/27: **glew:x86-windows
Building package glew[core]:x86-windows...
-- Using cached D:/vcpkg/downloads/glew-2.1.0.tgz
-- Using source at D:/vcpkg/buildtrees/glew/src/glew-58abdfb190
-- Configuring x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:58 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" D:/vcpkg/buildtrees/g
lew/src/glew-58abdfb190/build/cmake -DBUILD_UTILS=OFF -DBUILD_SHARED_LIBS=ON -DV
CPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/vcpkg/scripts/toolchains/windows.cmake -DVCPKG_
TARGET_TRIPLET=x86-windows -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=
v141 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGIS
TRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM
_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -D
CMAKE_TOOLCHAIN_FILE=D:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_
ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -D
VCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS
_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_TARGET_ARCHITE
CTURE=x86 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -G
"Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=D:/vcpk
g/packages/glew_x86-windows/debug
Working Directory: D:/vcpkg/buildtrees/glew/x86-windows-dbg
Error code: 1
See logs for more information:
D:\vcpkg\buildtrees\glew\config-x86-windows-dbg-out.log
D:\vcpkg\buildtrees\glew\config-x86-windows-dbg-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:291 (vcpkg_execute_required_process)
ports/glew/portfile.cmake:19 (vcpkg_configure_cmake)
scripts/ports.cmake:73 (include)
Error: Building package glew:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: glew:x86-windows
Vcpkg version: 2019.06.21-nohash
Additionally, attach any relevant sections from the log files above.
PS C:\Users\frsp>
config-x86-windows-dbg-err.log
config-x86-windows-dbg-out.log
same while installing vtk[core]:x64-windows the glew package is the problem...
Okay this failure ist occured by the wrong version of CMake.
The vtk-package needs cmake v3.14.0
On my device cmake v3.15.x was installed.
After uninstalling cmake, vcpkg downloaded the needed version of CMake and it worked.
thx !!!
This solution worked for me as well (uninstalling cmake and allow vcpkg to grab the correct version). I did have an error after it downloaded cmake, and chose to restart my PC. After that everything worked great!
Downgrading CMake from 3.15.2 to 3.14.6 worked for me. Nevertheless, the error reporting from vcpkg should probably be improved.
Okay this failure ist occured by the wrong version of CMake.
The vtk-package needs cmake v3.14.0
On my device cmake v3.15.x was installed.
After uninstalling cmake, vcpkg downloaded the needed version of CMake and it worked.
how to uninstal cmake,I also need to uninstall cmake
Downgrading CMake from 3.15.2 to 3.14.6 worked for me. Nevertheless, the error reporting from vcpkg should probably be improved.
how Downgrading ?
Most helpful comment
Okay this failure ist occured by the wrong version of CMake.
The vtk-package needs cmake v3.14.0
On my device cmake v3.15.x was installed.
After uninstalling cmake, vcpkg downloaded the needed version of CMake and it worked.