Hi,

On 08/21/2013 06:06 PM, pang long wrote:
> --------------------------------------------------
> (1.a)Linker reported the error that
> --------------------------------------------------

The order of libraries is important.
I advice  you to base your own programs on "myapp" as you should have compiled 
as part of wxart2d.

See: http://www.wxart2d.org/moin/MyOwnApp

e.g. goto where you want to build

mkdir buildmyapp
cd buildmyapp

cmake-gui

source: /home/klaas/soft/buidlartdeb/packages/wxart2d/myapp
binary: /home/klaas/soft/buidlartdeb/buildmyapp

set also CMAKE_VERBOSE_MAKEFILE

And now make it.

Do you succeed?

Because you did build verbose, you will see what order is okay and what not.

If yes, extend the CmakeList.txt to what you want etc.

Stick to Cmake, makes it easier.



> ==================================================================
> (2)Problems on sample in packages/wxart2d/samples/editor/vdraws
> ==================================================================
> It supports SVG importing. So I inspected it. But for now, it's still
> complex for me.

As i explained, SVG is not able to attach events to objects, it just reads the 
graphical data to a 
certain extend.
If you want to have special objects (not rectangles circles etc), you need to 
make them as a derived 
a2dCanvasObject.
So the connected graph in graphiz will not be an editable graph in wxart2d when 
only reading SVG.

Send me an SVG file like that, to see what it contains. I think it is just 
plain graphics.


> ------------------------------------------------------------------
> (2.a) Texts in svg were rendered too large so that SVG are showed
> disorder

Might be, SVG import is not perfect, but just the font should not be so 
complicated to fix.

bool a2dIOHandlerSVGIn::LoadSvgText( a2dCanvasObject* parent )
{
     if ( GetTagName() != _T( "text" ) )
         return false;

     a2dText* text = new a2dText( GetContent() );

> ------------------------------------------------------------------
>   I failed to build freetype-2.4.2. I changed header definition in sample
> to exclude the freetype. Does it matter?

If on Linux, i think it is enough to just install freetype + devel headers from 
ubuntu repos.


>
> -----------------------------------------------------------------
> (2.b) vdraws does not support title element
> -----------------------------------------------------------------
> I delete title elements in my file manually now.

parssvg.cpp.

If you manage to fix it, i will add it.

>
>     
> (BTW, Klaas, could you please give me some hints? Thanks in advance!)

If you send me a graphviz file and it SVG equivalent, i can better judge what 
to do.

Regards,

Klaas






------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&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