I'm building an IE extension (ATL) with VS2008 and somehow when I switch to release mode it gives me some linking error:
Error 2 fatal error C1083: Cannot open include file: 'ImplAddon.h': No such file or directory *************** 19 Engine
Error 3 fatal error LNK1181: cannot open input file '..\release addon\engine.lib' Addon Addon
I've tried to add to each of the projects in the "Additional include directories" in the project's properties the relevant path to 'ImplAddon.h' but nothing helps.
Any idea what to do??
Thanks a lot fellas :)
Right click each project and go to properties then top,left there is a drop-down to select the environmental. select all configurations there. then go to C++-> General -> Additional directories then add the paths of your header fails located at.
Related
I'm having an issue trying to make Assimp work in an engine I'm doing. I'm trying to add it as a submodule and build it with premake, and I managed to properly include it as a project in the solution, but I'm having an error that I cannot understand.
The error is that some files in assimp are giving me a "cannot include file" error, which is weird because the file it is there, the next image shows it:
I checked the working directory of the project and it is in 'vendor/Assimp' (check the image), so it should be able to include the file. I'm assuming it must be something on the include directories, but I can't manage to find specifically what it is... Does somebody have any clue? Thanks!
The specific errors I'm having in this case is the next:
Error (active) E1696 cannot open source file "contrib/zip/src/zip.h" Assimp C:\Users\lucho.suaya\Documents\GitHub\Kaimos\KaimosEngine\vendor\Assimp\code\3MF\D3MFExporter.cpp 61
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'contrib/zip/src/zip.h': No such file or directory Assimp C:\Users\lucho.suaya\Documents\GitHub\Kaimos\KaimosEngine\vendor\Assimp\code\3MF\D3MFExporter.cpp 61
And the include directories I'm adding in the premake file of the Assimp project are the next ones:
includedirs
{
"include",
"code",
"code/Common",
"code/PostProcessing",
"code/AssetLib",
"contrib/irrXML",
"contrib/rapidjson/include",
"contrib/unzip"
}
Then I have another premake file for the engine project in which i wrote the next (regarding assimp):
IncludeDir["Assimp"] = "%{wks.location}/KaimosEngine/vendor/Assimp/include"
include "KaimosEngine/vendor/Assimp" -- Includes Assimp Premake File
includedirs { "%{IncludeDir.Assimp}" }
links { "Assimp" }
The issue was solved by including in the project many files I didn't include
I am trying to compile this code (https://github.com/cahya-wirawan/stm32f4-musicplayer) On my STM32F4Discovery board using Atollic True Studio. When I launch the debug of the main, I get this error:
../lib/driver/src/stm32f4xx_syscfg.c:50:30: fatal error: stm32f4xx_syscfg.h: No such file or directory
However stm32f4xx_syscfg.h is in the path /stm32f4-musicplayer/lib/driver/inc, so I think it's a path issue and I have to specify it somewhere. Any ideas?
Thanks
Check the project settings (right click on project -> properties -> c/c++ general -> paths and symbols). Ensure you're src/ folder is included here.
I recently managed to generate the visual studio project file for V8, but it doesn't compile
When I compile the All solution it spends maybe ~10 minutes compiling and then presents me with a bunch of error (at least in Release mode, 35 to be exact).
Example:
MSB6006 "cmd.exe" exited with code 1. js2c
C1083 Cannot open source file: '..\..\build\Release\obj\global_intermediate\experimental-libraries.cc': No such file or directory v8_nosnapshot
C1083 Cannot open source file: '..\..\build\Release\obj\global_intermediate\extras-libraries.cc': No such file or directory v8_nosnapshot
C1083 Cannot open source file: '..\..\build\Release\obj\global_intermediate\libraries.cc': No such file or directory v8_nosnapshot
C1083 Cannot open source file: '..\..\build\Release\obj\global_intermediate\experimental-extras-libraries.cc': No such file or directory v8_nosnapshot
Why isn't it compiling correctly?
The compiler can't find the directory v8_nosnapshot
What are your project settings? If you have access to this you might want to check that paths to your source and header files resolve correctly.
Else place the v8_nosnapshot directory and other source files needed for a successful compile where the compiler can find it
Right Click on the js2c project -> Properties, Under VC++ Directories -> Executable Directories, Check if the python and cygwin directories are set properly.
The python directory should exists under v8\third_party as shown below. If not, you can copy the python folder under depot_tools to v8\thrid_party\python_** and compile. You can also expand the macro and see what is the value for MSBuildProjectDirectory:
$(MSBuildProjectDirectory)\..\..\thrid_party\python_26
I had this problem before which I fixed (in Debug mode).
But now when I tried compiling my application in Release mode, I get this error:
LNK1181: cannot open input file 'oraocci10.lib'
What can be causing this?
These are some my settings in the app:
Debug Mode:
Linker->General->Additional Library Directories:
$(WXWIN)\lib\vc_lib;E:\app\vasyl\product\11.1.0\db_1\OCI\lib\MSVC\vc71;$(WXDIR284)\lib\vc_lib;%(AdditionalLibraryDirectories)
Release Mode:
Linker->General->Additional Library Directories:
$(WXWIN)\lib\vc_lib;\\darkstar\D$\oracle\product\10.2.0\client_1\oci\lib\msvc\vc71;$(WXDIR284)\lib\vc_lib;%(AdditionalLibraryDirectories)
There is no drive named E: on my hdd btw.
UPDATE: Now that I check where I unarchived the oracle client I downloaded there is oraocci12.lib but I don't see the oraocci10.lib, see screen:
Maybe that is related to above error?
I solved this by downloading oraocci10.lib from here(it is contained inside a package):
http://www.oracle.com/technetwork/topics/winsoft-085727.html
Need to download correct package which is for version 10, SDK package (5th) - instantclient-sdk-win32-10.2.0.5.zip.
Unzip it and specify the path to the lib in Linker->General->Additional Library directories
I am trying to run a multi project file from another developer. I am using a Mac computer with a Windows 7 bootcamp partition. I'm running the code on Visual Studios 2013 with OpenCV 3.0 and Qt.5.4.2.
(Im not sure if this affects the issue, but I have all these programs basically all on separate external USB drives because there isnt enough space on my partition)
The issue I think is that the original developer used Visual Studios 2012 and OpenCV 2.4.9. In the files he gave to me, he included the necessary OpenCv files, but I installed OpenCV before realizing this and have tried to change the Config Properties to include the directory for the OpenCV 3.0. Shouldn't this work?
The exact error is :
LINK : fatal error LNK1181: cannot open input file
'opencv_core300d.lib'
I'll also include Config Properties:
VC++ Directories
Executable Directories: C:\opencv\build\x64\vc12\bin;$(VCInstallDir)\bin\x86_amd64;$(VCInstallDir)\bin;$(ExecutablePath)
Include Directories: $(OPENCV_DIR)\build\include;$(IncludePath)
Library Directories:
C:\opencv\build\x64\vc12\staticlib;C:\opencv\build\x64\vc12\lib;E:\eyegaze\eyegaze\EyeGazeDemo;$(LibraryPath)
C/C++
Additional Include Directories:
..\Libraries\OpenCV\include;
C:\opencv\build\include\opencv2;->Changed to C:\opencv\build\include
..\Libraries\Intraface\include;
$(QTDIR)\include;
$(OPENCV_DIR)\include;
$(QTDIR)\include\QtWidgets;
$(QTDIR)\include\QtGui;
$(QTDIR)\include\QtCore;
debug;
.;
$(QTDIR)\mkspecs\win32-msvc2012;
.\GeneratedFiles;
%(AdditionalIncludeDirectories)
Linker
General
Additional Library Directories:
$(OPENCV_DIR)\build\x64\vc12\staticlib;
$(OPENCV_DIR)\build\x64\vc12\lib;
$(QTDIR)\lib;
E:\eyegaze\eyegaze\Libraries\OpenCV\lib;->removed
E:\eyegaze\eyegaze\Libraries\Intraface\lib;
E:\eyegaze\eyegaze\EyeGazeDemo;
%(AdditionalLibraryDirectories)
Input
Additional Dependencies:
glu32.lib;
opengl32.lib;
gdi32.lib;
user32.lib;
$(QTDIR)\lib\qtmaind.lib;
$(QTDIR)\lib\Qt5Cored.lib;
$(QTDIR)\lib\Qt5Widgetsd.lib;
$(QTDIR)\lib\Qt5Guid.lib;
%(AdditionalDependencies);
opencv_core300d.lib;
opencv_imgproc300d.lib;
opencv_highgui300d.lib;
opencv_objdetect300d.lib;
opencv_ml300d.lib;
E:\eyegaze\eyegaze\Libraries\Intraface\lib\IntraFaceDLL-x86d.lib
Also I was wondering what is the difference between Configuration Properties->C/C++->Additional Include Directories and Configuration Properties->VC++ Directories->Include Directories?
Thank You in Advance!
Update
I changed a few things in the configuration properties (noted above), and now the error is:
1>opencv_core249.lib(opencv_core249.dll) : fatal error LNK1112: module
machine type 'X86' conflicts with target machine type 'x64'
My computer is x64 so I had changed all the settings for x64...
Im not sure If this made it worse, or if I fixed the problem?