Peculiar configure behaviour with cleanbuild
David Llewellyn-Jones
david at flypig.co.uk
Sat Oct 8 19:58:16 UTC 2016
Hi all,
I'm new to snaps and snapcraft, but have been enjoying learning about
it. Things seemed to be going well until I tried to build using cleanbuild.
The test in configure for glut is failing, even though as far as I can
tell glut is correctly installed. Here's the check I'm using in configure.ac
AC_CHECK_LIB([glut], [glutInit], [], [AC_MSG_ERROR([The glut library is
missing.])])
and here's the tail end of output from running snapcraft -d cleanbuild
...
checking for OPENVDB... yes
checking for glutInit in -lglut... no
configure: error: The glut library is missing.
Initially I just assumed glut wasn't installing correctly, so I built
the following file inside the container using `gcc test.c -lglut`
char glutInit ();
int main () {
return glutInit ();
}
This worked fine, so I'm really confused as to what the problem might
be. If anyone has any ideas, it'd be a great help.
Here are the complete files I'm using:
configure.ac
https://gitlab.com/flypig/functy/blob/master/configure.ac
snapcraft.yaml
https://gitlab.com/flypig/functy/blob/master/linux/snap/snapcraft.yaml
David
--
Website: http://www.flypig.co.uk
More information about the Snapcraft
mailing list