GithubHelp home page GithubHelp logo

Comments (3)

bcampbell avatar bcampbell commented on June 9, 2024

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.

DentonW avatar DentonW commented on June 9, 2024

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.

bcampbell avatar bcampbell commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.