I am trying to compile my code that uses the Eigen library but I am having some difficulties. I have compiled and run my program in Visual Studio 2017 with no problems, but since I have to implement this code on some piece of hardware (namely Xilinx ZedBoard that runs Linux OS) I am trying to compile the same code in Xilinx SDK.
When trying to do that I get this error: fatal error:
split_test_helper.h: No such file or directory
I also get this error when building the project with Xilinx SDK -
make: ***[eigen-eigen-323c052e1731/unsupported/test/subdir.mk:275:eigen-
eigen-323c052e1731/unsupported/test/BVH.o] Error 1
I am aware that split_test_helper.h file should be generated as it says in CMakeLists.txt but I guess it does not in the case of Xilinx SDK, but does in the case of compiling with Visual Studio.
Any help is appreciated, thank you.
Also I should maybe mention that I managed to compile and run the code from Linux terminal on a virtual box Linux OS from my computer using g++.
Related
I try to use oneAPI command line to compile the FORTRAN.f90 file. The Fortran code can be compiled successfully. However, I cannot run the .exe file. Every time I run the .exe file, the error shows up and it says: The application was unable to start correctly (0xc0000279). I attached the snapshot here.
The Fortran code comes from the IMSL package example code. I can compile it and run it smoothly on my old computer. However, I cannot run it on my new computer. I got the license from the IMSL team and it should work. I also contact the imsl team for help and they told me to run the .exe file on "dependency walker" program to point out the error. The snapshot is the output of the "dependency walker".
The IMSL team says 'based on the output of the 'dependency walker', the error comes from LIBIFPORTMD.DLL which is an Intel library.' I'm not sure what this means and how to solve it.
I tried many ways and still cannot get rid of this error.
Can someone please tell me some clues on how to solve this problem? Appreciate it very much.
According to your Dependency Walker output, the Intel Math Kernel Library (MKL) DLLs are not installed. This is expected if you installed only the Intel oneAPI HPC Toolkit, or just the Intel Fortran Compiler, as MKL is in the oneAPI Base Toolkit.
Go to https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html In the left column, select "Intel oneAPI Math Kernel Library (oneMKL)". Then select either the online or offline installer for Intel oneAPI Math Kernel Library for Windows.
I'm trying to use the zlib library in a Visual Studio project I'm writing in C++ but I'm not quite sure how to compile it. I'm running Windows 7 and the source has a makefile so I figured I'd just download Cmake to compile it. Cmake ran perfectly fine with no errors (but 13 warnings) but now I'm left with what can be seen in the image below. What is my next step to compile the code? I figured Cmake would compile it since I had to specify Visual Studio when running Cmake. When trying to open the project files (which is what Cmake yielded) and attempting to compile the source that way, I get a weird access denied error. So yeah, have I gone about this process wrong?
Here's what I see after running Cmake
If I recall correctly, zlib does have the solution file included. It's in
contrib\vstudio\vc14
Try again compiling with that.
CMake is a high-level build manager, it produces a low-level build process files.
You choose to use Microsoft Visual, so it output MSVC project files (.vcproject and .sln). Next step is to open those files with Visual as you did.
So yeah, have I gone about this process wrong?
No you haven't. That weird access denied error must be investigated though.
I am running a sample code of opencv (ocl sample for people detection) in visual studio. When I run the code from this IDE (Ctrl+F5), I get the desired result.
But, When I copy the .exe generated by building the code and run it in another system, I get the following error:
(In another system, I have also copied the required dll to the location where .exe is located)
OpenCV Error:Unknown error code -6 <
OpenCL function is not available: [clGet PlatformIDs]>
The settings of visual studio for the project are:
The configuration type is :Application .exe
Runtime Library: Multi-threaded Debug Dll(/MDd)
A similar question has been posted already but unanswered. It will be of great if anybody has some solutions.
Thank You!!
I downloaded and installed Qt 5 on Windows 7.
I opened QtCreator 2.6.1 and created a new simple GUI application.
When I try to run it, it says:
“C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore\qglobal.h:46: error:
C1083: Cannot open include file: ‘stddef.h’: No such file or
directory”
What is the problem and how do I solve it?
My compiler is: MSVC2010 32 bit
A google search yielded the following:
http://qt-project.org/forums/viewthread/10255
This thread notes that this error happens when you don't have the Microsoft Platform SDK installed and you are using Visual Studio. That would make sense considering that stddef.h is one of the standard headers (usually its included using <cstddef>, but looking at the source for qtcore/global.h it would seem that it is indeed included as <stddef.h>). So, try installing the platform SDK if it isn't already there.
If you already do have the sdk, perhaps it isn't configured properly. This answer says you need to follow the instructions given by microsoft here to do command line builds properly. I think Qt Creator probably executes the compiler from the command line, so that may help.
If that still doesn't work, try installing the MinGW compiler and using that. I have seen a few references saying that its easier to compile for Qt under windows using MinGW.
I am running a Qt C++ Project in Visual Studio 2008 and I got this error message:
"The program can't start because QtCored.dll is missing from your computer. Try installing the program to fix this problem".
Then I copy: QtCored4.dll from C:\Qt\4.8.0\bin to the exe program
I run it again, I got:
"The program can't start because QtGuid4.dll is missing from your computer. Try installing the program to fix this problem".
Then I copy: QtGuid4.dll from C:\Qt\4.8.0\bin to the exe program
Then I run it again, I got:
"the application was unable to start correctly (0xc015002). Click OK to close the program.
Then I check the Event Viewer, I see this:
Activation context generation failed for "D:\rest\rrpT.exe". Dependent
Assembly
Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"
could not be found. Please use sxstrace.exe for detailed diagnosis.
First of all, it is very strange to me because I am building and debugging the application on VS2008 but it asks for the dll files form VS2005. Then I copied those files from VS2005:
msvcm80d.dll - msvcp80d.dll - msvcr80d.dll
to the program folder but it is still the same error :(
And I think there is also something interesting:
Activation context generation failed for "C:\Bin\QtSolutions_PropertyBrowser-2.5d.dll". Dependent Assembly Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762" could not be found. Please use sxstrace.exe for detailed diagnosis.
why is that PropertyBrowser is dependent on VS2005?
Any idea?
It sounds like your copy of Qt was compiled with VS2005, thus it probably has a dependency on the version 8 runtime DLLs. But your application is built with VS2008 and thus has a dependency on the version 9 runtime DLLs. In general, you can't get both versions of the runtime DLLs into one process. VC++ tends to break binary compatibility between major versions.
You need to recompile your own copies of the Qt DLLs with VS2008 or develop your application with VS2005.