>> Back to following the instructions on the PLplot wiki.  I compiled
>> wxWidgets as release, shared and unicode.  Then I moved on to CMake
>> for PLplot specifying the mswu wxWidgets configuration and the
>> wxWidgets_LIB_DIR.  CMake found wxWidgets but failed to actually build
>> with the following error:
>>
>> [ 60%] Building CXX object
>> bindings/wxwidgets/CMakeFiles/plplotwxwidgetsd.dir/wx
>> PLplotwindow.obj
>> Linking CXX shared library ..\..\dll\libplplotwxwidgetsd.dll
>> Creating library file: ..\..\dll\libplplotwxwidgetsd.dll.a
>>
>> CMakeFiles\plplotwxwidgetsd.dir\wxPLplotwindow.obj:wxPLplotwindow.cpp:(.text$_ZN
>> 12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x27):
>> undefined r
>> eference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
>> collect2: ld returned 1 exit status
>
> This is due a bug FindwxWidgets.cmake, either add
>
> add_definitions(-D_UNICODE)
>
> to CMakeLists.txt in the plplot main file. Or look for wxUNICODE in
> gcc_dll/mswu/setup.h (or similar) and set it to 1. This flag is always 0
> even if you compiled wxWidgets with UNICODE=1, you have to do it on your
> own, or set the _UNICODE flag on the command line.
>

This worked for this stage and eventually I got my application to
compile with PLplot.  Hip-hip..  hoorah!  Another piece of the puzzle
was finding and using pkg-config for win32 to provide an appropriate
set of linker flags.  I didn't find this right off the bat, so here's
a link for anyone else who ends up perusing this thread for help:

http://www.gtk.org/download-windows.html

Just remember to set the PKG_CONFIG_PATH variable to the
<install>\lib\pkgconfig directory so it can find the PLplot files.
Now on to actual programming and figuring out how to use this.  Oh,
and repeating this process from scratch so I can document it well on
the wiki.

> HTH,
> Werner

Yes, it finally did the trick.  Thanks again for sticking it out and
getting me to the bottom of this.

-kyle

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to