You are not logged in.

#1 2015-09-06 00:27:30

MrCruz
Member
Registered: 2013-06-23
Posts: 5

Perl Wx-GLCanvas issues

Hello. For the past couple of hours, I've been trying to install perl-wx-glcanvas from the aur onto my system as a precursor to Slic3r, but for the life of me can't seem to figure out what I'm missing.

Here's the long from the last `yoaurt -S perl-wx-glcanvas &> log` run:

==> Downloading perl-wx-glcanvas PKGBUILD from AUR...
x .SRCINFO
x PKGBUILD
Comment by cgx  (2013-07-16 20:16)
Build is failing with:

== Starting build()...
'WX' is not a known MakeMaker parameter name.
Unrecognized argument in LIBS ignored: '-Wl,-O1,--sort-common,--as-needed,-z,relro'
Writing Makefile for Wx::GLCanvas
Writing MYMETA.yml and MYMETA.json
/usr/bin/perl -S wxperl_overload cpp/ovl_const.cpp cpp/ovl_const.h overload.lst
Can't find wxperl_overload on PATH.
make: *** [wxt_overload] Error 29
make: *** Waiting for unfinished jobs....
Skip blib/lib/Wx/DemoModules/wxGLCanvas.pm (unchanged)
Skip blib/lib/Wx/GLCanvas.pm (unchanged)
== ERROR: A failure occurred in build().

Any idea what's wrong?

Comment by cgx  (2013-07-16 20:27)
thanks, it's working now. Path was missing some directory as perl-wx was also installed just now.

Comment by mpan  (2014-03-26 00:44)
Today the build is failing with:
-------------
g++ -pthread -c -I. -I/usr/lib/perl5/vendor_perl/Wx -I/usr/lib/perl5/vendor_perl/Alien/wxWidgets/gtk_2_8_12_uni/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/lib/perl5/vendor_perl/Alien/wxWidgets/gtk_2_8_12_uni/include/wx-2.8 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ GLCanvas.c
GLCanvas.xs: In function ‘double constant(const char*, int)’:
GLCanvas.xs:69:12: error: ‘WX_GL_RGBA’ was not declared in this scope
r( WX_GL_RGBA );

And half hundred other "not declared" errors from the same file.

Comment by swiftgeek  (2014-06-05 15:12)
perl-test-pod not needed for check stage
Failure lays within tests that are checking installed version first not the one being packaged, so remove before packaging, or install without checking and then package again with check

Comment by swiftgeek  (2015-05-19 16:03)
Fixed compiling on headless with use of xvfb

perl-wx-glcanvas 0.09-1  (2015-06-09 23:27)
( Unsupported package: Potentially dangerous ! )
==> perl-wx-glcanvas dependencies:
 - perl>=5.10.0 (already installed)
 - perl-wx (already installed)
 - perl-alien-wxwidgets (already installed)


==> Continue building perl-wx-glcanvas ? [Y/n]
==> ------------------------------------------
==> 
==> Building and installing package
==> Making package: perl-wx-glcanvas 0.09-1 (Sat Sep  5 19:20:49 CDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading Wx-GLCanvas-0.09.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 13910  100 13910    0     0  29789      0 --:--:-- --:--:-- --:--:-- 29789
==> Validating source files with md5sums...
    Wx-GLCanvas-0.09.tar.gz ... Passed
==> Extracting sources...
  -> Extracting Wx-GLCanvas-0.09.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^\s*\%include{ <-- HERE ([^}]+)}\s*;\s*$/ at /usr/lib/perl5/site_perl/Wx/build/Utils.pm line 110.
