intel / dleyna-server

dleyna-server is a library for implementing services that allow clients to discover, browse and manipulate Digital Media Servers. An implementation of such a service for linux is also included.
https://01.org/dleyna/
GNU Lesser General Public License v2.1
28 stars 28 forks source link

Out of tree build fails #143

Closed d99roric closed 10 years ago

d99roric commented 10 years ago

I've seen an issue in the way openembedded does out of tree builds and dleyna-server (0.4.0)

I end up with this build failure:

| oe-linux-gcc --sysroot=/my/path/openembedded-core/build/tmp-eglibc/sysroots/output -DHAVE_CONFIG_H -I. -I/my/path/openembedded-core/build/tmp-eglibc/work/my-arch-oe-linux/dleyna-server/0.4.0-r0/git/server -I.. -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/glib-2.0 -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/lib/glib-2.0/include -pthread -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/glib-2.0 -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/lib/glib-2.0/include -pthread -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/dleyna-1.0 -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/gupnp-1.0 -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/gssdp-1.0 -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/libsoup-2.4 -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/libxml2 -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/glib-2.0 -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/lib/glib-2.0/include -I/my/path/openembedded-core/build/tmp-eglibc/sysroots/output/usr/include/uuid -I../libdleyna/server -include config.h -O2 -pipe -g -feliminate-unused-debug-types -Wno-format-extra-args -c -o daemon.o /my/path/openembedded-core/build/tmp-eglibc/work/my-arch-oe-linux/dleyna-server/0.4.0-r0/git/server/daemon.c | /my/path/openembedded-core/build/tmp-eglibc/work/my-arch-oe-linux/dleyna-server/0.4.0-r0/git/server/daemon.c:28:51: fatal error: libdleyna/server/control-point-server.h: No such file or directory | #include <libdleyna/server/control-point-server.h> | ^ | compilation terminated. | make[2]: *\ [daemon.o] Error 1 | make[2]: Leaving directory `/my/path/openembedded-core/build/tmp-eglibc/work/my-arch-oe-linux/dleyna-server/0.4.0-r0/build/server'

To me it seems like the include paths are relative to current dir (-I../libdleyna/server) but as one can see OE build in a separate directory where the sources are not available (/my/path/openembedded-core/build/tmp-eglibc/work/my-arch-oe-linux/dleyna-server/0.4.0-r0/build/server, while sources are in /my/path/openembedded-core/build/tmp-eglibc/work/my-arch-oe-linux/dleyna-server/0.4.0-r0/git/), so -I ../libdleyna/server wont help.

rsbells commented 10 years ago

I looked at your fork and I approve your fix. You can merge it into the master...