From: Francesco M. <f18...@ya...> - 2007-04-11 19:35:44
|
Hi, Cursor ha scritto: > Hi All. > > In order to follow the wxcode guidelines for wxAvahi, I'm rewriting my > bakefiles with the wxcode bakefile system. To do that, I follow the page > http://wxcode.sourceforge.net/bakefile.php. I've just seen now that that page needs to be updated. Done now. > My bakefile is pretty > identical to other component bakefiles. > > In the step 5 : the bakefile_gen is not OK : > [1/2] generating gnu from wxavahi.bkl > error: failed to set variable '__objtmp' to value > '$(sources2objects(value, id, OBJEXT))': duplicate target name 'gcc > $(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)$(DIRSEP)wxavahi_lib_resolve.o' > at /usr/share/bakefile/rules/makefile.bkl:267 > when in <set> at /usr/share/bakefile/rules/makefile.bkl:267 > when in <sources> > at /home/mimile/workspace/wxCode/components/avahi/build/wxavahi.bkl:27 > when in <lib> > at /home/mimile/workspace/wxCode/components/avahi/build/wxavahi.bkl:26 > when processing target 'wxavahi_lib' > at /home/mimile/workspace/wxCode/components/avahi/build/wxavahi.bkl:26 > [bakefile_gen] error: bakefile exited with error > > The lib target is : > <lib id="wxavahi_lib" template="wxcode-lib,avahicommon" > cond="WX_SHARED=='0'"> > <sources>$(fileList('src/*.cpp'))</sources> > <headers>$(fileList('include/wx/avahi/*.h'))</headers> > </lib> > > I dont know why it duplicates target name. > The problem persists when I change lib's id. that's because you don't need to explicitely put those <sources> and <headers> tags. wxCode presets already do that internally. So that bakefile "sees" a list of sources in form: a.cpp b.cpp ... a.cpp b.cpp ... and complains about duplicated source file name Francesco |