avcpp icon indicating copy to clipboard operation
avcpp copied to clipboard

avcpp is not usable as meson subproject (uninstalled) due to headers in src directory

Open piotrrak opened this issue 5 years ago • 3 comments

Hello

As in subject when uninstalled I can't use library, because headers can't be included correctly:

#include <avcpp/av.h>
// or
#include "avcpp/av.h"

I am aware of 3 potential solutions to that, two simple, one not that simple:

I can live with my 'copy headers' workaround, didn't care yet to implement it for cmake though.

piotrrak avatar Sep 24 '20 20:09 piotrrak

I am not a Meson guru, but current layout work well for CMake projects as subproject as well. CMake is prioritized build system for me, so, I don't want to change project layout. Build system should help and should not mess :-)

h4tr3d avatar Sep 25 '20 03:09 h4tr3d

I am not anything guru to be honest. Please note that currently even samples are using internal include path. This won't build with cmake or meson: samples changes. Just thought it would be nice to give users code that compiles, no matter if library is installed or not. Installing headers workaround for meson works for me; That's option 3 I've mentioned and did not involve changing directory structure.

piotrrak avatar Sep 25 '20 13:09 piotrrak

Take a look.

h4tr3d avatar Mar 05 '21 00:03 h4tr3d