<div dir="ltr"><div>Hi!</div><div><br></div>From parts/functy/build/config.log:<div>configure:4733: checking for glutInit in -lglut</div><div>configure:4758: g++ -o conftest  -I/home/ubuntu/functy/parts/functy/install/usr/include -I/home/ubuntu/functy/stage/include  -I/home/ubuntu/functy/parts/functy/install/usr/include -I/home/ubuntu/functy/stage/include  -L/home/ubuntu/functy/parts/functy/install/lib -L/home/ubuntu/functy/parts/functy/install/usr/lib -L/home/ubuntu/functy/parts/functy/install/lib/x86_64-linux-gnu -L/home/ubuntu/functy/parts/functy/install/usr/lib/x86_64-linux-gnu -L/home/ubuntu/functy/stage/lib -L/home/ubuntu/functy/stage/usr/lib -L/home/ubuntu/functy/stage/lib/x86_64-linux-gnu -L/home/ubuntu/functy/stage/usr/lib/x86_64-linux-gnu conftest.cpp -lglut   >&5</div><div>./configure: line 1588: g++: command not found<br></div><div><br></div><div>After adding g++ to build-packages, configure works for me and build completes fine  :-)</div><div><br></div><div>Cheers,</div><div>- Loïc Minier</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 8, 2016 at 9:58 PM, David Llewellyn-Jones <span dir="ltr"><<a href="mailto:david@flypig.co.uk" target="_blank">david@flypig.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm new to snaps and snapcraft, but have been enjoying learning about<br>
it. Things seemed to be going well until I tried to build using cleanbuild.<br>
<br>
The test in configure for glut is failing, even though as far as I can<br>
tell glut is correctly installed. Here's the check I'm using in <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
<br>
AC_CHECK_LIB([glut], [glutInit], [], [AC_MSG_ERROR([The glut library is<br>
missing.])])<br>
<br>
and here's the tail end of output from running snapcraft -d cleanbuild<br>
<br>
...<br>
checking for OPENVDB... yes<br>
checking for glutInit in -lglut... no<br>
configure: error: The glut library is missing.<br>
<br>
Initially I just assumed glut wasn't installing correctly, so I built<br>
the following file inside the container using `gcc test.c -lglut`<br>
<br>
char glutInit ();<br>
int main () {<br>
        return glutInit ();<br>
}<br>
<br>
This worked fine, so I'm really confused as to what the problem might<br>
be. If anyone has any ideas, it'd be a great help.<br>
<br>
Here are the complete files I'm using:<br>
<br>
<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
<a href="https://gitlab.com/flypig/functy/blob/master/configure.ac" rel="noreferrer" target="_blank">https://gitlab.com/flypig/<wbr>functy/blob/master/configure.<wbr>ac</a><br>
<br>
snapcraft.yaml<br>
<a href="https://gitlab.com/flypig/functy/blob/master/linux/snap/snapcraft.yaml" rel="noreferrer" target="_blank">https://gitlab.com/flypig/<wbr>functy/blob/master/linux/snap/<wbr>snapcraft.yaml</a><br>
<br>
David<br>
<span class="HOEnZb"><font color="#888888">--<br>
Website: <a href="http://www.flypig.co.uk" rel="noreferrer" target="_blank">http://www.flypig.co.uk</a><br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Loïc</div></div>
</div>