Installing boost with Bootstrap / BoostBuild and Visual Studio 2015 - c++

to recall an old topic I remark that the workaround described in here didn't work on my pc (Windows 7, Visual Studio 2015 Community Edition/Update 3). After hiding the specified directories, bootstrap produces the typical error message:
c:\boost_1_64_0>bootstrap
Building Boost.Build engine
Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.
You can try to obtain a prebuilt binary from
http://sf.net/project/showfiles.php?group_id=7586&package_id=72941
Also, you can file an issue at http://svn.boost.org
Please attach bootstrap.log in that case.
In the bootstrap.log file I found:
...
c:\boost_1_64_0\tools\build\src\engine\jam.h(71): fatal error C1034: ctype.h: Kein Suchpfad für Headerdateien vorhanden (no include path set)
compile.c
c:\boost_1_64_0\tools\build\src\engine\jam.h(71): fatal error C1034: ctype.h: Kein Suchpfad für Headerdateien vorhanden (no include path set)
constants.c
debug.c
etc.
Has anyone any idea to overcome this problem? Or can I build the boost lib in th UI of Visual Studio?
Thanks in advance,
Robert

Meet the same problem as you.
This problem is resovled after I add c:\windows\system32 to the system environment variable path.

Related

C++ cannot open source file "hboost/predef/os/cygwin.h

I'm working with Houdini HDK (API), when I include
#include<OP/OP_OperatorTable.h> or some other preprocessor i get the error message
the visual studio gives me this error, C++ cannot open source file "hboost/predef/os/cygwin.h
the full error message is: Severity Code Description Project File Line Suppression State
Error (active) E1696 cannot open source file "hboost/predef/os/cygwin.h" NodeCreation C:\Program Files\Side Effects Software\Houdini 17.5.467\toolkit\include\hboost\predef\os.h
After I see this message for the first time I thought I should install Cygwin for windows, and I install the Cygwin but I get the error again
there's no cygwin.h file in this path, visual studio is searching for this file in this path
what's the problem and what should I do?
If you dont have cygwin.h that means you miss something when you install the Houdini API. I try a FULL installation by checking ALL the buttons below:
At the end, you will have this in your installation folder :
I am unable to tell you which one is responsible for installing "cygwin.h" but that should solve your problem.

[UE4 error]The project could not be compiled. Would you like to open it in Visual Studio?

I saw many many people ask this question and apparently there is no absolute answer to this question.
this happened for me when I uninstall my visual studio 2015 cause unreal 4.18 no matter I do use VS 2015 and I want to use 2017 and I saw some people solve this problem with uninstalling VS 2015.
when I uninstall VS 2015 receive this error when I want to create a new C++ project:
The project could not be compiled. Would you like to open it in Visual Studio?
Running f:/Program Files/Epic Games/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject451 Development Win64 -project="F:/c++ New/New folder/MyProject451/MyProject451.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject451 (no existing makefile)
#progress push 5%
Parsing headers for MyProject451Editor
Running UnrealHeaderTool "F:\c++ New\New folder\MyProject451\MyProject451.uproject" "F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\MyProject451Editor\Development\MyProject451Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject451Editor in 7.2801937 seconds
#progress pop
Performing 9 actions (4 in parallel)
[2/9] Resource ModuleVersionResource.rc.inl
[3/9] Resource PCLaunch.rc
SharedPCH.Engine.cpp
MyProject451GameModeBase.cpp
MyProject451.init.gen.cpp
MyProject451.cpp
MyProject451GameModeBase.gen.cpp
[8/9] Link UE4Editor-MyProject451.dll
[9/9] Link UE4Editor-MyProject451.lib
LINK : fatal error LNK1181: cannot open input file 'ws2_32.lib'
Creating library F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject451.lib and object F:\c++ New\New folder\MyProject451\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject451.exp
ERROR: UBT ERROR: Failed to produce item: F:\c++ New\New folder\MyProject451\Binaries\Win64\UE4Editor-MyProject451.dll
Total build time: 34.18 seconds (Local executor: 0.00 seconds)
image of error (i copy notes in above as you can see ):enter image description here
many peoples mention its relate to Windows SDK and there is windows SDK in installing if I add more let me know.
enter image description here
I thought if I install unreal 4.19 its maybe get fixed but it didn't.
it seens ue4 genrate C++ files for VS 2015.
enter image description here
I hope there is anyone known how to solve this problem and guide me how.
I fix it with downloading this cleaner form this link https://github.com/Microsoft/VisualStudioUninstaller/releases .
after that UE4 when you want to create new project sends a message and it says you don't have VS2017 don't panic just download the installer and modify it after that it downloading about 350 mg and after that, everything will get fixed.
for more info :
https://answers.unrealengine.com/questions/597939/new-c-project-fails-to-compile-using-ue-415-and-vs.html

Install mod_wsgi with Python 2.7 on Windows 64 bit

I'm trying to deploy my Django website, which is written using Python 2.7, on a windows 64 bit machine (Windows Server 2008 R2). I installed the pre-compiled version of Apache (Apache 2.4.16 x64) from https://www.apachehaus.com/cgi-bin/download.plx (due to lack of option provided by Apache Lounge***), and have checked that Python 2.7 runs on 64 bit and compiles with VC9. I wasn't able to find a pre-built binary for mod_wsgi (for Windows 64 bit and compiled with VC9), so I downloaded the source code for mod_wsgi from https://github.com/GrahamDumpleton/mod_wsgi/releases/tag/4.4.13 and followed the direction from https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst, changing the ap24py27-win64-VC9.mk file to point at the right directories for APACHE_ROOTDIR and PYTHON_ROOTDIR, and using C++ 2008 64-bit Command Prompt to run the command nmake -f ap24py27-win64-VC9.mk clean. However, this gave me the error:
wsgi_memory.obj : error LNK2019: unresolved external symbol GetProcessMemoryInfo referenced
in function getPeakRSS
mod_wsgi.so : fatal error LINK1120: 1 unresolved externals
NMAKE : fatal error U1077: `"...\Visual C++ for Python\9.0\VC\Bin\amd64\c1.EXE"` :
return code `0x2`
Stop.
I have read the installation and configuration documents for mod_wsgi multiple times and have searched the web including SO for the past few hours to no avail. What am I doing wrong here and how could I fix it?
***I know the official document for installing mod_wsgi warns against using binaries from other sources than Apache Lounge but I don't seem to be able to find the right compiled version (for VC9 and Windows 64 bit) from the site. Could this be a problem and if so, how could I fix it?
Update: following Adelin's suggestion, I was able to get namke -f ap24py27-win64-VC9.mk clean to run. However, when I try running namke -f ap24py27-win64-VC9.mk or namke -f ap24py27-win64-VC9.mk install, I get pages of warnings that say: warning C4820: '...' : '...' bytes padding added after data member '...' until the compiler quits with
fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
...\mod_wsgi-4.4.13\src\server\wsgi_memory.c<124> : warning C4711: function 'getCurrentRSS' selected for automatic inline expansion
NMAKE: fatal error U1077: '"C:\...\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\c1.EXE"' : return code '0x2'
Stop.
Does anyone have any idea why this might be and how I should go about fixing it?
I had this same error.
The problem is that the cl.exe doesn't find the psapi.lib. This lib includes the function referenced in wsgi_memory.c - GetProcessMemoryInfo.
To fix this, you should follow these steps:
Locate psapi.lib (run a search on C:\)
Open the ap24py27-win64-VC9.mk file you are using to compile, with
any text editor
See what other .mk file it includes. Most probably common-VC9.mk
Open that file (common-VC9.mk) with any text editor
Under LDFLAGS, append yet another line of /LIBPATH:"PATH_FOUND_AT_STEP_1"\
Save changes and retry
What a pain in the ass this was for me too :)
P.S. If you don't find psapi.lib anywhere, it's because you don't have the Windows SDK. I installed both Windows 7 and Windows 8 SDKs and eventually had the psapi.lib located here C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64
Edit:
To give you a solution for your newest errors in a somewhat general way, whenever nmake throws "No such file" errors, the location for the file is not properly referenced in common-VC9.mk file.
There are two types of files nmake will look for: .h or .lib.
If a .h is not found, the corresponding path should be properly referenced under the CPPFLAGS variable of common-VC9.mk file.
If a .lib is not found, you need to update LDFLAGS path accordingly.
How? The same way you included the path for psapi.lib: locate the file and append the corresponding path to the proper variable: CPPFLAGS or LDFLAGS.

