Author Topic: an error building wxMSW-2.8.12 using minGW  (Read 7482 times)

zage2009

  • Guest
an error building wxMSW-2.8.12 using minGW
« on: August 14, 2011, 04:29:04 pm »
I want to use nightly build and do it stey by step according the address:http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook.I get the mingw from the http://prdownloads.sourceforge.net/mingw/MinGW-5.1.3.exe and
install it in C:\mingGW.I unzip the wxMSW-2.8.12 in C:\projects\.
I enter the command :
Code: [Select]
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean and it works well,but the build command :
Code: [Select]
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1eventually shows the error:
Code: [Select]
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: out of memory allocating 36639232 bytes
collect2: ld returned 1 exit status
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw28u_gcc_custom.dll] Error 1
The memory of my machine is 4GB and the operating system is WinXPsp3.How can I accomplish the wx build?
« Last Edit: August 14, 2011, 04:31:37 pm by zage2009 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11932
    • Travis build status
Re: an error building wxMSW-2.8.12 using minGW
« Reply #1 on: August 14, 2011, 04:43:37 pm »
Probably you have to install newer compiler. 5.1.3 is quite old if I remember correctly.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6610
    • My Best Post
Re: an error building wxMSW-2.8.12 using minGW
« Reply #2 on: August 14, 2011, 05:07:52 pm »
IIRC, this version of MinGW can not build the with MONOLITHIC=1; use an older or a newer version of the MinGW GCC Compiler/Linker. MONOLITHIC=0 builds should work.

Note: Newer version must be a TDM build; because it has the NON approved by MinGW/GCC patch to permit building of MONOLITHIC=1 builds.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: an error building wxMSW-2.8.12 using minGW
« Reply #3 on: August 14, 2011, 05:10:06 pm »
How can I accomplish the wx build?
This is a known bug of this compiler and affects wxWidgets.

Use the TDM GCC compile from here:
http://tdm-gcc.tdragon.net/
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

zage2009

  • Guest
Re: an error building wxMSW-2.8.12 using minGW
« Reply #4 on: August 15, 2011, 02:50:18 am »
Thanks,friends.Now I have a problem about the Zip section of http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook because I  don't download the zip.exe sucessfully from the address which killerbot provided.WinRAR is suitable for that in winxp?If not what kind of software can be suitable.
« Last Edit: August 15, 2011, 02:57:03 am by zage2009 »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5225
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: an error building wxMSW-2.8.12 using minGW
« Reply #5 on: August 15, 2011, 03:00:10 am »
Thanks,friends.Now I have a problem about the Zip section of http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook because I  don't download the zip.exe sucessfully from the address which killerbot provided.WinRAR is suitable for that in winxp?If not what kind of software can be suitable.
read this
1.6 zip.exe
and download from:
zip
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

zage2009

  • Guest
Re: an error building wxMSW-2.8.12 using minGW
« Reply #6 on: August 15, 2011, 03:04:14 am »
Thanks.Is it necessary to install CB from official version before building nightly version?
« Last Edit: August 15, 2011, 03:06:08 am by zage2009 »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5225
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: an error building wxMSW-2.8.12 using minGW
« Reply #7 on: August 15, 2011, 03:08:08 am »
Thanks.whether is it necessary to install CB from official version before build nightly version?
Nightly version are just like snapshot versions from the trunk source/branch sources.
If you want to try the latest source, you can use svn tools to check out the trunk/branch sources, then build these sources.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

zage2009

  • Guest
