-
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
Best DevIL version to use? Should ReSIL be used over DevIL? #29
Comments
@bcampbell you may also be interested and/or able to help answer this question if @DentonW isn't available. Thanks! |
Obviously, I'm biased ;-) The stuff I've been doing is aimed at stabilisation - just tidying up the build system and sorting out issues on various different compilers (mainly to do with inline differences under VisualC vs gcc vs clang and C++ vs c89 and c99...). I found ReSIL a little opaque and windows-centric, but I've not checked out the github-hosted one yet. Same goes for the other recent activity in the various forks - I've not picked my way through the changes there, but that's the next logical step. I'm going to be away for the next couple of weeks, but happy to coordinate with any sort of consensus that forms. I'm not too up on homebrew, but my basic CMake setup seems to work OK on my test mac, albeit in a unixy libs&headers sort of way rather than spitting out a nice, Apple-y .framework. But I suspect libs&headers are probably what you need for homebrew anyway... Good luck - I look forward to catching up with any activity when I get back! |
see also: * #295 * DentonW/DevIL#29 closes #1188
see also: * mxe#295 * DentonW/DevIL#29 closes mxe#1188
see also: * mxe#295 * DentonW/DevIL#29 closes mxe#1188
see also: * mxe#295 * DentonW/DevIL#29 closes mxe#1188
I'm aiming to start collecting patches in my fork (https://github.com/bcampbell/DevIL) for now. There's useful-looking stuff in the various forks on github, and from downstream sources (eg, Debian and some of the BSDs have their own fixes and patches which we should really pull in). So please feel free to send pull requests my way! My goal is to get it all stabilised, solid and reliably cross platform. Something people can take away and package (hi, @ahundt!) |
With that in mind, I'm thinking about ditching support for autotools, and just supporting CMake. The main rationale is that CMake seems to be a better option for use on windows, and possibly better (or at least no worse) for other platforms. Does anyone have any strong opinions on this? |
@bcampbell since cmake provides generators for many other build tools this seems like a wise choice |
I would definitely like to use CMake exclusively in the future, especially due to its Windows support. I'd like to look at bcampbell's fork soon. |
Cool - I'll start preparing a branch with all the non-Cmake stuff stripped out, so we can see how it feels. I think it'll be a lot clearer. At the moment, it can be a bit confusing knowing wihich files are part of which build system. |
OK, so I've made a new branch: In it, I have:
I haven't done anything in examples, tests or docs yet. So, by following the steps in |
For some reason, the DevIL project under Windows fails at the linking stage with "LINK : fatal error LNK1104: cannot open file 'DevIL.lib'". I haven't yet been able to figure out why it's trying to link against the library that it's supposed to be creating. |
Found the culprit: I think the right solution is that Anyway, with all, I got it compiling under "Visual Studio 14 2015" with very little hassle, although I've not yet tried to get any of the external libs included - zlib, libpng etc. By far the most annoying step was waiting while visual studio installed (but only 30mins now, so a big improvement - I remember spending a whole day on it around 2004, feeding in CD after CD and rebooting repeatedly!) For reference (I'm aiming to turn this into a proper README for visual studio):
It automagically picked up the latest Visual Studio version, told me that I was missing zlib etc... (Oh, I had to remove a list of now-deleted text files from the CMakeLists.txt, but nothing serious - I'll tidy that up) |
By the way, how useful is it for library headers to have the:
line these days? |
@bcampbell I concur, users of libraries sometimes change library names and extensions or write their own build so it is likely best to avoid that particular type of dep info in headers themselves. |
Are there any chance for a new DevIL release? BTW github doesn't contain any release tags - previous source code version info was lost? |
The following pragma is specific to MSVC IIRC and will generate warnings to prevent a clean build on other compilers. I would suggest that you replace any occurrence of
|
@EmilyBjoerk: cool I've just disabled the pragma linking in my cmake_cleanup branch (commit 77bc86f). |
@qrilka: I think it's all still a little chaotic at the moment. The new cmake I've been working on is shaping up nicely for IL now, but I've not yet looked at ILU or ILUT (they should be a lot simpler).
Maybe it'd be a good time to start releasing some developer builds to try and get more people pounding on it? Or even just making it clearer how people can build it themselves - it really is pretty easy now. cmake can be very slick... (windows is the sticking point here - it's a pain setting up all the dependent libraries, even if DevIL is easy to buld with cmake) |
@bcampbell seeing as DeVIL has been dormant for so long I think perfect may be the enemy of good. On many platforms the existing release is already broken, so the sooner the release the better, even with a couple of undetected bugs. They can be stamped out in point releases. To test on other platforms I suggest creating a travis ci build and/or Appveyor build. Those can automate building and testing on key platforms including linux windows and OS X. Homebrew will not accept a formulae pull request until there is a release, and that is likely the easiest way to make it possible for users to test it in their libraries on that platform. Particularly considering the current version doesn't even compile at all on OS X if I recall correctly. Also, might I suggest the inclusion of PackageConfig.cmake generators? Sorry if you have this, I didn't check your code if you've already done it. :-) |
@ahundt I see your point, and agree. So really, we need a new version number, a changelog, and (ideally) to see my latest cmake_cleanup changes merged into master. Agree on the CI stuff. The PackageConfig.cmake looks good, but I doubt I'll get around to it any time soon - my cmake-foo is already stretched to the limit right now ;- ) |
DevIL 1.8 was released so i guess this issue is solved! thanks a lot Denton! |
It's already in homebrew too working via cmake build! https://github.com/Homebrew/homebrew-core/blob/master/Formula/devil.rb I'd say this is done, closing! Thanks everyone! |
I'm trying to figure out which version of DevIL is best to use. ReSIL? DevIL?
In particular I'd like to update homebrew as mentioned in #19
Options include:
I guess a modicum of minimal help would be appreciated! That would consist of merging the cmake changes release zip produced so I can update the homebrew script.
Perhaps resil has even more high quality changes, but I'd completely understand if you're not available for something larger like that, or even the smaller change mentioned above.
The text was updated successfully, but these errors were encountered: