I still don't understand what you're trying to do exactly. At your first post you mentioned that you needed a newer version. In the last one, you talk about using a static library of 2.8.0.Papasot wrote:Apparently, but the fact is I still need the static library (libglut.a), which is not provided by the package management (only dynamic library is installed by gslapt).
No, slapt-get insists that you have a freeglut package installed. Not the specific default package. You can replace the default package anytime. If the new package is named exactly as the old one, slapt-get won't care at all. If there is some difference in the name (version, release...), you can just add freeglut to the EXCLUDE list in /etc/slapt-get/slapt-getrc.Papasot wrote:Since the system basically makes built-in package freeglut imperative
If you also need the dynamic library of a newer version, you can do that. Install the newer library somewhere else (/opt/freeglut will do for example) and then use LD_LIBRARY_PATH whenever you want to use it.Papasot wrote:(1) install a second version of freeglut from source (which will include the static library I need)
I don't see how this would have any ill effects for your system. Other than the static library not removed when you remove the freeglut package.Papasot wrote:(2) download freeglut 2.8.0 from sourceforge, compile it without installing, and copy produced static library to /usr/lib64.
I guess you haven't found the source directory in the repositories yet.Papasot wrote:I can't be sure downloaded source is exactly the same as the one used to make the Slackware package, even though they both have the same version number (we all know about "revisions", plus the fact distro developers often alter the code so that it's not ncessarily the same as the one software devs provide).
The best solution would be to have access to the sources used to produce the Slackware package, so that I could compile that source, get the missing static library, and copy it to /usr/lib64. That way, I could be sure said static library is 1:1 equivalent to the dynamic library gslapt installed. So, I wonder, is there any way to get my hands on package sources?
http://slackware.uk/salix/i486/slackwar ... /freeglut/
If you only need the static library of version 2.8.0, you can just remove the "--disable-static" line from the SlackBuild and rebuild the package. slapt-get will not care that it's actually a different package than the default one if it has the same name. It will still get replaced if an upgrade appears in the repos at some point, in which case, you could just rebuild the newer version again.
If you need the static library of a newer version, your (2) option is OK. If you also want to have a package of it, nothing stops you from creating a freeglut3 or freeglut-static package that will only include the static library and nothing else. If you want to share it on multiple PCs, you could also put it in a private repository and add that repository to all your slapt-getrc files.
14.2 will include freeglut-2.8.1 and no static library is included in the package.Papasot wrote:As mimosa said, 14.2 is probably not very far away, but even if the static library I am looking for will be there, another one might be missing, so a way to compile static libraries for installed packages is still needed.