From: Francesco M. <f18...@ya...> - 2005-09-10 15:36:39
|
Hi, Ulrich Telle wrote: > Not really. configure did not work since it believed that the makefiles > were created by bakefile 0.1.9 although I definitely created them with > 0.1.9.1. I changed the version number in autoconf_inc.m4 from 0.1.9 to > 0.1.9.1. yes; this is a bug in the latest version of bakefile which has already been solved in the CVS. I forgot to mention it, sorry. >Thereafter I could exceute configure without error messages. > But when executing make I got > > cc1plus: > File or directory not found: > opening dependency file > autoconf_dll/wxpdfdoc_dll_pdfdoc.d > > The reason is that I had added the line > > <set var="BUILDDIR">$(FORMAT)$(WXLIBPOSTFIX)$(POSTFIX)</set> > > to the bakefile of my component, so that I'm able to build my component > for different wxWidgets configurations like ANSI, UNICODE, with or > without DEBUG etc., but the makefile does not create the directory if it > does not exist (as does MSVC). I created it manually. make then worked. > > I still have several questions: > > 1) What changes are needed in my component's bakefile or elsewhere so > that the BUILDDIR directory is created if it does not exist? that's not an easy thing like it could seem. Please seem my old post (and the replies): http://article.gmane.org/gmane.comp.sysutils.bakefile.devel/142 for more info. In short, you should not use BUILDDIR != "." with autoconf since the author of Bakefile decided not to support automatic BUILDDIR creation with autoconf and it's not easy to add this manually. Thus I suggest you to use: <if cond="FORMAT!='autoconf'"> <set var="BUILDDIR">$(FORMAT)$(WXLIBPOSTFIX)$(POSTFIX)</set> </if> > 2) What changes are needed that the component's library name reflects > for which wxWidgets build it was created? the libname should get the [u][d] postfix like it does on windows... but it won't use exactly the same naming convention used by wx under unix... (i.e. libwx_[gtk2,x11][u][d]_sublib-MAJOR.MINOR.so.0.RELEASE.0) > 3) How do I create my component for different wxWidgets builds using the > Makefile created by configure? Is it sufficient to specify for example > -DDEBUG and/or -DUNICODE when invoking make? Or whatelse is needed? the Makefile created by configure can be used only for the configuration you told to "./configure"... if you need to use another wx build, you should do a "make install" for that wx build and then relaunch your component's "configure" script. The Makefile will be adapted to the currently installed build of wx (and here comes in the bug I told you in some previous mail: wx build flags detection is buggy in wxcode bakefiles since prior 2.6.2 it was not possible to detect them easily). Francesco PS: I'm moving the thread from wxusers to wxcode since I think it's more relevant there. |