Error 13 error C1083: Cannot open include file: 'cudnn.h': No such file or directory ...\caffe\util\cudnn.hpp 5 1 convert_imageset - opencv

When I compile caffe for windows (64bit, release, vs 2013, nvidia 750, opencv 3.1,cuDNN version 5.1), I got the following error
"Error 13 error C1083: Cannot open include file: 'cudnn.h': No such
file or directory ...\caffe\util\cudnn.hpp 5 1 convert_imageset".
I set everything like what mentioned in this video.
I search for this error in github issues link this and this
if I use version 4 of cuDNN and OpenCV 2.4I got:
========== Rebuild All: 15 succeeded, 1 failed, 0 skipped ==========
However, I got error:
Error 1 error MSB3073: The command
""...\caffe-master\windows\scripts\BinplaceCudaDependencies‌​.cmd"
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin"
"...\cuda" false true "...\caffe-master\windows..\Build\x64\Release\"
:VCEnd" exited with code 1. C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.ta‌​rgets
132 5 libcaffe

Extract the cuDNN archive to a directory of your choice, referred to below as installpath. Then follow the platform-specific instructions as follows:
Add installpath to the PATH environment variable.
In your Visual Studio project properties, add installpath to the Include Directories and Library Directories lists and add cudnn.lib to Linker->Input->Additional Dependencies.

Related

OpenCV build error while compiling with IE (Inference Engine)

