On Wed, May 7, 2008 at 8:31 AM, Eric Wilhelm <[EMAIL PROTECTED]> wrote: > # from Gabor Szabo > # on Tuesday 06 May 2008: > > > >> What do you get for `wx-config --cxxflags`? > > > >-I/usr/lib/wx/include/base-unicode-release-2.8 -I/usr/include/wx-2.8 > >-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0 -pthread > > The wxUSE_GUI=0 was probably a bad sign ;-) When it is setup correctly, > the build will find -D__WXGTK__
Indeed, if I runt the above command now I get: -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread > >If you meant libwxgtk2.8-dev then, it was not. > >Now I installed it and the installation of Alien::wxWidgets went well. > > Yay! > > > >It now installs in > >/home/gabor/perl5lib/lib/perl/5.8.8/Alien/wxWidgets.pm > >which is better but still not what all other modules do. > > > >my humble understanding is that it somehow does not care about my > >LIB= parameter for Makemaker.PL > >or the following param of Build.PL: > >--install_path lib=/home/gabor/perl5lib/lib > > Alien/wxWidgets.pm installs in 'arch' because the settings are > architecture specific. If you want to change that, you'll need to add > an "--install_path arch=..." argument to Build.PL. > I don't fully understand what should go where but all the other modules install their bunary stuff in ../perl5lib/lib/i486-linux-gnu-thread-multi/ which is automatically added to INC when I say PERL5LIB=../perl5lib/lib/ BTW this raises again the generic question "How should I configure my environment if I want to install and use modules in a private directory?" > >[EMAIL PROTECTED]:~/Wx-0.82$ perl Makefile.PL PREFIX=/home/gabor/perl5lib > >LIB=/home/gabor/perl5lib/lib > >Checking if your kit is complete... > >Looks good > >'WX' is not a known MakeMaker parameter name. > > That sounds ominous, but I think these messages are the actual problem: > > > > Note (probably harmless): No library found for -lwx_gtk2_adv-2.8 > > It is not harmless. I'm guessing that your wx is unicode, which means > that should be -"lwx_gtk2u_adv-2.8", so something went wrong. (Or > maybe it isn't unicode and something still went wrong.) > > What do you get for these? > > wx-config --cflags -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread > wx-config --cxxflags -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread > wx-config --libs -pthread -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 > The last should match: > perl -e 'use Alien::wxWidgets; warn Alien::wxWidgets->libraries' -L/usr/local/lib/perl/5.8.8/Alien/wxWidgets/gtk_2_8_7/lib -lpthread -lwx_gtk2_core-2.8 -lwx_gtk2_richtext-2.8 -lwx_gtk2_gl-2.8 -lwx_base_net-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_media-2.8 -lwx_base_xml-2.8 -lwx_gtk2_animate-2.8 -lwx_gtk2_xrc-2.8 -lwx_base-2.8 -lwx_gtk2_stc-2.8 -lwx_gtk2_aui-2.8 -lwx_gtk2_fl-2.8 -lwx_gtk2_gizmos-2.8 -lwx_gtk2_ogl-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_plot-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_svg-2.8 at -e line 1. > And, because you installed the deb, the files should be > in /usr/lib/libwx_gtk2u_* [EMAIL PROTECTED]:~/Wx-0.82$ ls -l /usr/lib/libwx_gtk2u_adv-2.8* lrwxrwxrwx 1 root root 24 2008-05-07 06:57 /usr/lib/libwx_gtk2u_adv-2.8.so -> libwx_gtk2u_adv-2.8.so.0 lrwxrwxrwx 1 root root 28 2007-10-22 06:34 /usr/lib/libwx_gtk2u_adv-2.8.so.0 -> libwx_gtk2u_adv-2.8.so.0.1.1 -rw-r--r-- 1 root root 807152 2007-08-10 17:00 /usr/lib/libwx_gtk2u_adv-2.8.so.0.1.1 so at least one of them is here and still reported as missing. > > Aside: I once had some trouble with Alien on debian etch because of > mismatched symlinks to my gcc and g++, but none of your symptoms seem > to match that. seem to be ok: [EMAIL PROTECTED]:~/Wx-0.82$ gcc --version gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) [EMAIL PROTECTED]:~/Wx-0.82$ g++ --version g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) Gabor
