-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link Error, Can't build Lib (Windows, VS2015, cmake) #37
Comments
I've been working on the cmake build with the intention of pushing the changes back into the main repo. The latest version is here: I've not done much testing on visual studio, so if you can try it out I'd love to hear how you get on! There's some relevant discussion in #29 - in particular, I think the link issue you encountered is covered there (and hopefully fixed in my fork) |
Thanks a lot for fixing this issue. This seems to compile properly for me, though I haven't pointed it to any of the other libraries (libtiff, libpng, etc.). I also tried to get CMake to create 64-bit projects, but that failed. This is what I get:
|
I finally got around to trying it all out in visual studio, and got it compiling just fine for both 32bit and 64bit varieties (ie generators "Visual Studio 14 2015" and "Visual Studio 14 2015 Win64"). Both in release and debug. I did encounter a slew of multiple-export link warnings due to the use of both I also added a few more msvc details to Disclaimers:
(all in my cmake_cleanup branch, btw) |
In DevIL\include\IL\il.h the macro on line 58 checks for _IL_BUILD_LIBRARY, if not defined, DevIL.lib is linked. During the build process this causes Devil to try and link itself, as _IL_BUILD_LIBRARY is not defined in il.h (il_interal.h or something else is not included).
Resulting in : "Error LNK1104 cannot open file 'DevIL.lib"
This is with VS2015, building for Win10 x64, using cmake to generate the project.
The text was updated successfully, but these errors were encountered: