I got it.

> So first question is, did you compile wx on codeblocks static?
> Non static on windows is no good.
> Did you manage to compile the samples of wxArt2d/packages/wxart2d/samples, 
> and do they work?

Yes, I have created static wxArt2D libraries and all the samples have
built and execute fine.

When building wxArt2D, I told cmake to create CodeBlocks project files.
I loaded the canvas/simple project and configured CodeBlocks to show the
full command line (Settings -> Compiler and debugger -> Other settings
-> Compiler logging = Full command line). I then renamed the
sample_canvas_simple.exe file to force a rebuild. Hit build and out
popped the linker command line. I copied the libraries and their link
order to my project and it linked without error.

Any idea how to get mingw32-make to show the full command line? Then the
CodeBlocks project file wouldn't be required.

There was one oddity that I had to correct for freetype. When built, a
libary file named freetype.a is created. To get mingw32-make to find the
file, I had to make a copy and name it libfreetype.a. I expect gcc make
has the same issue. Are there better ways to deal with this issue?

In the end, the libraries need to appear in this order,

libwxart2d_msw28ud_curves.a
libwxart2d_msw28ud_editor.a
libwxart2d_msw28ud_canextobj.a
libwxart2d_msw28ud_canvas.a
libwxart2d_msw28ud_svgio.a
libwxart2d_msw28ud_gdsio.a
libwxart2d_msw28ud_artbase.a
libwxart2d_msw28ud_aggdrawer.a
libwxart2d_msw28ud_genart.a
libfreetype.a
libaggctrl.a
libaggplatform.a
libagg.a
libkbool.a
libwxdocview_msw28ud_docview.a
libwxdocview_msw28ud_general.a
libwxdocview_msw28ud_xmlparse.a
libwxexpatd.a

Of course, the search paths need to be setup correctly to find the files.

Thanks for the help!

David

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to