Checking if your kit is complete...
Looks good
'WX' is not a known MakeMaker parameter name.
Generating a Unix-style Makefile
Writing Makefile for Wx::GLCanvas
Writing MYMETA.yml and MYMETA.json
cp lib/Wx/DemoModules/wxGLCanvas.pm blib/lib/Wx/DemoModules/wxGLCanvas.pm
cp lib/Wx/GLCanvas.pm blib/lib/Wx/GLCanvas.pm
"/usr/bin/perl" -S wxperl_overload cpp/ovl_const.cpp cpp/ovl_const.h overload.lst
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^\s*\%include{ <-- HERE ([^}]+)}\s*;\s*$/ at /usr/lib/perl5/site_perl/Wx/build/Utils.pm line 110.
Writing 'cpp/ovl_const.h'.
Writing 'cpp/ovl_const.cpp'.
touch wxt_overload
Running Mkbootstrap for GLCanvas ()
chmod 644 "GLCanvas.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- GLCanvas.bs blib/arch/auto/Wx/GLCanvas/GLCanvas.bs 644
"/usr/bin/perl" "/usr/share/perl5/site_perl/ExtUtils/xsubpp"  -noprototypes  -typemap '/usr/share/perl5/core_perl/ExtUtils/typemap' -typemap '/usr/lib/perl5/site_perl/Wx/typemap' -typemap '/tmp/yaourt-tmp-mrcruz/aur-perl-wx-glcanvas/src/Wx-GLCanvas-0.09/typemap'  GLCanvas.xs > GLCanvas.xsc
mv GLCanvas.xsc GLCanvas.c
g++ -pthread   -c  -I. -I/usr/lib/perl5/site_perl/Wx -I/usr/lib/perl5/site_perl/Alien/wxWidgets/gtk_3_0_2_uni/lib/wx/include/gtk2-unicode-3.0 -I/usr/lib/perl5/site_perl/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0  -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4   -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC "-I/usr/lib/perl5/core_perl/CORE"  -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__   GLCanvas.c -o GLCanvas.o
GLCanvas.xs: In function ‘double constant(const char*, int)’:
GLCanvas.xs:69:12: error: ‘WX_GL_RGBA’ was not declared in this scope
         r( WX_GL_RGBA );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:70:12: error: ‘WX_GL_BUFFER_SIZE’ was not declared in this scope
         r( WX_GL_BUFFER_SIZE );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:71:12: error: ‘WX_GL_LEVEL’ was not declared in this scope
         r( WX_GL_LEVEL );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:72:12: error: ‘WX_GL_DOUBLEBUFFER’ was not declared in this scope
         r( WX_GL_DOUBLEBUFFER );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:73:12: error: ‘WX_GL_STEREO’ was not declared in this scope
         r( WX_GL_STEREO );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:74:12: error: ‘WX_GL_AUX_BUFFERS’ was not declared in this scope
         r( WX_GL_AUX_BUFFERS );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:75:12: error: ‘WX_GL_MIN_RED’ was not declared in this scope
         r( WX_GL_MIN_RED );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:76:12: error: ‘WX_GL_MIN_GREEN’ was not declared in this scope
         r( WX_GL_MIN_GREEN );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:77:12: error: ‘WX_GL_MIN_BLUE’ was not declared in this scope
         r( WX_GL_MIN_BLUE );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:78:12: error: ‘WX_GL_MIN_ALPHA’ was not declared in this scope
         r( WX_GL_MIN_ALPHA );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:79:12: error: ‘WX_GL_DEPTH_SIZE’ was not declared in this scope
         r( WX_GL_DEPTH_SIZE );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:80:12: error: ‘WX_GL_STENCIL_SIZE’ was not declared in this scope
         r( WX_GL_STENCIL_SIZE );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:81:12: error: ‘WX_GL_MIN_ACCUM_RED’ was not declared in this scope
         r( WX_GL_MIN_ACCUM_RED );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:82:12: error: ‘WX_GL_MIN_ACCUM_GREEN’ was not declared in this scope
         r( WX_GL_MIN_ACCUM_GREEN );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:83:12: error: ‘WX_GL_MIN_ACCUM_BLUE’ was not declared in this scope
         r( WX_GL_MIN_ACCUM_BLUE );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.xs:84:12: error: ‘WX_GL_MIN_ACCUM_ALPHA’ was not declared in this scope
         r( WX_GL_MIN_ACCUM_ALPHA );
            ^
GLCanvas.xs:64:16: note: in definition of macro ‘r’
         return n;
                ^
GLCanvas.c: In function ‘void XS_Wx__GLCanvas_newDefault(PerlInterpreter*, CV*)’:
GLCanvas.c:315:2: error: ‘wxGLCanvas’ was not declared in this scope
  wxGLCanvas * RETVAL;
  ^
GLCanvas.c:315:15: error: ‘RETVAL’ was not declared in this scope
  wxGLCanvas * RETVAL;
               ^
GLCanvas.c:346:13: error: ‘wxGLCanvasName’ was not declared in this scope
      name = wxGLCanvasName;
             ^
GLCanvas.xs:132:18: error: expected type-specifier before ‘wxGLCanvas’
     RETVAL = new wxGLCanvas( parent, id, attrs, pos, size, style, name );
                  ^
