From: Jaakko S. <jaa...@pp...> - 2006-08-27 16:55:34
|
Francesco Montorsi wrote: > Jaakko Salli ha scritto: > >> Francesco Montorsi wrote: >> >>>> I'm compiling a component for wxWidgets 2.7.0, >>>> and it seems that bakefile-generated makefiles >>>> are not generated correctly for it. In the >>>> resulting makefile.vc, for instance, I would >>>> need to manually adjust WX_VERSION to 27 before >>>> it builds. >>>> >>>> >>> you can fix this using: >>> >>> <set var="WX_VERSION_DEFAULT">27</set> >>> >>> just after >>> >>> <include file="$(WXCODE_BAKEFILEDIR)/defaults.bkl"/> >>> >>> >> That didn't work, but <set var="WX_VERSION">27</set> >> seemed to do the trick instead. >> > strange - need to look into this later. > If its any help, <set var="WX_VERSION_DEFAULT">27</set> only worked for me if it was placed before the include line, and the default value was commented out in defaults.bkl. >> Also, I'm getting following error message, with wxWidgets >> 2.7.0 only, even now with the version set: >> >> [6/6] generating autoconf from mycomp.bkl >> ...\wxCode\build\bakefiles\wxhacks.bkl:53: error: option 'WX_DIR' >> already defined >> included from ...\wxCode\build\bakefiles\defaults.bkl:87 >> included from ...\wxCode\components\mycomp\build\mycomp.bkl:7 >> [bakefile_gen] error: bakefile exited with error >> > I've checked in a little fix for that; it should work now. > Indeed it does. Thanks, Jaakko |