develooper Front page | perl.wxperl.users | Postings from November 2012

Compiling wxWidgets on Strawberry Perl

Thread Next
From:
Smylers
Date:
November 30, 2012 17:04
Subject:
Compiling wxWidgets on Strawberry Perl
Message ID:
20121130170413.GA14751@stripey.com
Hi there. I'm getting error messages using Alien::wxWidgets to compile
wxWidgets on Strawberry Perl on Windows 7.

The computer has DwimPerl 5.14.2 installed, which is Strawberry Perl
plus some other stuff, including wxWidgets 2.8.12. I wish to upgrade it
to a newer wxWidgets.

I downloaded and extracted Alien-wxWidgets-0.62 and from its folder and
Build.PL, selecting to download and compile wxWidgets, version 2.9.4,
tar.bz2, and no GL support. Then ran Build.

After an hour or so, it aborted with this error message:

  g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw294u_gl_gcc_custom.dll gcc_mswudll\gldll_dummy.o gcc_mswudll\gldll_version_rc.o gcc_mswudll\gldll_glcmn.o gcc_mswudll\gldll_glcanvas.o   -mthreads -L..\..\lib\gcc_dll -Wl,--out-implib=..\..\lib\gcc_dll\libwxmsw29u_gl.a  -m32  -lwxtiff -lwxjpeg -lwxpng  -lwxzlib -lwxregexu -lwxexpat    -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lws2_32 -lwininet -lwxmsw29u_core -lwxbase29u  -lopengl32 -lglu32
  Creating library file: ..\..\lib\gcc_dll\libwxmsw29u_gl.a
  if not exist ..\..\lib\gcc_dll\mswu\wx mkdir ..\..\lib\gcc_dll\mswu\wx
  compilet.exp:fake:(.edata+0x3c): undefined reference to `boot_compilet'
  compilet.exp:fake:(.edata+0x40): undefined reference to `boot_compilet'
  collect2: ld returned 1 exit status
  compilet.exp:fake:(.edata+0x3c): undefined reference to `boot_compilet'
  compilet.exp:fake:(.edata+0x40): undefined reference to `boot_compilet'
  collect2: ld returned 1 exit status

