Am Dienstag, 1. April 2008 schrieb Thomas Zehbe: > > But regrettably a compile error occur: > > > > /misc/wxArt2D/modules/general/src/gen.cpp: In member function ‘size_t > > a2dIOHandlerStrIn::Read(wxChar*, size_t)’: > > /misc/wxArt2D/modules/general/src/gen.cpp:3565: error: no matching > > function for call to ‘std::basic_istream<char, std::char_traits<char> > > > > >::read(wxChar*&, size_t&)’ > > I did some further research and it seems that wxArt2D has problems to build > with unicode versions of wxWidgets if build with std iostream. > > My wxWidgets version, which produced this error was build with the > following options: > > /misc/wxWidgets-2.8.7/configure --with-gtk=2 --enable-debug > --enable-unicode --disable-universal --disable-monolithic --enable-gui > --enable-shared --enable-exceptions --with-odbc --with-opengl
Hi, made another config of wxWidgets by adding "--enable-std_iostreams=no" to the above configure options. With this config the mentioned compile error disappeared. But now the linker misses a lib when trying to link the mars example: Linking CXX executable mars /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: cannot find -lwx_gtk2ud_gl-2.8 Using ccmake to explore the configuration one can see that the library list (option WXART2D_LIBRARIES) in this case only contains the "stripped" library names, like "wx_gtk2ud_gl-2.8", but in the non unicode|static version mentiond below there are the full names listed, f. E: /misc/wxWidgets-2.8.7/art2dbuild/lib/libwx_gtk2d_gl-2.8.a I tried to modify WXART2D_LIBRARY_DIRS by adding the path, but this gets overwritten during config. So there must be something different in handling this. Regards, Thomas > > This seems to make a2dDocumentInputStream a std iostream, which isn't > compatible in unicode mode. (but that's a bit guessed). Mabe i should add > the --enable-streams option to try to get the wxStream versions. > > Then i build a completely different wx config: > > ../configure --enable-shared=no --enable-unicode=no --enable-debug > --with-opengl > > With this one wxArt2D compiled. And after i found howto build the missing > stc lib, even the sample programs could be linked and they work. > > I'll try to build my original config with wxStreams and see what happens. > > I'll keep you informed. > > Regards, > Thomas > > > Will look into it later. > > > > Thanks, > > Thomas > > > > > Klaas -- Dipl.-Ing. Thomas Zehbe Kuhweide 6 31552 Apelern ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev