-
Notifications
You must be signed in to change notification settings - Fork 285
[ci skip] Adding note about libsdl-dev to unix/README.md. #294
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
[ci skip] Adding note about libsdl-dev to unix/README.md. #294
Conversation
a9b2609
to
2aaa851
Compare
unix/README.md
Outdated
@@ -26,7 +26,11 @@ following packages pre-installed: | |||
libjpeg8-dev | |||
libtiff5-dev | |||
libopenexr-dev | |||
|
|||
|
|||
To enable the, as rendering, Simple DirectMedia Layer display also pre-install: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence seems pretty convoluted to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. How about:
"To enable the Simple DirectMedia Layer display also pre-install:"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm... If I already happen to know that I want Simple DirectMedia Layer, I may also already happen to know that I want libsdl-dev.
Maybe be a bit more clear about the fact that it is for the render preview. Also, do we still support X-Window as an alternative? If so, we might want to mention that, too. (Or do we need both for the render preview to work?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. So maybe something like:
"To enable the render preview display also pre-install:"
No, we don't support an X-Windows display. SDL though still uses X11 for a small subset of functionality and so the X11 library is a dependency of SDL (-lX11 -lXext). In the unlikely case X11 isn't already present on some unix system - the installation of the SDL library will cause all the X11 dependencies to be installed. I'll add a note something like "the --with-x configure option is currently meaningless as no X11 display option is presently implemented."
If we want to go further with updates we should probably strike the text:
"NB if you have improvements to the below instructions, please add a comment
to issue #1, or (if you are working in a branch) send us a pull request."
as this looks like some leftover text from years past to me.
I also think we should not be specifying versions for the following development libraries. Today we have:
zlib1g-dev
libpng12-dev
libjpeg8-dev
libtiff5-dev
where I think we should have:
zlib-dev
libpng-dev
libjpeg-dev
libtiff-dev
Let ./configure determine whether the default versions are OK. In other words, by specifying the library version we are encouraging people to install those versions specifically and they both might be old, and they probably won't be picked up where old.
For example, our png m4 macro today looks for a sequence of library versions in the following order: "png14 png png12 png" using our AX_CHECK_LIB macro. First noting that debian based linuxes are currently planning to jump from png12 to png16 post "Ubuntu 16.04" as "the" png library, folks are going to get png16 on those newer Debians no matter installing png12. In standard set ups libpng will be sym linked to libpng16 for the sanity of the overall install. Drifting deeper, this gets to a ./configure issue in our set up that though systems can have multiple versions of libraries installed in the same standard directories, only one of those is the valid system lib default. If we want to enable use of other than default standard libaries longer term, I think what would might be good is to extend or modify our "--with-libpng[=DIR]" support such so it is something more like: "--with-libpng[=DIR | specifc library version]".
I think adding the the following note a good idea too given what you found with OSX and pkg-config:
Lastly, certain OSX environments do not install the program pkg-config
with autoconf. The program is currently necessary when
determining the link library flags for openexr. In these situations
also install:
pkg-config
I've made all the changes discussed above and will commit and push and update to this pull request shortly. We can further refined the changes if need be.
That's what I'd have originally thought, too; but I seem to remember having had trouble with at least one of those libraries when I did not specify the version number. Can't remember the details though. |
Having seached a bit on the 'net again, I guess I've rediscovered what the problem was: In Ubuntu, there are no packages named |
... oh, and there also doesn't seem to be a |
It will be usually be the case there will not be a package aligning with the generic names. I'm on Ubuntu 16.04 and when I look for packages I see the following specific versions are available doing queries with the generic names:
(Yes, I got the libz generic name wrong in shortening zlib1g-dev to zlib-dev in my last commit)
Testing installs using the generic names above (with -s to simulate the install) works OK for me:
zlib1g-dev gets put into /usr/lib/x86_64-linux-gnu/libz.so and libz.a such that the library link command is the usual -lz form. libjpg-dev is today libjpeg8 but "apt-cache search libjpeg" shows three version are available with one older and one newer. Aside. I did the following libpng test too given the new png16 version is coming soon:
and the interesting thing is both that it doesn't allow installation alongside libpng12 and that it removes libsdl1.2-dev for some reason I've been unable to determine. There is an updated version of libsdl1.2 for the Ubuntu release after xenial (17.*) but the changes are to me not obviously tangled with libpng. Guess we need to figure out if Ubuntu 17.04 is at png16 (It looks to be), and if so, whether sdl1.2 is there running OK.
|
Hmm... having retraced my steps, I guess I may have been thrown off the track by the generic name for |
No description provided.