GLCanvas.c: In function ‘void XS_Wx__GLCanvas_SetCurrent(PerlInterpreter*, CV*)’:
GLCanvas.c:388:2: error: ‘wxGLContext’ was not declared in this scope
  wxGLContext*    context = (wxGLContext *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLContext" )
  ^
GLCanvas.c:388:26: error: expected primary-expression before ‘=’ token
  wxGLContext*    context = (wxGLContext *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLContext" )
                          ^
GLCanvas.c:388:42: error: expected primary-expression before ‘)’ token
  wxGLContext*    context = (wxGLContext *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLContext" )
                                          ^
GLCanvas.c:390:2: error: ‘wxGLCanvas’ was not declared in this scope
  wxGLCanvas *    THIS = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLCanvas" )
  ^
GLCanvas.c:390:18: error: ‘THIS’ was not declared in this scope
  wxGLCanvas *    THIS = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLCanvas" )
                  ^
GLCanvas.c:390:38: error: expected primary-expression before ‘)’ token
  wxGLCanvas *    THIS = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLCanvas" )
                                      ^
GLCanvas.c:393:27: error: expected primary-expression before ‘)’ token
  THIS->SetCurrent(*context);
                           ^
GLCanvas.c: In function ‘void XS_Wx__GLCanvas_SwapBuffers(PerlInterpreter*, CV*)’:
GLCanvas.c:628:2: error: ‘wxGLCanvas’ was not declared in this scope
  wxGLCanvas *    THIS = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLCanvas" )
  ^
GLCanvas.c:628:18: error: ‘THIS’ was not declared in this scope
  wxGLCanvas *    THIS = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLCanvas" )
                  ^
GLCanvas.c:628:38: error: expected primary-expression before ‘)’ token
  wxGLCanvas *    THIS = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLCanvas" )
                                      ^
GLCanvas.c: In function ‘void XS_Wx__GLContext_new(PerlInterpreter*, CV*)’:
GLCanvas.c:648:2: error: ‘wxGLCanvas’ was not declared in this scope
  wxGLCanvas*    win = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLCanvas" )
  ^
GLCanvas.c:648:17: error: ‘win’ was not declared in this scope
  wxGLCanvas*    win = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLCanvas" )
                 ^
GLCanvas.c:648:36: error: expected primary-expression before ‘)’ token
  wxGLCanvas*    win = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLCanvas" )
                                    ^
GLCanvas.c:650:2: error: ‘wxGLContext’ was not declared in this scope
  wxGLContext* cxt;
  ^
GLCanvas.c:650:15: error: ‘cxt’ was not declared in this scope
  wxGLContext* cxt;
               ^
GLCanvas.c:653:16: error: ‘RETVAL’ was not declared in this scope
  wxGLContext * RETVAL;
                ^
GLCanvas.c:658:25: error: expected primary-expression before ‘)’ token
     cxt = (wxGLContext *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::GLContext" )
                         ^
GLCanvas.xs:211:24: error: expected type-specifier before ‘wxGLContext’
     RETVAL = cxt ? new wxGLContext( win, cxt )
                        ^
GLCanvas.xs:211:24: error: expected ‘:’ before ‘wxGLContext’
GLCanvas.c: In function ‘void XS_Wx__GLContext_SetCurrent(PerlInterpreter*, CV*)’:
GLCanvas.c:738:2: error: ‘wxGLContext’ was not declared in this scope
  wxGLContext *    THIS = (wxGLContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLContext" )
  ^
GLCanvas.c:738:19: error: ‘THIS’ was not declared in this scope
  wxGLContext *    THIS = (wxGLContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLContext" )
                   ^
GLCanvas.c:738:40: error: expected primary-expression before ‘)’ token
  wxGLContext *    THIS = (wxGLContext *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::GLContext" )
                                        ^
GLCanvas.c:740:2: error: ‘wxGLCanvas’ was not declared in this scope
  wxGLCanvas*    canvas = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLCanvas" )
  ^
GLCanvas.c:740:17: error: ‘canvas’ was not declared in this scope
  wxGLCanvas*    canvas = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLCanvas" )
                 ^
GLCanvas.c:740:39: error: expected primary-expression before ‘)’ token
  wxGLCanvas*    canvas = (wxGLCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::GLCanvas" )
                                       ^
Makefile:370: recipe for target 'GLCanvas.o' failed
make: *** [GLCanvas.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build perl-wx-glcanvas.
==> Restart building perl-wx-glcanvas ? [y/N]
==> -----------------------------------------
==> 

Any suggestions would be appreciated.

Offline

#2 2015-09-06 01:29:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: Perl Wx-GLCanvas issues

Moving to AUR issues, Discussion, and PKGBUILD requests.

I also suspect this is not an Arch Linux system As a reminder, https://wiki.archlinux.org/index.php/Fo … pport_ONLY


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2015-09-06 01:48:08

MrCruz
Member
Registered: 2013-06-23
Posts: 5

Re: Perl Wx-GLCanvas issues

Ah, my mistake about the forum.

For reference, this is the output of `uname -a`:

Linux TheLaptop 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64 GNU/Linux

This system was installed via an Arch Live USB.

Offline

#4 2015-09-06 01:57:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: Perl Wx-GLCanvas issues

Fair enough.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB