Page 1 of 1

Compile VLC git with freeglut 3.0

Posted: 14 May 2015 13:54
by rvdboom
Hi!
I have trouble compiling VLC git against the new freeglut 3.0.0 :

Code: Select all

make[4] : on entre dans le répertoire « /usr/src/git/vlc/modules » CCLD libzip_plugin.la CCLD librtp_plugin.la CCLD libmotion_plugin.la CCLD libcaca_plugin.la CCLD libyuv_plugin.la /usr/bin/grep: /usr/lib64/libglut.la: No such file or directory /usr/bin/sed: can't read /usr/lib64/libglut.la: No such file or directory libtool: error: '/usr/lib64/libglut.la' is not a valid libtool archive make[4]: *** [libcaca_plugin.la] Erreur 1 make[4]: *** Attente des tâches non terminées.... make[4] : on quitte le répertoire « /usr/src/git/vlc/modules » make[3]: *** [all-recursive] Erreur 1 make[3] : on quitte le répertoire « /usr/src/git/vlc/modules » make[2]: *** [all] Erreur 2 make[2] : on quitte le répertoire « /usr/src/git/vlc/modules » make[1]: *** [all-recursive] Erreur 1 make[1] : on quitte le répertoire « /usr/src/git/vlc » make: *** [all] Erreur 2 root@coyote:/usr/src/git#
Indeed the new freeglut installation doesn't seem to provide a "/usr/lib64/libglut.la" file (these are Slackware packages) :

Code: Select all

root@coyote:/usr/src# tar tvf freeglut-3.0.0-x86_64-1rvdb.txz drwxr-xr-x root/root 0 2015-05-14 13:28 ./ drwxr-xr-x root/root 0 2015-05-14 13:28 usr/ drwxr-xr-x root/root 0 2015-05-14 13:28 usr/lib64/ -rwxr-xr-x root/root 479400 2015-05-14 13:28 usr/lib64/libglut.so.3.10.0 -rw-r--r-- root/root 633000 2015-05-14 13:28 usr/lib64/libglut.a drwxr-xr-x root/root 0 2015-05-14 13:28 usr/lib64/pkgconfig/ -rw-r--r-- root/root 260 2015-05-08 08:31 usr/lib64/pkgconfig/freeglut.pc drwxr-xr-x root/root 0 2015-05-14 13:28 usr/include/ drwxr-xr-x root/root 0 2015-05-14 13:28 usr/include/GL/ -rw-r--r-- root/root 681 2003-10-21 13:41 usr/include/GL/freeglut.h -rw-r--r-- root/root 10411 2014-10-17 18:28 usr/include/GL/freeglut_ext.h -rw-r--r-- root/root 27097 2014-10-17 18:28 usr/include/GL/freeglut_std.h -rw-r--r-- root/root 639 2003-10-21 13:41 usr/include/GL/glut.h drwxr-xr-x root/root 0 2015-05-14 13:28 install/ -rw-r--r-- root/root 183 2015-05-14 13:28 install/doinst.sh root@coyote:/usr/src#
while freeglut 2.8.1 did :

Code: Select all

root@coyote:/usr/src# tar tvf freeglut-2.8.1-x86_64-7rvdb.txz drwxr-xr-x root/root 0 2014-10-31 17:19 ./ drwxr-xr-x root/root 0 2014-10-31 17:19 usr/ drwxr-xr-x root/root 0 2014-10-31 17:19 usr/lib64/ -rwxr-xr-x root/root 428599 2014-10-31 17:19 usr/lib64/libglut.so.3.9.0 -rwxr-xr-x root/root 1386 2014-10-31 17:19 usr/lib64/libglut.la -rw-r--r-- root/root 556412 2014-10-31 17:19 usr/lib64/libglut.a drwxr-xr-x root/root 0 2014-10-31 17:19 usr/include/ drwxr-xr-x root/root 0 2014-10-31 17:19 usr/include/GL/ -rw-r--r-- root/root 681 2014-10-31 17:19 usr/include/GL/freeglut.h -rw-r--r-- root/root 26523 2014-10-31 17:19 usr/include/GL/freeglut_std.h -rw-r--r-- root/root 9007 2014-10-31 17:19 usr/include/GL/freeglut_ext.h -rw-r--r-- root/root 639 2014-10-31 17:19 usr/include/GL/glut.h drwxr-xr-x root/root 0 2014-10-31 17:19 install/ -rw-r--r-- root/root 186 2014-10-31 17:19 install/doinst.sh root@coyote:/usr/src#
I could not find any freeglut compile or install option to get a "/usr/lib64/libglut.la" file so I wonder if there is anything that can be done on the vlc side.

Re: Compile VLC git with freeglut 3.0

Posted: 20 May 2015 23:15
by Jean-Baptiste Kempf
You need to reconfigure VLC.

Posted: 23 May 2015 20:41
by rvdboom
Thanks for the answer.
Well that doesn't seem to be enough here. I ran a "make distclean" in the vlc directory, deleted "configure" and rerun bootstrap, and even cloned the whole directory again with git but I still get the same error.

Re: Compile VLC git with freeglut 3.0

Posted: 26 May 2015 20:53
by Jean-Baptiste Kempf
I have no idea, sorry.

Re: Compile VLC git with freeglut 3.0

Posted: 26 May 2015 21:40
by Rémi Denis-Courmont
Looks to me that the pkg-config file for libcaca or something underneath it, is wrong, or the config.cache file is stale.

Posted: 09 Aug 2015 13:49
by rvdboom
Sorry, it's been quite some time before I could have a look at this.
You were right, libcaca is indeed compiled against freeglut 2.8.1 and thus against linglut.la on Slackware.
I never used caca so I didn't realize the problem before.
Adding a "disable-libcaca" option to configure allowed the compilation to go through.
Thanks!