From: Richard Hainsworth <richard@ru...> - 2005-12-27 06:46:14
'make all' and then 'make install' in contrib/src/stc where WxWidgets=20
was built worked.
Does this mean that there is a fault in the configuration of WxWidgets?
-------- Original Message --------
Subject: Re: [wxperl-users] Cpan installation of Wx wont complete
Date: Mon, 26 Dec 2005 11:13:21 -0800
From: John Ralls <jralls@...>
To: Richard Hainsworth <richard@...>
On Dec 26, 2005, at 10:14 AM, Richard Hainsworth wrote:
> I have a PC box and I run linux (ubunto with kernel 2.6.14), and =20
> use gnome with gtk+ 2.
> Trying to install Wx-Perl with Wx 0.26 using cpan
> The 'install Wx' command runs fine until it starts giving errors. =20
> These start with the output:
> make: Entering directory `/home/sysroot/.cpan/build/Wx-0.26/ext/=20
> cp lib/Wx/STC.pm ../../blib/lib/Wx/STC.pm
> /usr/bin/perl /usr/share/perl/5.8.7/ExtUtils/xsubpp -noprototypes -=20
> nolinenumbers -typemap /usr/share/perl/5.8/ExtUtils/typemap -=20
> typemap ../../typemap -typemap typemap STC.xs > STC.xsc && mv =20
> STC.xsc STC.c
> g++ -c -I. -I../.. -I/usr/local/lib/wx/include/gtk2-unicode-=20
> release-2.6 -I/usr/local/include/wx-2.6 -O2 -DVERSION=3D\"0.01\" - =
> DXS_VERSION=3D\"0.01\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DWXPL_EXT -=20
> DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=3D64 -=20
> D_LARGE_FILES -D_LARGEFILE_SOURCE=3D1 -DNO_GCC_PRAGMA STC.c
> STC.c:31:24: error: wx/stc/stc.h: No such file or directory
> STC.c: In function =91void XS_Wx__StyledTextCtrl_new=20
> (PerlInterpreter*, CV*)=92:
> STC.c:39: error: =91wxWindow=92 was not declared in this scope
> STC.c:39: error: =91parent=92 was not declared in this scope
> then pages of errors with stuff 'not declared in this scope'
> First I installed Wxwidgets-2.6.2 using synaptic from a debian =20
> depository, then downloaded it from sourceforge. I made and =20
> installed with no problem.
> Second, on the list I found a suggestion to make all in the contrib/=20
> src/stc directory. No effect.
> What should I try next?
Did you run `make install` on stc, or just `make all`? If the latter,
that's likely your problem. If you did run `make install`, then it
probably installed in the wrong place -- g++ is looking in /usr/local/
rerun `make install` in contrib/src/stc and see where it's putting
the includes and the lib. The easiest thing to do is to then move
everything to the right places in /usr/local.
From: John Ralls <jralls@ce...> - 2005-12-27 16:29:54
On Dec 26, 2005, at 10:46 PM, Richard Hainsworth wrote:
> Thanks John,
> 'make all' and then 'make install' in contrib/src/stc where
> WxWidgets was built worked.
> Does this mean that there is a fault in the configuration of
No, not really. The core libraries are built by make in the root
source directory, but the contrib (for contributed) libraries are not
part of the wx core and have to be made separately. If there's a
problem, it's that the best build instructions are found on the
wxPython website instead of the wxWidgets pages.