|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
make: ** [Controls.c] Error 1Hi Mark,
I'm now up against that old favourite "Error 1" see below. **************************** in /usr/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp interface/wx/headerctrl.h, line 534 Warning: duplicate function definition 'SetSelection' detected in XS/ComboBox.xs, line 176 make: ** [Controls.c] Error 1 **************************** At the moment, I'm using a very convoluted way if installing widgets: 1) Install Alien with wxWidgets and compile widgets. 2) Update the MediaCtrl wxWidgets c++ source files with my required mods. 3) Recompile wxWidgets 4) Download and compile wxPerl from sourceforge - it crashes with the above error. 5) Do a 'cpan -i Wx', which somehow carries on from the above install and fixes everything. See below for details. 6) Anyhow, I have successfully interupted the cpan install and updated it with the required changes the wrapping seems to work. So, let me do some more testing, but I'd like to submit a patch for this wrapping. As you may have seen I'm probably going to try to update the wrap for wxPdfDocument, so any practice I can get is good. Secondly, can I raise a bug for the above crash, again, how should I do this? Regards Steve svn co https://wxperl.svn.sourceforge.net/svnroot/wxperl/Alien-wxWidgets/trunk <https://wxperl.svn.sourceforge.net/svnroot/wxperl/Alien-wxWidgets/trunk> Alien-wxWidgets cd Alien-wxWidgets perl Build.PL --wxWidgets-extraflags="--enable-graphics_ctx --disable-compat26 --enable-mediactrl --with-libjpeg=builtin --with-libpng=builtin --with-regex=builtin --with-libtiff=builtin --with-zlib=builtin --with-expat=builtin --with-libxpm=builtin" --wxWidgets-build='yes' --wxWidgets-source='tar.gz' --wxWidgets-unicode=1 --wxWidgets-build-opengl=0 --wxWidgets-version=2.8.11 perl Build perl Build install ldconfig cd .. svn co https://wxperl.svn.sourceforge.net/svnroot/wxperl/wxPerl/trunk <https://wxperl.svn.sourceforge.net/svnroot/wxperl/wxPerl/trunk> wxPerl cd wxPerl perl Makefile.PL make make test make install cd .. cpan -i Wx |
|
|
|
|
|
RE: make: ** [Controls.c] Error 1Hi Mark,
Well I've just run your script, which I changed for version 2.8.11 and it worked fine. Two observations. 1) The only apparent differences between my script and yours was a) The compile flags b) I use 'svn co' and you use 'svn export' 2) Secondly, when I run wxperl_demo.pl, I still get: 10:53:59: Warning: Skipping module 'Wx::DemoModules::wxHeaderCtrlSimple' 10:53:59: Warning: Base class package "Wx::HeaderCtrlSimple" is empty. Which looks suspiciously related to that missing line in the patch I sent you. Anyway there is nothing urgent here and I shall continue testing. Really I'd like to move to 2.9.2, and upgrade my Kubuntu, so this at least looks like an oportunity to upgrade my wxWidgets version. Thanks for the flags you sent, I shall use that syntax in future. If I encounter any more issues I'll post them. Regards Steve rm -rf Alien-wxWidgets cd Alien-wxWidgets svn export https://wxperl.svn.sourceforge.net/svnroot/wxperl/Alien-wxWidgets/trunk Alien-wxWidgets cd Alien-wxWidgets perl Build.PL --wxWidgets-extraflags="--enable-graphics_ctx --disable-compat26 --enable-mediactrl --with-libjpeg=builtin --with-libpng=builtin --with-regex=builtin --with-libtiff=builtin --with-zlib=builtin --with-expat=builtin --with-libxpm=builtin" --wxWidgets-build='yes' --wxWidgets-source='tar.gz' --wxWidgets-unicode=1 --wxWidgets-build-opengl=0 --wxWidgets-version=2.8.11 perl Build sudo perl Build install cd ../ rm -rf wxPerl svn export https://wxperl.svn.sourceforge.net/svnroot/wxperl/wxPerl/trunk wxPerl cd wxPerl perl Makefile.PL make make test sudo make install |
|
|
Re: make: ** [Controls.c] Error 1Hi,
Glad it worked. The flags, I just copied from your original post though I may have sent them in the past. They are mostly what I use although the reason is that I am usually creating one sort of binary distribution or another so reducing dependencies is the goal. I doubt they are actually helping you compile. The useful ones are probably --wxWidgets-extraflags="--enable-graphics_ctx --disable-compat26 --enable-mediactrl" --wxWidgets-unicode=1 --wxWidgets-build-opengl=1 Assuming you have freeglut installed, may as well build OpenGL. The flags --wxWidgets-build='yes' --wxWidgets-source='tar.gz' --wxWidgets-version=2.8.12 just allow an automated build without prompts. I think the bit that made it work is deleting the existing directories. Something had been changed in your source at some point. On 28/02/2012 13:59, Steve Cookson wrote: > 2) Secondly, when I run wxperl_demo.pl, I still get: > > 10:53:59: Warning: Skipping module 'Wx::DemoModules::wxHeaderCtrlSimple' > 10:53:59: Warning: Base class package "Wx::HeaderCtrlSimple" is empty. > > Which looks suspiciously related to that missing line in the patch I sent > you. This is normal. Wx::HeaderCtrlSimple is only available in wxWidgets 2.9.x. The demo handles this by simply failing to load with warnings as above. Regards Mark |
| Free embeddable forum powered by Nabble | Forum Help |