DevIL icon indicating copy to clipboard operation
DevIL copied to clipboard

Cmakelists error

Open alexander-a-kharlamov opened this issue 10 years ago • 5 comments

Hi,

There seems to be an error in Cmakelists file:

CMake Error at src-IL/CMakeLists.txt:42 (ADD_LIBRARY): Cannot find source file:

msvc/il.def

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

Cheers, Alex

alexander-a-kharlamov avatar Feb 14 '15 00:02 alexander-a-kharlamov

I'm doing some work on compiling DevIL with CMake. I'm working on Linux. I've done a little Mac testing, but not tried it at all under windows yet.

You might have better luck with what I've got so far:

https://github.com/bcampbell/DevIL

(And I'd love some feedback from anyone trying it on windows!)

bcampbell avatar Jul 16 '15 06:07 bcampbell

In the next month, I should start to have a little free time to play with DevIL. I definitely plan on looking at this - especially in Windows. Thanks!

DentonW avatar Jul 16 '15 18:07 DentonW

Currently, I've got it compiling and installing under Linux in a rough form (lots of config checks and options still missing), and I'm trying to get it working on Mac too. Mostly it just works as per Linux, but I'm having a lot of trouble deciding how to deal with differing inline handling on various compilers (I'll open another issue to document this).

bcampbell avatar Jul 16 '15 22:07 bcampbell

BTW - I've got a few things I want to work on in DevIL too, so I'll make sure to open things as issues here as I go to try and aid coordination!

bcampbell avatar Jul 16 '15 22:07 bcampbell

It looks like you need to change the CMakeList.txt for each of the src-IL, src-ILU, and src-ILUT folders. In each file you should find and replace all "msvc/" with "msvc8" or "msvc9". After you have changed the three files, it will properly build with CMake

jh2os avatar Dec 14 '15 22:12 jh2os