Comments (3)
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:
https://github.com/bcampbell/DevIL/tree/cmake_cleanup
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)
from devil.
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:
> cmake -G "Visual Studio 14 2015 Win64"
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/TestBigEndian.cmake:51 (message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:18 (test_big_endian)
-- Configuring incomplete, errors occurred!
from devil.
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.
So I'm guessing that something I've changed since you tried it has fixed the issue :- )
I did encounter a slew of multiple-export link warnings due to the use of both .def
files and __declspec()
directives in the code, so I've disabled the .def
files for now.
I also added a few more msvc details to README.cmake
as I went.
Disclaimers:
- I didn't try and include png/tiff/jpeg etc
- I've not actually tried to run anything against the resulting IL.dll yet :- ) (next step would be to add some of the examples back into to the cmake build to start giving it a bit more of a workout)
(all in my cmake_cleanup branch, btw)
from devil.
Related Issues (20)
- Compiling on freebsd13.0 fails HOT 1
- 1.8.0: build fails
- SOVERSION bump needed?
- suppert webp?
- Build fails with strict-aliasing violations
- Error in installation! HOT 1
- Confusion over Bpp and Bpc
- Hello, there is no 64-bit Debug version under the window HOT 1
- Related to GLUT for Ubuntu installation
- iluGammaCorrect
- libILUT.so: undefined reference to `gluBuild2DMipmaps' HOT 1
- DXT Endpoint detection problem
- How To Static Library Build HOT 1
- Invalid conversion from int to int HOT 3
- Implicit conversion from 'unsigned int' to 'float'
- 1.8.0: build fails HOT 3
- Building static libraries only applies to IL and not to ILU nor ILUT
- ilut_config.h need to install to include folder
- src-IL/src/il_states.c: 2 * bad compare ? HOT 1
- 1.8.0: build fails against jasper 3.0.x HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devil.