OpenCV Version: 4.4.0 (latest)
OpenVINO Version: 2020.4 (latest)
The error happens when trying to build the project which is generated by CMake 3.18.0 on Windows 10.
I have tried many times building from scratch (clear all caches, update the source code, reinstall the OpenVINO toolkit, and run it's all demos successfully), but the problem still exists.
Here is the VS 2019 build error logs:
46>Done building project "opencv_dnn.vcxproj" -- FAILED.
73>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn440.lib'
75>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn440.lib'
73>Done building project "opencv_text.vcxproj" -- FAILED.
81>------ Build started: Project: opencv_datasets, Configuration: Release x64 ------
82>------ Build started: Project: opencv_videostab, Configuration: Release x64 ------
75>Done building project "opencv_mcc.vcxproj" -- FAILED.
81>Done building project "opencv_datasets.vcxproj" -- FAILED.
88>Done building project "opencv_dnn_objdetect.vcxproj" -- FAILED.
87>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_datasets440.lib'
87>Done building project "opencv_tracking.vcxproj" -- FAILED.
94>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_tracking440.lib'
94>Done building project "opencv_stereo.vcxproj" -- FAILED.
95>cv2.cpp
95>D:\GitHub\opencv\opencv_contrib\modules\saliency\include\opencv2/saliency/saliencySpecializedClasses.hpp(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
95>D:\GitHub\opencv\opencv_contrib\modules\datasets\include\opencv2/datasets/dataset.hpp(1,1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
93>LINK : fatal error LNK1181: cannot open input file '..\..\..\lib\Release\opencv_tracking440.lib'
93>Done building project "opencv_java.vcxproj" -- FAILED.
95>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn_superres440.lib'
95>Done building project "opencv_python3.vcxproj" -- FAILED.
96>------ Build started: Project: ALL_BUILD, Configuration: Release x64 ------
96>Building Custom Rule D:/GitHub/opencv/opencv/CMakeLists.txt
At the end 10 failed:
========== Build: 86 succeeded, 10 failed, 0 up-to-date, 0 skipped ==========
NOTE: Before I was able to build the OpenCV with IE without any errors but in the new release there are many errors while compiling and building.
Any solution..?
I am ready to provide more logs and info if needed.
Thanks!!
The problem was solved by configuring CMake with ngraph flag and locating its CMake files DIR location.

Building draw.io WAR

I am trying to create a Docker image that runs draw.io (https://www.draw.io/).
I recently did download the draw.io git repository from https://github.com/jgraph/draw.io (version 5.6.0.3) and spend quite some time building draw.war (which can be deployed in a web container), without any luck so far. I did read all the draw.io documentation that is provided in the repository and searched the internet for hours to find out how to build draw.war, but I couldn't find an answer.
The root directory of the repository is /tmp/draw.io-master/ and the ANT build file (build.xml) and related propery file (build.properties) can be found in /tmp/draw.io-master/etc/build
When I run 'ant' from /tmp/draw.io-master/etc/build I get the following error:
Buildfile: /tmp/draw.io-master/etc/build/build.xml
[jscomp] Compiling 1 file(s) with 40 extern(s)
[jscomp] ERROR - Cannot read: /tmp/draw.io-master/etc/build/${desktop.dir}/Desktop-Init.js
[jscomp] 1 error(s), 0 warning(s)
BUILD FAILED
/tmp/draw.io-master/etc/build/build.xml:451: Compilation failed.
Total time: 0 seconds
When I run 'ant war -buildfile /tmp/draw.io-master/etc/build/build.xml -propertyfile /tmp/draw.io-master/etc/build/build.properties -Dbasedir=/tmp/draw.io-master/etc/build -Ddesktop.dir=/tmp' I get the following error:
Buildfile: /tmp/draw.io-master/etc/build/build.xml
[jscomp] Compiling 1 file(s) with 40 extern(s)
[jscomp] ERROR - Cannot read: /tmp/Desktop-Init.js
[jscomp] 1 error(s), 0 warning(s)
BUILD FAILED
/tmp/draw.io-master/etc/build/build.xml:451: Compilation failed.
Total time: 0 seconds
I don't know what the right value of 'desktop.dir' is and I also don't know how to obtain / create Desktop-Init.js.
Any suggestions?
To fallback to http instead of https, you could use a redirection in Jetty, and add the url parameter "https=0", see https://support.draw.io/pages/viewpage.action?pageId=12878136.
Any place where you could share the resulting war, if successful?

Mingw doesn't find file strsafe.h while compiling OpenVC library

I want start playing with the OpenCV library, but I have a problem during the build process. I am on Windows 10 with the Mingw compiler. When I launch the command mingw32-make after a while, I get the following errors:
C:\Github\opencv\modules\videoio\src\cap_dshow.cpp:337:21: fatal error: strsafe.h: No such file or directory
#include <strsafe.h>
^
compilation terminated.
modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:187: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj' failed
mingw32-make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1
CMakeFiles\Makefile2:4340: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed
mingw32-make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
The incriminated file is cap_dshow.cpp, and the compiler says that is missing the header file strsafe.h. Inside the folder C:\MinGW\include this file is not present and I don't know where to find this.
I've installed MinGW compiler (and other things) with a tool called "MinGW Installation Manager". With this tool I can install also other libraries, but I don't know if one of these contains the file strsafe.h.
My question is likely a duplicate of this, but the accepted answer has a broken link.
I have Microsoft SDK installed and found the strsafe.h file in "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin".
Adding "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin" to the Path system environment variable worked.

Converting Directx 11 project to work on Windows 8.1 Directx 11.2

I'm trying to run a sample project supplied by Frank Luna (Introduction to 3D Game Programming with DirectX 11.0).
http://www.d3dcoder.net/d3d11.htm
I'm using Windows 8.1 with the Windows 8 SDK installed - on Visual Studio 2012 (As I read that Windows 8.1 SDK includes direct x 11.2).
Whenever I try to run the project however I get the following build errors:
Error 1 error C1083: Cannot open include file: 'd3dUtil.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\chapter 14 building a first person camera\camera\vertex.h 10 1 Camera
Error 2 error C1083: Cannot open include file: 'd3dUtil.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\chapter 14 building a first person camera\camera\renderstates.h 10 1 Camera
Error 3 error C1083: Cannot open include file: 'd3dUtil.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\chapter 14 building a first person camera\camera\effects.h 11 1 Camera
Error 4 error C1083: Cannot open include file: 'd3dApp.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\chapter 14 building a first person camera\camera\camerademo.cpp 13 1 Camera
Error 5 error C1083: Cannot open include file: 'xnamath.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\waves.h 13 1 Camera
Error 6 error C1083: Cannot open include file: 'xnamath.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\mathhelper.h 11 1 Camera
Error 7 error C1083: Cannot open include file: 'xnamath.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\lighthelper.h 11 1 Camera
Error 8 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\d3dutil.h 13 1 Camera
Error 9 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\d3dutil.h 13 1 Camera
Error 10 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\d3dutil.h 13 1 Camera
Error 11 error C1083: Cannot open include file: 'd3dx11.h': No such file or directory c:\users\ryan willis\desktop\dvd\code\common\d3dutil.h 13 1 Camera
After more research it seems that Direct 11.1 onwards changed a lot of things and e.g. "d3dUtil.h" is depreciated.
http://blogs.msdn.com/b/jgalasyn/archive/2013/08/06/notes-on-porting-to-directx-11-1-from-earlier-versions.aspx
Are there any equivilants to 'd3dUtil.h' - I cant find any.
How can I get this project to run?
Thanks,
DirectX never has the d3dUtil.h file, it seems that's a helper class made by Frank Luna, you should double check whether you have include that file in your project.
I would suggest HIGHLY to check out Frank's site
http://www.d3dcoder.net/
Mainly his blog post here: http://d3dcoder.net/WordPress/
It covers installing the June 2010 SDK which will give you access to the depreciated DX11 headers.
There are many issues running it on 8.1 and he solves them all there.
I have the same book, followed his setup guide for Windows 8 and it works fine.
XNA and the D3DX libraries were removed in Windows 8, a lot of projects fail to compile on Windows 8 including the original DirectX 11 SDK sample projects.

Blackberry JDE 6.0 VERIFIER ERROR And KXML 2

I am trying to import kxml2, what I did is I downloaded the lib, went to Project Explorer -> Properties -> Build Path -> Libraries, I include the kxml2-2.3.0.jar. I run compile and get this error
JAR file creation failed with error -1
The preverified classes if any are in tmp25754. See jar log of errors in C:\Users\sgil\AppData\Local\Temp\rapc_1296da5f.dir\jarlog.txt
Error!: Error: preverifier failed: C:\Program Files (x86)\Eclipse-Blackberry\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components ...
Packaging project ** failed (took 0.795 seconds)
Error!: Error: preverifier failed: C:\Program Files (x86)\Eclipse-Blackberry\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components ...
Packaging project ** failed (took 0.795 seconds)
I tried running the preverifier and I got this:
preverify -classpath "C:\Program Files (x86)\Eclipse-B
lackberry\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\lib\net_ri
m_api.jar" "C:\Users\sgil\Desktop\Projects\Blackberry****\lib\kxml2-2.3.0.
jar"
I get this error:
JAR file creation failed with error -1
The preverified classes if any are in tmp25503. See jar log of errors in output\
jarlog.txt
Any advice?
The solution to this is to put the correct PATH variable in the "Enviromental Variables" of the System(right click in My PC->Enviromental Variables).
If "PATH" already exists you need to add the path of the BIN of the JDK installed on the Computer.
The carpet you should add this is the bin:
for example: C:\PATH_TO_THE_INSTALLED_JDK\bin

Resources