<p>I'm trying to install 'quadrupel', a library that relies on ffmpeg on Solaris x86.</p>

<p>I managed to build ffmpeg and its libraries live in /opt/gnu/lib and the includes are in /opt/gnu/include but when I try to build quadrupel, it can't find the ffmpeg headers.</p>

<p>What flags/configuration is required to include those two directories in the proper search paths for libraries and includes? I'm not much of a Makefile hacker.</p>

[{'answer_id': 47913, 'author': 'stimms', 'author_id': 361, 'author_profile': 'https://Stackoverflow.com/users/361', 'pm_score': 2, 'selected': True, 'text': "<p>You can override the path by setting the environmental variable LD_LIBRARY_PATH.  However I would suggest changing the system paths as well so you don't have to change the library path for all users.  This can be done using crel.  </p>\n\n<pre><code>crle -l -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/opt/gnu/lib\n</code></pre>\n\n<p>For the includes just add -I/opt/gnu/include to your CFLAGS variable.  </p>\n"}, {'answer_id': 47916, 'author': 'DGentry', 'author_id': 4761, 'author_profile': 'https://Stackoverflow.com/users/4761', 'pm_score': 3, 'selected': False, 'text': '<p>I believe you need to add the following to the Makefile:</p>\n\n<pre><code>CFLAGS  += -I/opt/gnu/include\nLDFLAGS += -L/opt/gnu/lib -R/opt/gnu/lib\n</code></pre>\n\n<p>The -I argument tell gcc where to find the include files. The -L flag tells ld where to find the libraries while linking. The -R flag writes /opt/gnu/lib into the library search path in the quadrupel binary, so it can find its libraries when it starts.</p>\n'}]
['https://Stackoverflow.com/questions/47883', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/555/']