Boost - Cannot open include file: 'ctype.h' - boost

I'm installing Boost 1.57.0 through the VS 2015 CTP6 Command Prompt, and I'm at the Boost.Build compile stage, but I get many of the below errors when running tools\build\bootstrap.bat:
e:\boost_1_57_0\tools\build\src\engine\jam.h(34): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory

Related

Visual Studio Cmake build fails to find libraries installed via vcpkg package manager

I am building a demo cross-platform application (Windows + Raspberry Pi) in C++. I am using vcpkg package manager for libraries.
When I create project only for Windows (without cmake) things work perfectly.
I am now trying to build for Windows using cmake I am getting the bellow mentioned error for libraries installed via vcpkg package manager. I have confirmed that libraies are installed and are working properly when used with normal Windows console application.
During installation of vcpkg the following line was returned to enable vcpkg support in cmake.
"-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
Cmake FIle
# Set to C++20 standard
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_BUILD_TYPE debug)
# Set to C17 standard
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
# Set vcpkg library path
set(CMAKE_TOOLCHAIN_FILE C:/vcpkg/scripts/buildsystems/vcpkg.cmake)
# Add source to this project's executable.
add_executable (Test main.cpp)
if (CMAKE_VERSION VERSION_GREATER 3.12)
set_property(TARGET Test PROPERTY CXX_STANDARD 20)
endif()
Error
fatal error C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory
fatal error C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory
fatal error C1083: Cannot open include file: 'mqtt/async_client.h': No such file or directory
fatal error C1083: Cannot open include file: 'plog/Log.h': No such file or directory

unable to build native image using quarkus graalvm app

I am trying to build a java app with quarkus and graalvm. I am currently using graalvm version graalvm-ce-java11-windows-amd64-21.2.0 and updated the JAVA_HOME, GRAALVM_HOME and system path as well. For MSVC i have downloaded visual studio and selected the option of MSVC during the installation. BUt when I build the application using mvn clean package -Pnative I am getting below error message
Error: Error compiling query code (in C:\Users\sujay\AppData\Local\Temp\SVM-3930593782158447217\AMD64LibCHelperDirectives.c). Compiler command ''C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe' /WX /W4 /wd4244 /wd4245 /wd4800 /wd4804 /wd4214 '/FeC:\Users\sujay\AppData\Local\Temp\SVM-3930593782158447217\AMD64LibCHelperDirectives.exe' 'C:\Users\sujay\AppData\Local\Temp\SVM-3930593782158447217\AMD64LibCHelperDirectives.c'' output included error: [AMD64LibCHelperDirectives.c, C:\Users\sujay\AppData\Local\Temp\SVM-3930593782158447217\AMD64LibCHelperDirectives.c(1): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory]
com.oracle.svm.core.util.UserError$UserException: Error compiling query code (in C:\Users\sujay\AppData\Local\Temp\SVM-3930593782158447217\AMD64LibCHelperDirectives.c). Compiler command ''C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe' /WX /W4 /wd4244 /wd4245 /wd4800 /wd4804 /wd4214 '/FeC:\Users\sujay\AppData\Local\Temp\SVM-3930593782158447217\AMD64LibCHelperDirectives.exe' 'C:\Users\A740125\AppData\Local\Temp\SVM-3930593782158447217\AMD64LibCHelperDirectives.c'' output included error: [AMD64LibCHelperDirectives.c, C:\Users\A740125\AppData\Local\Temp\SVM-3930593782158447217\AMD64LibCHelperDirectives.c(1): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory]
at com.oracle.svm.core.util.UserError.abort(UserError.java:139)
at com.oracle.svm.hosted.c.NativeLibraries.reportErrors(NativeLibraries.java:369)
at com.oracle.svm.hosted.NativeImageGenerator.processNativeLibraryImports(NativeImageGenerator.java:1616)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeLibraries(NativeImageGenerator.java:1090)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:907)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:580)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$2(NativeImageGenerator.java:495)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1414)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
I dont know if the error is because of some version mismatch or wrong library. Please let me know if I am missing anything
This SO question seems to be about the same sort of issue, though not exactly. While I do not know if it will help, you may need to set another env variable pointing to the VC runtime

Why is node-expat not installing on windows?

