Hey guys I've been having trouble trying to get openAL to work in my c++ program. I've installed oalinst and ALUT (Windows Binary) but when I try to compile/run my program (using Qt Creator) I get the following error:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\al\alut.h:5: error: C1083: Cannot open include file: 'alc.h': No such file or directory
I'm including "al/alut.h" in my main.cpp file, which try's to include both "alc.h" and "al.h"
I've tryed to search my entire computer for both of these header files and neither of them could be located (search began at "C:\" so I know it had to look though my entire system). Im using Windows 7 Home Premium 32 bit.
Has anyone else had problems with the installers or binarys not installing/coming with these files? Any help would be greatly appreciated!
If I'm not mistaken. alc.h and others are bundled in the OpenAl SDK (which you'll need to add to your project's include and lib path).
http://connect.creativelabs.com/developer/Wiki/OpenAL%20SDK%20for%20Windows.aspx
Note: Right now, I can't download it from that source for some reason.
Related
I'm trying to work on communicating with a laser system and their instructions are very difficult to follow. I've installed the drivers and header files and static libraries on my computer and can locate them. However, I am having trouble incorporating these into Visual Studio IDE. I've tried placing the locations into the include directories but keep running into an error.
If anyone can take a look and nudge me in the right direction that would be greatly appreciated, here is the link to the driver/file installation:
https://www.thorlabs.com/software/MUC/MLQ/TL_MIR_TKL_WYOA_V1.0_web-secured.pdf
I've tried including the header files and linking them by include directory in property manager but I still get an error saying cannot open include file: 'utility.h' no such file or directory
I know that there are other errors for certain header files with the same message of "No such file or directory", but my circumstances are a bit different as I will explain now.
I use the Code Blocks IDE and wanted to start using the UI Automation library. When I tried to include the header
#include UIAutomation.h
Code Blocks could not find the header. From there I looked around my computer and saw that the UIAutomation.h, UIAutomationCore.h... and the other UIAutomation headers were in an "Include" file in the "Microsoft SDKs" folder.... So I went to (Settings -> Compiler -> Search directories) and in there I added a new directory to the include folder where the UI Automation headers were:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include;
and Code Blocks found the headers. However... another error appeared:
fatal error: sal.h: No such file or directory
and I searched for the sal.h in the "\Include" folder I had just written code for and there was no sal.h file. I understood everything up until here... I had to check if I had a sal.h folder somewhere else on my computer and I did, in a file somewhere in my Visual Studio 10 IDE folders (just to let u guys know, I use code blocks cause I have been using it for a long time, and only downloaded VS10 recently to use spy++). So then I thought ok... I'll do the same thing I did before again so that I can include those files too, so I go back into the Search directories section and add the directory:
C:\Program Files\Microsoft Visual Studio 10.0\VC\include
but from there a million different errors appeared, all refereeing to different issues. Can anyone tell me what I did wrong? All I wanted to do was use the UI Automation headers so that I can start coding with the library, but that is proving to be a bit difficult...
From what one can get from this related Q&A: 'How do I get sal.h' it's not possible to use this stuff with a different toolchain than MSVC (Visual Studio).
You may consider to configure MSVC as toolchain for this codeblocks project.
I'm working on adding some openCV features to a couple projects that use the Kinect and openGL/freeGLUT. I have downloaded and installed OpenCV using the pre-built libraries and successfully run a simple sample. Now I want to work with the Kinect Bridge with OpenCV Basics sample from the Kinect for Windows Developer Toolkit to get a better idea of how to use OpenCV with the Kinect. I downloaded the sample into my projects folder, opened the solution in visual studio and built it. I got the following errors:
Error 1 error C1083: Cannot open include file:
'opencv2/core/core.hpp': No such file or
directory c:\users\justin\documents\visual studio
2010\projects\kinectbridgewithopencvbasics-d2d\OpenCVHelper.h 17
and
Error 2 error C1083: Cannot open include file:
'opencv2/core/core.hpp': No such file or
directory c:\users\justin\documents\visual studio
2010\projects\kinectbridgewithopencvbasics-d2d\OpenCVFrameHelper.h 13
Initially I thought these errors were due to forgetting to specify the additional include directories. I added the same property sheet that my other OpenCV projects use to this one, but the errors remained. I tired copying the header files into the project folder: same thing. It seems like the only thing that works is specifying the full absolute file paths in the #include statements. I want to avoid doing this because visual studio wants me to change every #include in every file used in the project, including the openCV header files. I also tried shortening the name of my project folder in case the file path was too long (though I'm pretty sure that's more of an issue for the header file paths), but again no change.
The include directories and #includes that I'm trying to use are the same as in my other projects. I'm using Visual Studio 2010 on Windows 7 x64 based system.
Why would the additional include directory work for other projects, but not this one?
Usually when I see something like this it turns out to be a bad character in one of the prior include paths or other options that's messing everything up after it. I would take a look at your the command line page in the project configuration and see if you can spot anything amiss.
I am running windows 8 64 bit and using Code::Blocks as well as Eclipse as IDE for OpenCV v.2.4.4.
I am following the online tutorial at http://docs.opencv.org/doc/tutorials/core/basic_linear_transform/basic_linear_transform.html#basic-linear-transform
Whenever I include .dll.a files in opencv\build\x64\mingw\lib\ as well as required headers in opencv\build\include in my IDE settings and corresponding opencv\build\x64\mingw\bin in my PATH variable, I get compile time errors about undefined reference to opencv functions.
Whenever I include the corrosponding 32 bit dll files in my IDE settings and set 32 bit dll files' path in my PATH variable, the program compiles fine. But, when I open the .exe file, it says that 'libopencv_core244.dll is missing from your computer. Re-install the application.' The PATH variable being set correctly, I don't understand the problem..
I am digging up about this on the web as much as I can but still unable to fix this...please help...
Rebooting after updating the PATH variable worked!
I seem to have a perpetual problem of never being able to get any library to link with Visual Studio. Ever. I eventually get tired of trying and just include the header and source files manually.
My latest endeavour is trying to set up Assimp. I went and downloaded the latest version and followed the installation guide for Visual Studio 2010. http://assimp.sourceforge.net/lib_html/install.html
The result:
LINK : fatal error LNK1104: cannot open file 'assimp--3.0.1270-sdk/lib/assimp_release-dll_x64/assimp.lib'
I set the include directories:
assimp--3.0.1270-sdk/include
I set the library directories:
assimp--3.0.1270-sdk/lib/assimp_release-dll_x64
I set the additional dependencies (the guide includes the directories, but shouldn't I just be able to just put assimp.lib since I included the library directory above?):
assimp--3.0.1270-sdk/lib/assimp_release-dll_x64/assimp.lib
What am I doing wrong?
Also, considering this isn't my first time having these difficulties, are there any good tutorials to help me understand this process a little better? I've tried searching for it but most are for previous versions of VS...
My guess is you should provide explicitly relative or absolute paths for the library directory.
You're right about the dependency name, assimp.lib is the correct name and the guide is a bit ambiguous here.
Apart from that, you're doing everything right. Provided the lib file exists, it should link.
(assimp co-founder writing here)