Cannot open source file (in PATH)

I'm trying to run the Microsoft Keyboard Layout Creator to create dll files for the Bépo keyboard.
In the bin directory is the kbdutool.exe which I'm meant to run at the command line (pictured)
The .c and .h files are generated as a preliminary step before I modify them and compile a dll from these sources. I can't complete the compilation though. The output is:
KbdTool v3.40 - convert keyboard text file to C file or a keyboard layout DLL
Compiling layout information from 'bepo.klc' for wow64.
bepo.H : can't open for write.
bepo.C : can't open for write.
bepo.c
c1 : fatal error C1083: Cannot open source file: 'bepo.c': No such file or directory
CL:EXE returned 2
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
fatal error RC1110: could not open bepo.rc
RC.EXE returned 1
LINK : fatal error LNK1181: cannot open input file 'bepo.res'
LINK.EXE returned 1181
2
The warnings about not being able to open the files for writing are expected, I was following a guide here (in French).
I added this folder to the system path, so I'm not sure what the problem is. If it's of any relevance, cl.exe reports itself to be a 32-bit C/C++ compiler for 80x86. I am using Windows 7 x64. The keyboard tool supports building DLLs for 64-bit targets. It doesn't matter if I change the case of bepo.C to bepo.c, the same problems occur. You can see I moved the folder from its installation location, suspicious that it might have something to do with spaces in the path. I have all aspects of .NET 3.5 enabled.

Trouble with nvcc when building Opencv 2.4.3 with cuda5 support on windows 7

I have trouble to build OpenCV 2.4.3 library with support of CUDA (version 5) using cmake.
The problem seems to come from nvcc according to another thread here: Why won't OpenCV compile in NVCC?. But this does not explain how to install OpenCV.
Any answer that can help me will be very appreciated!
My system setup:
Computer: Dell46 precision M4700 machine with Windows 7 professional, 64bit os
Compiler: Microsoft Visual Studio 2008,
CMake version: 2.8.10.2
CUDA: 5.0
Below is a sample of errors while building Opencv once I set 'Use Cuda' Yes in cmake configure:
Error 3 fatal error : Option '--cubin (-cubin)' is not allowed when compiling for multiple GPU code instances nvcc
Error 4 fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_core243.lib' opencv_test_ml
Error 5 fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_core243.lib' opencv_perf_video
Error 6 fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_core243.lib' opencv_test_features2d
Error 7 fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_core243.lib' opencv_perf_nonfree
Error 8 fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_core243.lib' opencv_perf_photo
etc.
:) Very happy to finally find the solution!
As suggested by the first error shown above, -cubin is not allowed, so the solution is to remove this option. Step-by-step solution is:
cmake-gui, select OpenCV source path and specify build path. Configure (check "with cuda"), Generate.
Go to build path of opencv (you specified in cmake-gui), open CMakeCache.txt.
Set CUDA_BUILD_CUBIN:BOOL to OFF as shown below:
Build your opencv with VC++.
<CMakeCache.txt>:
//Generate and parse .cubin files in Device mode.
CUDA_BUILD_CUBIN:BOOL=OFF
Good luck!