Dear Klaas
  Thanks a lot for your help. I built wxArt2D successfully! I ran the
sample application.

On Thu, 2013-08-08 at 22:10 +0200, klaas.holwerda wrote:
> Hi Pang Long,
> 
> I am currently using 12.3 SUSE, used Ubuntu before, so far not much
> difference when compiling.
> 
> Be sure to set for wxWidgets compile, the next firs (certainly needed
> for wxLua).
> 
> export CXXFLAGS=-fPIC CFLAGS=-fPIC
> 
  When I compiled wxLua, it reported the conflicts at -fPIC. By
searching web, I found that it was advised to add -fPIC flags and use
shared build. But it was contradiction with your advised build option.
So I gave up to build wxLua. For now, it is not necessary for me. I
mistakenly thought wxLua was the required dependency. After I read
carefully again your install instructions, I found it was optional.

> Also make sure all in /usr/local which is from wxWidgets and wxLua or
> wxArt2D or wxStedit  is first removed, else things get mixed up.
> So in /usr/local/lib /usr/local/include /usr/local/share etc. 
> E.g. headers from older versions used for current compile (this looks
> actually to be your problem).
  
  To be lazy, I used wxWidgets 2.8.12.1 from ubuntu repository. There
was a strange error report. At wxartbase/general/src/gen.cpp 4830, the
build could not recognize wxWidgets built-in type wxMBConv, which is
defined in wx/strconv.h as class WXDLLIMPEXP_BASE wxMBConv at line 52. I
don't know how to solve it. Then I decided to compile wxWidgets 2.9.5.
At my laptop, I didn't remove wxWidgets 2.8 installed by ubuntu
repository. After manual compilation of wxWidgets 2.9.5, wxArt2D builds
successfully. 
> 
> Also work with the latest svn of wxLua and wxArt2D. wxLua did change a
> lot lately, and i am working to get it running again since 2 days.
> So first do not enable wxLua in wxArt2D, you can later add it.
  
  Thank you very much for your timely reply. 
> 
> I just now compiled with:
> export CXXFLAGS=-fPIC CFLAGS=-fPIC
   I forgot to export this option. Maybe later, for wxLua, I have to
re-build wxWidget again. At least, my need is met ;-)
> 
> ./wxWidgets-2.9.5/configure --with-gtk --enable-debug
> --enable-debug_gdb --disable-shared --with-opengl
> --enable-graphics_ctx
   I execute exactly your advised configure options.

> When make and installed,
> use cmake-gui for wxArt2D and wxLua also.
> 
> Source
> code: /home/klaas/soft/svncheckout/trunk/wxArt2D/packages/wxdocview
> Binaries: 
> /home/klaas/soft/svncheckout/buildall/unix/gcc_gtkud/packages/wxdocview
> 
> Source
> code: /home/klaas/soft/svncheckout/trunk/wxArt2D/packages/wxart2d
> Binaries: 
> /home/klaas/soft/svncheckout/buildall/unix/gcc_gtkud/packages/wxart2d
> 
> Had to add to CMAKE_CXX_FLAGS the flag  -pthread
> Do set wxWidgets_USE_DEBUG in cmake-gui to On.
> And CMAKE_VERBOSE_MAKEFILE is also a good idea in this stage.

Directed by http://www.wxart2d.org/moin/WxArt2dInstallCmake, I manually
build wxArt2D.

> This makes wxArt2d compile correctly, if the above does not help, sent
> me more detailed information.
> 
> Like that i thought i checked in the next fix, and i see it, why do
> you not have it?? 
> 
> Use of undefined type "wxXmlNode" in file xh_a2dmenu.cpp.
> #include <wx/xml/xml.h> in "xh_a2dmenu.cpp" fixes it.

Right now, I checked out wxArt2D again at my laptop and build it again.
It still reported the same error. After adding the line, it works now.
I'm junior for svn. I used to git for my own code. The following is my
check-out command from http://www.wxart2d.org/moin/UbuntuInstall:

svn co https://wxart2d.svn.sourceforge.net/svnroot/wxart2d/trunk/wxArt2D
wxArt2D