As a final resort I hope that someone here can help me. I've been trying to install node-expat but no luck.
I have installed from a packagemanager before, but when it installs from source I get the following errors:
..\..\..\deps\libexpat\lib\xmltok.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
..\..\..\deps\libexpat\lib\xmlparse.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
..\..\..\deps\libexpat\lib\xmlrole.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
C:\Program Files (x86)\Windows Kits\8.0\Include\um\windows.h(160): fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\currentuser\AppData\Roaming\npm\node_modules\node-gyp\src\win_delay_load_hook.c) [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
Thank you in advance!

Cannot install node-mapnik on Windows 2008 x64

I have been spending the last few days trying to get node-mapnik running but with no success.
Initially inspired by Wilhelm Berg's demo (https://www.youtube.com/watch?v=GlTaRpg3CbQ) which renders pure vector maps using node-mapnik I was interested in getting this running on a Windows Server.
I have worked through all of the StackExchange issues on these topics including Wilhelm's checklist for getting this working on Windows 7 x64 but I am at a dead end and my knowledge is really limited in being able to further diagnose the problem.
My environment is:
Windows 2008 Server R2 x64
Visual Studio Express 2012 Desktop Edition (32 & 64 bit)
Node.js v0.10.26 (64 bit)
Python27 (32 bit)
I have taken the following steps:
Installed Mapnik 2.2.0 SDK downloaded from git and placed in C:\apps\mapnik-v2.2.0
Added to PATH:
C:\apps\mapnik-v2.2.0\lib
C:\apps\mapnik-v2.2.0\bin
Installed Python v2.7 (32bit) downloaded and placed in C:\apps\python27
Added to PATH:
C:\apps\python27
C:\apps\python27\scripts
Added to PYTHONPATH:
C:\apps\Python27\Lib; C:\apps\Python27\DLLs;
C:\apps\Python27\Lib\lib-tk;
C:\apps\mapnik-v2.2.0\python\2.7\site-packages;
Rebuild node-gyp using VS 2012
node-gyp rebuild --msvs_version=2012
Downloaded and installed protobuf (32 bit) and placed in c:\apps\protobuf
Added to PATH:
c:\apps\protobuf
Installed protobuf using NPM
npm install protobuf --msvs_version=2012
Downloaded Cairo using git
git clone git://anongit.freedesktop.org/git/cairo
Copy Cairo files to mapnik:
Copy cairo\src\cairo-svg-surface.c to C:\apps\mapnik-v2.2.0\include
Copy cairo\src\cairo-svg.h to C:\apps\mapnik-v2.2.0\include
Copy cairo\src\cairo-svg-surface-private.h to C:\apps\mapnik-v2.2.0\include
Make proj4 epsg files available:
SET PROJ_LIB=C:\apps\mapnik-v2.2.0\share\proj
Attempt to install node-mapnik
npm install node-mapnik --msvs_version=2012
I receive the following errors:
node-pre-gyp ERR! Source compile required: 404 status code downloading
tarball ... mapnik_grid.cpp
c:\users\administrator\node_modules\node-mapnik\build\release\obj\global_interm
ediate\vector_tile.pb.h(9): fatal error C1083: Cannot open include
file: 'googl e/protobuf/stubs/common.h': No such file or directory
(C:\Users\Administrator\n
ode_modules\node-mapnik\build\Release\obj\global_intermediate\vector_tile.pb.cc
)
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_geometry.cpp)
[C:\Users\Administrator\node_modules\node-mapnik
\build\mapnik.vcxproj] mapnik_layer.cpp mapnik_cairo_surface.cpp
c:\users\administrator\node_modules\node-mapnik\src\mapnik_featureset.hpp(6):
f atal error C1083: Cannot open include file:
'mapnik/datasource_cache.hpp': No s uch file or directory
(..\src\mapnik_featureset.cpp) [C:\Users\Administrator\no
de_modules\node-mapnik\build\mapnik.vcxproj] mapnik_image.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_map.cpp) [C:\U
sers\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
mapnik_datasource.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_color.cpp) [C:
\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
node_mapnik.cpp ..\src\mapnik_grid_view.cpp(9): fatal error C1083:
Cannot open include file: 'm apnik/grid/grid.hpp': No such file or
directory [C:\Users\Administrator\node_mo
dules\node-mapnik\build\mapnik.vcxproj] mapnik_projection.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_layer.cpp) [C:
\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
mapnik_feature.cpp ..\src\mapnik_grid.cpp(9): fatal error C1083:
Cannot open include file: 'mapnik /version.hpp': No such file or
directory [C:\Users\Administrator\node_modules\n
ode-mapnik\build\mapnik.vcxproj] mapnik_palette.cpp
..\src\mapnik_image_view.cpp(11): fatal error C1083: Cannot open
include file: 'mapnik/color.hpp': No such file or directory
[C:\Users\Administrator\node_modu
les\node-mapnik\build\mapnik.vcxproj] mapnik_vector_tile.cpp
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_cairo_surface.cpp)
[C:\Users\Administrator\node_modules\node-m
apnik\build\mapnik.vcxproj] mapnik_expression.cpp
mapnik_memory_datasource.cpp ..\src\mapnik_memory_datasource.cpp(3):
fatal error C1083: Cannot open include file: 'mapnik/version.hpp': No
such file or directory [C:\Users\Administrator\n
ode_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_feature.cpp)
[C:\Users\Administrator\node_modules\node-mapnik\
build\mapnik.vcxproj] ..\src\mapnik_image.cpp(7): fatal error C1083:
Cannot open include file: 'mapni k/color.hpp': No such file or
directory [C:\Users\Administrator\node_modules\no
de-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_datasource.cpp )
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_projection.cpp )
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_palette.cpp) [
C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\node_mapnik.cpp) [C:\
Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_vector_tile.cpp)
[C:\Users\Administrator\node_modules\node-map
nik\build\mapnik.vcxproj]
node-mapnik now ships with windows binaries, so none of the above steps should be needed. See https://github.com/mapnik/node-mapnik#installing for details.

fatal error LNK1181: cannot open input file 'C:\Python33\Lib.obj'

I have been encountering a bug in Visual Studio 2005. I used boost python (boost_1_54_0) to interface python 3.3.2 to c++. I followed this tutorial.
http://www.thalesians.com/finance/index.php/Knowledge_Base/CPP/Boost_Python_Step_By_Step.
and from StackOverflow questions
Visual Studio: LINK : fatal error LNK1181: cannot open input file
I included the required library in linker input, but I'm still getting this linking error:
fatal error LNK1181: cannot open input file 'C:\Python33\Lib.obj'
To remove this error add Additional Dependencies in the Linker.
Project prperties-->Configuration Properties-->Linker-->Input -->Additional Dependencies
and then add following Libarary
c:\python33\libs\python33.lib.
Hope this resolove the error.

Resources