Hi Francesco,
thank you very much for your quick response - your advices helped me a lot! But there is an another problem... Now I'm able to create both makefile and configure file, but I have problems with undefined references. I use wxXml??? classes in my projects so I'have added <wx-lib>xml</wx-lib> into my *.bkl file. In previous bakefiles version it worked fine but now I have got those errors:

./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlNode::GetPropVal(wxString const&, wxString*) const' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlDocument::wxXmlDocument()' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlNode::wxXmlNode(wxXmlNodeType, wxString const&, wxString const&)' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `vtable for wxXmlDocument' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlDocument::Load(wxInputStream&, wxString const&, int)' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlDocument::Save(wxString const&, int) const' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlDocument::Save(wxOutputStream&, int) const' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlDocument::Load(wxString const&, wxString const&, int)' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlNode::GetNodeContent() const' ./lib/libwxcode_gtk2u_wxsf-2.8.so: undefined reference to `wxXmlNode::GetPropVal(wxString const&, wxString const&) const'

I checked the linker output and it is as follows:

g++ -o samples/wxSFDemo/sfdemo sfdemo_FrameCanvas.o sfdemo_GUI.o sfdemo_MainApp.o sfdemo_MainFrame.o sfdemo_wx_pch.o -L./lib -L./lib -Wl,-rpath,../../lib -lwxcode_gtk2u_wxsf-2.8 -pthread -Wl,-Bsymbolic-functions -lwx_gtk2u_core-2.8 -lwx_baseu-2.8 You can see that only "base" and "core" wx libs are used (there should be the library file called "wx_baseu_xml-2.8 included as well"). I tried to add also references to another wx libs (like "adv") to my project, but the linker still uses only the "core" and "base" libs...

Is it a bug or am I ommiting something important?

Regards
Michal

Francesco Montorsi napsal(a):
Hi,

Michal Bližňák ha scritto:
Hi, i'm trying to use bakefiles system included in wxcode (latest SVN version), but I cannot create configuration files because of this error:

configure.ac:21: error: possibly undefined macro: m4_include
     If this token and others are legitimate, please use m4_pattern_allow.
     See the Autoconf documentation.
configure:4192: error: possibly undefined macro: AC_BAKEFILE

I tried to call ./acregen.sh in several components (wxsqlite3, advtable,...), but it always failed with the same error.
this is because you don't have bakefile.m4 macro in the paths searched by aclocal. I'd suggest you to either reinstall bakefile with --prefix=/usr or manually cp the bakefile.m4 file from /usr/local/share/aclocal to /usr/share/aclocal.

Moreover, If I try to create makefiles using the bakefile in my projects, the process fails with message:

[4/9] generating gnu from wxsf.bkl
/home/michal/Src/Projekty/wxCode/build/bakefiles/presets/wxcode.bkl:23: error: Please use the current stable branch as WX_VERSION option default and not &dollar;(shell $(WX_CONFIG) --selected-config | sed -e 's/.*-\([0-9]*\)\.\([0-9]*\)$$/\1\2/')! included from /home/michal/Src/Projekty/wxCode/components/shapeframework/build/wxsf.bkl:57

The same configuration files worked with bakefile 2.3. Any idea what is broken?
sorry for this! That was a problem I fixed in the 'build' folder of the wxCode CVS repository and then forgot to commit also in the 'build' folder of wxCode SVN repo. Done now.

Let me know if this helps...
Francesco


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to