[Spice-devel] Build from source
Christophe Fergeau
cfergeau at redhat.com
Mon May 12 09:35:27 PDT 2014
Hey,
On Wed, May 07, 2014 at 01:01:14AM +0000, Klaus Hochlehnert wrote:
> that worked, but I had to change it in all configure.ac files:
> configure.ac
> spice-common/configure.ac
> spice-common/spice-protocol/configure.ac
>
>
> After that I ran into the next issue:
> make[4]: Entering directory `/usr/src/spice-gtk-20140507/spice-common/common'
> Makefile:511: .deps/generated_client_demarshallers.Plo: No such file or directory
Yes, this is a known issue. For some reason this was working for me when
I sent the patches, and no longer worked when I tested them again :)
My understanding is that it's a bug/limitation with subdir-objects
support in automake: http://mytestbed.net/issues/1327
The 'subdir' part in 'subdir-objects' is important as referring to
some/dir/file.c relative to the current build directory is fine, but
referring to $(top_srcdir)/spice-common/common/sw_canvas.c does not play
well with subdir-objects and lead to the kind of issue you are
describing.
The way I'm planning to workaround this is to add some small
client_sw_canvas.[ch] wrappers which will just #include the needed
files. This will also make it possible to hide the SW_CANVAS_CACHE
#define in there rather than having it in the CFLAGS for every file that
we build. This has the side-effect that subdir-objects is no longer
needed for spice-gtk (it's not required either for spice-common in git
master).
I haven't checked if these changes go well with the server code. Hope to
send the patches for all of that tomorrow...
Christophe
More information about the Spice-devel
mailing list