The recommendation of adding the _UNICODE definition to the
CMakeLists.txt has yielded some progress onto other errors in my
application compilation.  Woohoo!  :]  I'll report back on that after
more exploration.  Now for a couple quick comments.

>> Previously I had compiled wxWidgets using ./configure within MSYS
>> according to another guide.  This resulted in the libraries being
>> placed in a different folder structure than when using MinGW directly
>> via cmd.exe as the PLplot wiki recommends.  CMake actually offers two
>> methods to search for wxWidgets.  The variable wxWidgets_FIND_STYLE
>> can be set as either unix or win32.  Though I didn't get the find
>> working with the unix style, I presume that that is why CMake had
>> trouble finding my copy of wxWidgets.
>
> The Unix style needs the availibility of the command wx-config, which is
> only available for cygwin and msys (that I'm not sure) but also only within
> these environments. If you then compile a program on cmd.exe, wx-config
> won't work anymore (you need then the win32 style for mingw/cmd.exe).

I was lucky enough to find a win32 port.

http://wxconfig.googlepages.com/

It doesn't magically provide you with backtick support, but at least
you can copy and paste the compiler and linker options into your IDE
for whichever build you happened to do.

>> And then?  I recompiled wxWidgets (with both monolithic and not) and
>> PLplot as static, unicode and release.  Compilation of both went
>> flawlessly, but when I compile my project I get:
>>
>> g++ -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE
>> -ID:\Projects\wxWidgetsTest\Libraries\wxWidgets-2.8.9\lib\gcc_lib\mswu
>> -ID:\Projects\wxWidgetsTest\Libraries\wxWidgets-2.8.9\include
>> -Wno-ctor-dtor-privacy -pipe -fmessage-length=0
>> -ID:\Projects\wxWidgetsTest\Workspace\MinGW
>>
>> -ID:\Projects\wxWidgetsTest\Libraries\plplot-5.9.2\buildmingw\install\include
>> -O3 -Wall -c -fmessage-length=0 -owxGlade\wxMinimal.o
>> ..\wxGlade\wxMinimal.cpp
>> g++ -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE
>> -ID:\Projects\wxWidgetsTest\Libraries\wxWidgets-2.8.9\lib\gcc_lib\mswu
>> -ID:\Projects\wxWidgetsTest\Libraries\wxWidgets-2.8.9\include
>> -Wno-ctor-dtor-privacy -pipe -fmessage-length=0
>> -ID:\Projects\wxWidgetsTest\Workspace\MinGW
>>
>> -ID:\Projects\wxWidgetsTest\Libraries\plplot-5.9.2\buildmingw\install\include
>> -O3 -Wall -c -fmessage-length=0 -osrc\minimal.o ..\src\minimal.cpp
>> g++ -oMinGW.exe -mthreads
>> -LD:\Projects\wxWidgetsTest\Libraries\plplot-5.9.2\buildmingw\install\lib
>> -LD:\Projects\wxWidgetsTest\Libraries\wxWidgets-2.8.9\lib\gcc_lib
>> wxGlade\wxMinimal.o src\minimal.o -lwxmsw28u_html -lwxmsw28u_adv
>> -lwxmsw28u_core -lwxbase28u_xml -lwxbase28u_net -lwxbase28u -lwxtiff
>> -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32
>> -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32
>> -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
>> -lplplotwxwidgetsd -lplplotd -lplplotcxxd -lcsirocsa
>>
>> D:\Projects\wxWidgetsTest\Libraries\plplot-5.9.2\buildmingw\install\lib/libplplotd.a(wxwidgets.obj):wxwidgets.cpp:(.text+0xd2a):
>> undefined reference to `wxStringBase::InitWith(char const*, unsigned
>> int, unsigned int)'
>>
>> D:\Projects\wxWidgetsTest\Libraries\plplot-5.9.2\buildmingw\install\lib/libplplotd.a(wxwidgets.obj):wxwidgets.cpp:(.text+0xd6e):
>> undefined reference to `wxStringBase::InitWith(char const*, unsigned
>> int, unsigned int)'
>> - followed by a bunch more undefined references
>
> Also because _UNICODE is not defined.

Doesn't the -D_UNICODE option (specified by wx-config) define it?  It
is present in both compiler calls and I didn't think it would be
applicable to the linker call (especially since wx-config didn't list
it).  Or, are you referring to defining _UNICODE back in the initial
PLplot compilation?

> HTH,
> Werner

Thanks for the continued help,
-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