So I then tried version 2.8.12 and zip, just to see if that would work.
It failed with a similar error:

  g++ -shared -fPIC -o ..\..\src\stc\..\..\..\lib\gcc_dll\wxmsw28u_stc_gcc_custom.dll gcc_mswudll\stcdll_PlatWX.o gcc_mswudll\stcdll_ScintillaWX.o gcc_mswudll\stcdll_stc.o gcc_mswudll\stcdll_AutoComplete.o gcc_mswudll\stcdll_CallTip.o gcc_mswudll\stcdll_CellBuffer.o gcc_mswudll\stcdll_CharClassify.o gcc_mswudll\stcdll_ContractionState.o gcc_mswudll\stcdll_Document.o gcc_mswudll\stcdll_DocumentAccessor.o gcc_mswudll\stcdll_Editor.o gcc_mswudll\stcdll_ExternalLexer.o gcc_mswudll\stcdll_Indicator.o gcc_mswudll\stcdll_KeyMap.o gcc_mswudll\stcdll_KeyWords.o gcc_mswudll\stcdll_LexAPDL.o gcc_mswudll\stcdll_LexAU3.o gcc_mswudll\stcdll_LexAVE.o gcc_mswudll\stcdll_LexAda.o gcc_mswudll\stcdll_LexAsm.o gcc_mswudll\stcdll_LexAsn1.o gcc_mswudll\stcdll_LexBaan.o gcc_mswudll\stcdll_LexBash.o gcc_mswudll\stcdll_LexBasic.o gcc_mswudll\stcdll_LexBullant.o gcc_mswudll\stcdll_LexCLW.o gcc_mswudll\stcdll_LexCPP.o gcc_mswudll\stcdll_LexCSS.o gcc_mswudll\stcdll_LexCaml.ogcc_mswudll\stcdll_LexCsound.o gcc_mswudll\stcdll_LexConf.o gcc_mswudll\stcdll_LexCrontab.o gcc_mswudll\stcdll_LexEScript.o gcc_mswudll\stcdll_LexEiffel.o gcc_mswudll\stcdll_LexErlang.o gcc_mswudll\stcdll_LexFlagship.o gcc_mswudll\stcdll_LexForth.o gcc_mswudll\stcdll_LexFortran.o gcc_mswudll\stcdll_LexGui4Cli.o gcc_mswudll\stcdll_LexHTML.o gcc_mswudll\stcdll_LexHaskell.o gcc_mswudll\stcdll_LexInno.o gcc_mswudll\stcdll_LexKix.o gcc_mswudll\stcdll_LexLisp.o gcc_mswudll\stcdll_LexLout.o gcc_mswudll\stcdll_LexLua.o gcc_mswudll\stcdll_LexMMIXAL.o gcc_mswudll\stcdll_LexMPT.o gcc_mswudll\stcdll_LexMSSQL.o gcc_mswudll\stcdll_LexMatlab.o gcc_mswudll\stcdll_LexMetapost.o gcc_mswudll\stcdll_LexNsis.o gcc_mswudll\stcdll_LexOpal.o gcc_mswudll\stcdll_LexOthers.o gcc_mswudll\stcdll_LexPB.o gcc_mswudll\stcdll_LexPOV.o gcc_mswudll\stcdll_LexPS.o gcc_mswudll\stcdll_LexPascal.o gcc_mswudll\stcdll_LexPerl.o gcc_mswudll\stcdll_LexPython.o gcc_mswudll\stcdll_LexRebol.o gcc_mswudll\stcdll_LexRuby.o gcc_mswudll\stcdll_LexSQL.o gcc_mswudll\stcdll_LexSmalltalk.o gcc_mswudll\stcdll_LexTADS3.o gcc_mswudll\stcdll_LexScriptol.o gcc_mswudll\stcdll_LexSpecman.o gcc_mswudll\stcdll_LexSpice.o gcc_mswudll\stcdll_LexTCL.o gcc_mswudll\stcdll_LexTeX.o gcc_mswudll\stcdll_LexVB.o gcc_mswudll\stcdll_LexVHDL.o gcc_mswudll\stcdll_LexVerilog.o gcc_mswudll\stcdll_LexYAML.o gcc_mswudll\stcdll_LineMarker.o gcc_mswudll\stcdll_PropSet.o gcc_mswudll\stcdll_RESearch.o gcc_mswudll\stcdll_ScintillaBase.o gcc_mswudll\stcdll_Style.o gcc_mswudll\stcdll_StyleContext.o gcc_mswudll\stcdll_UniConversion.o gcc_mswudll\stcdll_ViewStyle.o gcc_mswudll\stcdll_WindowAccessor.o gcc_mswudll\stcdll_XPM.o gcc_mswudll\stcdll_version_rc.o   -mthreads -L..\..\src\stc\..\..\..\lib\gcc_dll -Wl,--out-implib=..\..\src\stc\..\..\..\lib\gcc_dll\libwxmsw28u_stc.a  -m32   -lwxtiff -lwxjpeg -lwxpng  -lwxzlib  -lwxregexu -lwxexpat     -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4-ladvapi32 -lws2_32 -lodbc32 -lwxmsw28u_core  -lwxbase28u
  Creating library file: ..\..\src\stc\..\..\..\lib\gcc_dll\libwxmsw28u_stc.a
  compilet.exp:fake:(.edata+0x3c): undefined reference to `boot_compilet'
  compilet.exp:fake:(.edata+0x40): undefined reference to `boot_compilet'
  collect2: ld returned 1 exit status
  compilet.exp:fake:(.edata+0x3c): undefined reference to `boot_compilet'
  compilet.exp:fake:(.edata+0x40): undefined reference to `boot_compilet'
  collect2: ld returned 1 exit status

Any suggestions on how to fix this?

For anybody wishing to reproduce this, this patch to Archive::Extract
may be handy for unzipping the downloaded wxWidgets source:
https://github.com/jib/archive-extract/commit/0a450aafdf979c201e5abe34cfeeec0c24becdf6

Thanks.

Smylers
-- 
I get called "evil" by Victoria Coren in this week's 'Only Connect'.
Watch online: http://www.bbc.co.uk/programmes/b01p2mrh

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About