John Labenski ha scritto: > Ok, starting over, the wxStEdit bakefiles are updated to the ones in > wxCode/build and I've regenerated everything using bakefile 0.2.0 in > MSW using the prebuilt exe. Committed and did a checkout in linux and > ran acregen.sh to get a new configure. > > The problem is that in components/wxstedit/build/wxstedit.bkl I have > specified the libs to link to, but they do not get put into > Makefile.in or perhaps configure by bakefile or perhaps > autoconf_inc.m4. > > These are libs the exe should link to. > <library>stedit_lib</library> > <wx-lib>stc</wx-lib> > <wx-lib>html</wx-lib> > <wx-lib>adv</wx-lib> > <wx-lib>core</wx-lib> > <wx-lib>base</wx-lib> <!-- base must be last wx-lib --> right - however for its nature, bakefile's autoconf format simply ignores any wx-lib tag. It's the task of the configure script to detect which libs are available in which format, etc. Thus it's the configure script that sets up the WX_LIBS variable
> These are the libs it does link to using configure's generated Makefile. > > WX_LIBS = -L/home/john/wx/wxWidgets/wxCVS/wxWidgets/config_gtk2_debug/lib > -pthread > -Wl,-rpath,/home/john/wx/wxWidgets/wxCVS/wxWidgets/config_gtk2_debug/lib > -lwx_gtk2ud_core-2.7 -lwx_baseud-2.7 > > Makefile.in has > WX_LIBS = @WX_LIBS@ > > so configure must generate them, right? right > configure has this > WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs` > where > WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCFG_FLAGS > $WX_ADDITIONAL_LIBS" > > BUT! This looks hardcoded in configure > WX_ADDITIONAL_LIBS=",core,base" > > I don't see where any other libs can be put into WX_ADDITIONAL_LIBS? using AM_WXCODE_CHECKS macro > There's something at the end of build/configure.ac, but I don't > understand it at all. > > # argument 1: here put the minimum required version of wx > # argument 2: here you must put a comma-separed list of all wx > required libraries > # except for base,core (e.g. "xml,net,adv"); leave empty > if you use only core & base > AM_WXCODE_CHECKS([2.4.0], []) yes exactly!! this is where you should add the list of wx libs you need for autoconf format; e.g.: AM_WXCODE_CHECKS([2.4.0], [stc,html,adv]) The comments look clear to me since I wrote them :D What exactly is unclear in it? Maybe that same (e.g. "xml,net,adv") is a little misleading? > this is in wxCode/build/autoconf/wxcode.m4 and only calls > AM_WXPRESETS_FULL in wxCode/build/autoconf/wxpresets.m4 which is > rather cryptic, I tried to make all autoconf macros as ordered as possible but M4 script language is a bit cryptic itself so they are not very readable unfortunately... >but it looks like it just checks for stuff and doesn't > actually set any libs. it does a lot of stuff actually - it detects the installed wx builds on the user's system, looks at the configure options given by the user and then tries to find a good matching eventually giving out a nice error message. The libraries which it substitutes to WX_LIBS are those passed to AM_WXCODE_CHECKS + base,core as documented. Francesco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users