mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] build wxwidgets 2.9.4 with mingw64(rubenvb) retur


From: zhangxinghai
Subject: [Mingw-cross-env-list] build wxwidgets 2.9.4 with mingw64(rubenvb) return error
Date: Mon, 20 May 2013 23:08:50 +0800 (CST)

Hi
I download i686-w64-mingw32-gcc-4.8.0-win32_rubenvb.7z from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.8-release/,unpack it to a directory.
I also download wxwidgets2.9.4 from https://sourceforge.net/projects/wxwindows/files/2.9.4/wxWidgets-2.9.4.7z,unpack it to a directory
My OS:Microsoft Windows XP Professional (32-bit) version 5.01.2600 Service Pack 3

I cd the wx\build\msw directory and invoke command 
mingw32-make -f makefile.gcc -j4 LDFLAGS="-Wl,--gc-sections,--strip-all" BUILD=release SHARED=1 MONOLITHIC=0 UNICODE=1 CXXFLAGS="-m32 -pipe -fno-keep-inline-dllexport   -Os  -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -Wno-attributes -DNDEBUG" USE_EXCEPTION=0 USE_RTTI=0  1>1.txt 2>2.txt

The command returns error when it comes to 
g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw294u_core_gcc_custom.dll ....

I check the 2.txt and find it returns error as following

gcc_mswudll\coredll_textentry.o:textentry.cpp:(.text$_ZN20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_EclEP12wxEvtHandlerR7wxEvent[__ZN20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_EclEP12wxEvtHandlerR7wxEvent]+0xfe1dc0318d74f364): Cannot get section contents - auto-import exception
gcc_mswudll\coredll_textentry.o:textentry.cpp:(.text$_ZN11wxTextEntry23DoAutoCompleteFileNamesEi+0x3cbfb505472509dc): Cannot get section contents - auto-import exception
d:/mingw32win32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: gcc_mswudll\coredll_textentry.o: bad reloc address 0x2 in section `.text$_ZNK20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_E11GetWxTypeIdEv[__ZNK20wxEventFunctorMethodI14wxEventTypeTagI10wxKeyEventE22wxTextAutoCompleteDataS1_S3_E11GetWxTypeIdEv]'
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw294u_core_gcc_custom.dll] Error 1

What's wrong
Thanks











reply via email to

[Prev in Thread] Current Thread [Next in Thread]