Re: an error building wxMSW-2.8.12 using minGW
« Reply #8 on: August 15, 2011, 05:15:26 am »
I sucessfully build the nightly version and can use it,but now I want to use it in WinXP in vmware WorkStation 7.1(using wxMSW-2.8.12,tdm-gcc-4.5.2) and enter the command:
Code: [Select]
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean and result shows an error:
Code: [Select]
if exist gcc_mswudll\*.o del gcc_mswudll\*.o
process_begin: CreateProcess(NULL, -c "if exist gcc_mswudll\*.o del gcc_mswudll\*.o", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist gcc_mswudll\*.d del gcc_mswudll\*.d
process_begin: CreateProcess(NULL, -c "if exist gcc_mswudll\*.d del gcc_mswudll\*.d", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxregexu.a del ..\..\lib\gcc_dll\libwxregexu.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxregexu.a del ..\..\lib\gcc_dll\libwxregexu.a", ...) failed.
make (e=2):System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxzlib.a del ..\..\lib\gcc_dll\libwxzlib.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxzlib.a del ..\..\lib\gcc_dll\libwxzlib.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxpng.a del ..\..\lib\gcc_dll\libwxpng.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxpng.a del ..\..\lib\gcc_dll\libwxpng.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxjpeg.a del ..\..\lib\gcc_dll\libwxjpeg.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxjpeg.a del ..\..\lib\gcc_dll\libwxjpeg.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxtiff.a del ..\..\lib\gcc_dll\libwxtiff.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxtiff.a del ..\..\lib\gcc_dll\libwxtiff.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxexpat.a del ..\..\lib\gcc_dll\libwxexpat.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxexpat.a del ..\..\lib\gcc_dll\libwxexpat.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_gcc_custom.dll", ..
.) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u.a del ..\..\lib\gcc_dll\libwxmsw28u.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u.a del ..\..\lib\gcc_dll\libwxmsw28u.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u.a del ..\..\lib\gcc_dll\libwxmsw28u.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u.a del ..\..\lib\gcc_dll\libwxmsw28u.a", ...) failed.
make (e=2):System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxbase28u_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase28u_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxbase28u_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase28u_gcc_custom.dll",
...) failed.
make (e=2):System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_adv.a del ..\..\lib\gcc_dll\libwxmsw28u_adv.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_adv.a del ..\..\lib\gcc_dll\libwxmsw28u_adv.a", ...) failed.
make (e=2):System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_adv.a del ..\..\lib\gcc_dll\libwxmsw28u_adv.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_adv.a del ..\..\lib\gcc_dll\libwxmsw28u_adv.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_media_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_media_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_media_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_media_gcc_cus
tom.dll", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_media.a del ..\..\lib\gcc_dll\libwxmsw28u_media.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_media.a del ..\..\lib\gcc_dll\libwxmsw28u_media.a", ...) faile
d.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_media.a del ..\..\lib\gcc_dll\libwxmsw28u_media.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_media.a del ..\..\lib\gcc_dll\libwxmsw28u_media.a", ...) faile
d.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxbase28u_odbc_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase28u_odbc_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxbase28u_odbc_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase28u_odbc_gcc_cus
tom.dll", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28u_odbc.a del ..\..\lib\gcc_dll\libwxbase28u_odbc.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxbase28u_odbc.a del ..\..\lib\gcc_dll\libwxbase28u_odbc.a", ...) faile
d.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28u_odbc.a del ..\..\lib\gcc_dll\libwxbase28u_odbc.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxbase28u_odbc.a del ..\..\lib\gcc_dll\libwxbase28u_odbc.a", ...) faile
d.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_dbgrid_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_dbgrid_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_dbgrid_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_dbgrid_gcc_c
ustom.dll", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_dbgrid.a del ..\..\lib\gcc_dll\libwxmsw28u_dbgrid.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_dbgrid.a del ..\..\lib\gcc_dll\libwxmsw28u_dbgrid.a", ...) fai
led.
make (e=2):System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_dbgrid.a del ..\..\lib\gcc_dll\libwxmsw28u_dbgrid.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_dbgrid.a del ..\..\lib\gcc_dll\libwxmsw28u_dbgrid.a", ...) fai
led.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_html_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_html_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_html_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_html_gcc_custo
m.dll", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_html.a del ..\..\lib\gcc_dll\libwxmsw28u_html.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_html.a del ..\..\lib\gcc_dll\libwxmsw28u_html.a", ...) failed.

make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_html.a del ..\..\lib\gcc_dll\libwxmsw28u_html.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_html.a del ..\..\lib\gcc_dll\libwxmsw28u_html.a", ...) failed.

make (e=2):System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_qa_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_qa_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_qa_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_qa_gcc_custom.dl
l", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_qa.a del ..\..\lib\gcc_dll\libwxmsw28u_qa.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_qa.a del ..\..\lib\gcc_dll\libwxmsw28u_qa.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_qa.a del ..\..\lib\gcc_dll\libwxmsw28u_qa.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_qa.a del ..\..\lib\gcc_dll\libwxmsw28u_qa.a", ...) failed.
make (e=2):System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxbase28u_xml_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase28u_xml_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxbase28u_xml_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase28u_xml_gcc_custo
m.dll", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28u_xml.a del ..\..\lib\gcc_dll\libwxbase28u_xml.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxbase28u_xml.a del ..\..\lib\gcc_dll\libwxbase28u_xml.a", ...) failed.

make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28u_xml.a del ..\..\lib\gcc_dll\libwxbase28u_xml.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxbase28u_xml.a del ..\..\lib\gcc_dll\libwxbase28u_xml.a", ...) failed.

make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_xrc_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_xrc_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_xrc_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_xrc_gcc_custom.
dll", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_xrc.a del ..\..\lib\gcc_dll\libwxmsw28u_xrc.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_xrc.a del ..\..\lib\gcc_dll\libwxmsw28u_xrc.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_xrc.a del ..\..\lib\gcc_dll\libwxmsw28u_xrc.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_xrc.a del ..\..\lib\gcc_dll\libwxmsw28u_xrc.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_aui_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_aui_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_aui_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_aui_gcc_custom.
dll", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_aui.a del ..\..\lib\gcc_dll\libwxmsw28u_aui.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_aui.a del ..\..\lib\gcc_dll\libwxmsw28u_aui.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_aui.a del ..\..\lib\gcc_dll\libwxmsw28u_aui.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_aui.a del ..\..\lib\gcc_dll\libwxmsw28u_aui.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_richtext_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_richtext_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_richtext_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_richtext_g
cc_custom.dll", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_richtext.a del ..\..\lib\gcc_dll\libwxmsw28u_richtext.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_richtext.a del ..\..\lib\gcc_dll\libwxmsw28u_richtext.a", ...)
 failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_richtext.a del ..\..\lib\gcc_dll\libwxmsw28u_richtext.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_richtext.a del ..\..\lib\gcc_dll\libwxmsw28u_richtext.a", ...)
 failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28u_gl_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_gl_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw28u_gl_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28u_gl_gcc_custom.dl
l", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_gl.a del ..\..\lib\gcc_dll\libwxmsw28u_gl.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_gl.a del ..\..\lib\gcc_dll\libwxmsw28u_gl.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28u_gl.a del ..\..\lib\gcc_dll\libwxmsw28u_gl.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw28u_gl.a del ..\..\lib\gcc_dll\libwxmsw28u_gl.a", ...) failed.
make (e=2): System can not find the file specified。
mingw32-make: [clean] Error 2 (ignored)
mingw32-make -C ..\..\samples -f makefile.gcc LINK_DLL_FLAGS="-shared" LINK_MODULE_FLAGS="-shared" CC="gcc" CXX="g++" CFLAGS="" CXXFLAGS=""
CPPFLAGS="" LDFLAGS="" CPP="gcc -E" SHARED="1" WXUNIV="0" UNICODE="1" MSLU="0" BUILD="release" DEBUG_INFO="default" DEBUG_FLAG="default" MON
OLITHIC="1" USE_GUI="1" USE_HTML="1" USE_MEDIA="1" USE_XRC="1" USE_AUI="1" USE_RICHTEXT="1" USE_OPENGL="0" USE_ODBC="0" USE_QA="0" USE_EXCEP
TIONS="1" USE_RTTI="1" USE_THREADS="1" USE_CAIRO="0" USE_GDIPLUS="0" OFFICIAL_BUILD="0" VENDOR="custom" WX_FLAVOUR="" WX_LIB_FLAVOUR="" CFG=
"" CPPUNIT_CFLAGS="" CPPUNIT_LIBS="" RUNTIME_LIBS="dynamic" GCC_VERSION="3" clean
process_begin: CreateProcess(NULL, -c "mingw32-make -C ..\..\samples -f makefile.gcc LINK_DLL_FLAGS=\"-shared\" LINK_MODULE_FLAGS=\"-shared\
" CC=\"gcc\" CXX=\"g++\" CFLAGS=\"\" CXXFLAGS=\"\" CPPFLAGS=\"\" LDFLAGS=\"\" CPP=\"gcc -E\" SHARED=\"1\" WXUNIV=\"0\" UNICODE=\"1\" MSLU=\"
0\" BUILD=\"release\" DEBUG_INFO=\"default\" DEBUG_FLAG=\"default\" MONOLITHIC=\"1\" USE_GUI=\"1\" USE_HTML=\"1\" USE_MEDIA=\"1\" USE_XRC=\"
1\" USE_AUI=\"1\" USE_RICHTEXT=\"1\" USE_OPENGL=\"0\" USE_ODBC=\"0\" USE_QA=\"0\" USE_EXCEPTIONS=\"1\" USE_RTTI=\"1\" USE_THREADS=\"1\" USE_
CAIRO=\"0\" USE_GDIPLUS=\"0\" OFFICIAL_BUILD=\"0\" VENDOR=\"custom\" WX_FLAVOUR=\"\" WX_LIB_FLAVOUR=\"\" CFG=\"\" CPPUNIT_CFLAGS=\"\" CPPUNI
T_LIBS=\"\" RUNTIME_LIBS=\"dynamic\" GCC_VERSION=\"3\" clean", ...) failed.
make (e=2):System can not find the file specified。
mingw32-make: *** [clean] Error 2
« Last Edit: August 15, 2011, 05:39:04 am by zage2009 »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5225
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: an error building wxMSW-2.8.12 using minGW
« Reply #9 on: August 15, 2011, 07:16:38 am »
I sucessfully build the nightly version and can use it.
good news!
Quote
but now I want to use it in WinXP in vmware WorkStation 7.1(using wxMSW-2.8.12,tdm-gcc-4.5.2) and enter the command:
Code: [Select]
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean and result shows an error
No idea about your error, I have never build wx under wmware, maybe, it was different between vmwared win XP and a native win XP.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

zage2009

  • Guest
Re: an error building wxMSW-2.8.12 using minGW
« Reply #10 on: August 15, 2011, 09:00:50 am »
I build nightly version sucessfully in WinXP in wmware WorkStation 7.1 and the problem is the conflict between the gcc-avr(winAVR) and the MinGW32 and after I remove the WinAVR(including the environment variable) everything works well and I accomplish it at last.
Thanks ollydbg for your providing thehttp://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows  and the zip.exe software for me.
« Last Edit: August 15, 2011, 09:04:01 am by zage2009 »