Aaron Symons Posted August 27, 2016 Share Posted August 27, 2016 Hi guys! I've created a new Project in the Solution which will be for one of my custom frameworks/libraries. My framework references the Leadwerks library and classes. I'm currently having difficulties setting up the project to compile, as I get this error: Error 1 error C1083: Cannot open include file: 'OpenAL/al.h': No such file or directory I've added the dependencies and path macros for this new Project, trying to mimic the setup of the Project in the generated Solution from Leadwerks. I'm not sure what I'm missing! Any advice and guidance would be greatly appreciated! Many thanks Quote Win7 64-bit | Intel i7-3770 3.40GHz | NVIDIA GeForce GTX 660 Link to comment Share on other sites More sharing options...
Roland Posted August 27, 2016 Share Posted August 27, 2016 $(LeadwerksHeaderPath)\Libraries\OpenAL\include Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Aaron Symons Posted August 27, 2016 Author Share Posted August 27, 2016 $(LeadwerksHeaderPath)\Libraries\OpenAL\include Already included Quote Win7 64-bit | Intel i7-3770 3.40GHz | NVIDIA GeForce GTX 660 Link to comment Share on other sites More sharing options...
Roland Posted August 27, 2016 Share Posted August 27, 2016 Thats strange 1. Is LeadwerksHeaderPath really pointing to the correct place? 2. If so, are the files really there? This is how it looks at my place Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Aaron Symons Posted August 27, 2016 Author Share Posted August 27, 2016 Thats strange 1. Is LeadwerksHeaderPath really pointing to the correct place? 2. If so, are the files really there? This is how it looks at my place I think including that file solved some issues, but I still have same the error as stated before. Quote Win7 64-bit | Intel i7-3770 3.40GHz | NVIDIA GeForce GTX 660 Link to comment Share on other sites More sharing options...
Roland Posted August 27, 2016 Share Posted August 27, 2016 What does your build log say? Any more clues but just that sentence. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Aaron Symons Posted August 28, 2016 Author Share Posted August 28, 2016 In Leadwerks.h, I changed #include <OpenAL/al.h> #include <OpenAL/alc.h> to #include "al.h" #include "alc.h" and I have no more OpenAL related errors. However, I do have issues in Steamworks.h now. Line #85 to #93: STEAM_CALLBACK() is missing an explicit type, and its parameters are all undefined. Line #104: HHTMLBrowser is undefined. Line #214: return type of "uint32" instead of "uint32_t". There are many others as well. I'm guessing that I'm still missing other dependencies somewhere. EDIT: Line #13 in Mutex.h - pthread_mutex_t is undefined. Definitely still missing lots of dependencies! Quote Win7 64-bit | Intel i7-3770 3.40GHz | NVIDIA GeForce GTX 660 Link to comment Share on other sites More sharing options...
Roland Posted August 28, 2016 Share Posted August 28, 2016 I would not recommend changing anything in the Leadwerks header to solve a local compilation problem. There is nothing wrong with the Leadwerks headers. The problem is local to your installation. Solve the path-include problems instead of editing the headers. Maybe you should give a re-installation of Leadwerks a try as the problems you describe should simply not exist in a fresh installation on Windows. If that doesn't work you could always post you project file here or PM me. Two files are of interest "projectname".vcxproj and PropertySheet.props, where "projectname" is the name of you project. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
aiaf Posted August 28, 2016 Share Posted August 28, 2016 Yeah missing dependencies in your project. You can have a look at this also: http://www.leadwerks.com/werkspace/topic/14990-c-example-project-with-cmake/ In CMakeLists.txt windows section you can find a list of include directories,libraries to link,compiler flags. Warning thats not the whole list just what i needed. Simplest way to me seems to just copy the Leadwerk generated project to other directory. Open the new project in visual studio and rename it. And just use that after. Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.