> Let me know how far you get now!
> 
  wxArt2D sample works! I'm a student. My project is on static code
analysis. My objective is to interactively visualize the analysis
result. I found wxArt2D met my need such as interactive choosing
elements. For now, Graphviz is used to output static graph. Could you
please give me some advices? I'm reading the wiki docs and sample codes.
I hope I can do something for wxArt2D. 
  Thanks a lot for your help again!

Yours 
Long

> Regards,
> 
> Klaas
> 
> 
> On 08/08/2013 09:04 AM, pang long wrote:
> 
> > Dear sir/ms
> >  My OS is ubuntu 12.04 (64bit)
> >  My wxWidget version is 2.9.5, which is build by source code.
> >  The following is the configure command line I used.
> >  ../wxWidgets-2.9.5/configure --with-gtk --enable-debug
> > --enable-debug_gdb --disable-shared --with-opengl --enable-graphics_ctx 
> >  I failed to build wxLua, so I gave up.
> >  Directed by your page at
> > http://www.wxart2d.org/moin/WxArt2dInstallCmake, I successfully build
> > agg and kbool.
> >  However, I encountered an build error at wxdocview:
> > -------------------------------------------------------------------------
> > [ 23%] Building CXX object
> > docview/src/CMakeFiles/docview.dir/xh_a2dmenu.cpp.o
> > /home/me/mywork/sca/editor/wxArt2D/packages/wxdocview/docview/src/xh_a2dmenu.cpp:
> >  In member function ‘virtual wxObject* 
> > a2dToolBarXmlHandler::DoCreateResource()’:
> > /home/me/mywork/sca/editor/wxArt2D/packages/wxdocview/docview/src/xh_a2dmenu.cpp:338:21:
> >  error: invalid use of incomplete type ‘struct wxXmlNode’
> > /usr/local/include/wx-2.9/wx/xrc/xmlreshandler.h:27:27: error: forward
> > declaration of ‘struct wxXmlNode’
> > /home/me/mywork/sca/editor/wxArt2D/packages/wxdocview/docview/src/xh_a2dmenu.cpp:338:36:
> >  error: ‘wxXML_ELEMENT_NODE’ was not declared in this scope
> > /home/me/mywork/sca/editor/wxArt2D/packages/wxdocview/docview/src/xh_a2dmenu.cpp:339:24:
> >  error: invalid use of incomplete type ‘struct wxXmlNode’
> > /usr/local/include/wx-2.9/wx/xrc/xmlreshandler.h:27:27: error: forward
> > declaration of ‘struct wxXmlNode’
> > /home/me/mywork/sca/editor/wxArt2D/packages/wxdocview/docview/src/xh_a2dmenu.cpp:339:59:
> >  error: invalid use of incomplete type ‘struct wxXmlNode’
> > /usr/local/include/wx-2.9/wx/xrc/xmlreshandler.h:27:27: error: forward
> > declaration of ‘struct wxXmlNode’
> > /home/me/mywork/sca/editor/wxArt2D/packages/wxdocview/docview/src/xh_a2dmenu.cpp:349:18:
> >  error: invalid use of incomplete type ‘struct wxXmlNode’
> > /usr/local/include/wx-2.9/wx/xrc/xmlreshandler.h:27:27: error: forward
> > declaration of ‘struct wxXmlNode’
> > make[2]: *** [docview/src/CMakeFiles/docview.dir/xh_a2dmenu.cpp.o] Error
> > 1
> > make[1]: *** [docview/src/CMakeFiles/docview.dir/all] Error 2
> > make: *** [all] Error 2
> > 
> > ----------------------------------------------------------------------------------
> > Yours
> > PANG Long
> > 
> > 
> > ------------------------------------------------------------------------------
> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
> > It's a free troubleshooting tool designed for production.
> > Get down to code-level detail for bottlenecks, with <2% overhead. 
> > Download for free and get started troubleshooting in minutes. 
> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Wxart2d-users_dev mailing list
> > Wxart2d-users_dev@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
> 
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead. 
> Download for free and get started troubleshooting in minutes. 
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________ Wxart2d-users_dev mailing 
> list Wxart2d-users_dev@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to