Installing in Code::Blocks with MinGW and no MSYS or CYGWIN

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
hooloovoo13
In need of some credit
In need of some credit
Posts: 1
Joined: Mon Feb 12, 2007 8:39 pm

Installing in Code::Blocks with MinGW and no MSYS or CYGWIN

Post by hooloovoo13 » Mon Feb 12, 2007 8:58 pm

I hvae tried to follow the instructions in http://www.wxwidgets.org/wiki/index.php ... etup_Guide to get wxWidgets 2.8.0 working in Code::Blocks.

I have MingGW installed according to instructions on this webpage: http://wiki.codeblocks.org/index.php?ti ... stallation. And I have a Code::Blocks nighlty build up and running fine.

According to the tutorial above for installing wxWidgets in Code::Blocks you have to run the command

Code: Select all

mingw32-make.exe -f makefile.gcc clean

and then following which you must run

Code: Select all

 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
I got a whole bunch of errors with the first command and therefore the second command didn't work. So I changed the first command to:

Code: Select all

 mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
when I read that the clean command must look the same as the actual command for when you make wxWidgets.
But that also didn't work and I got the same errors.

Here is what I got when I ran the 'clean' command:

Code: Select all

C:\wxWidgets-2.8.0\build\msw>mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
if exist gcc_mswdll\*.o del gcc_mswdll\*.o
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist gcc_mswdll\*.d del gcc_mswdll\*.d
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxregex.a del ..\..\lib\gcc_dll\libwxregex.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxzlib.a del ..\..\lib\gcc_dll\libwxzlib.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxpng.a del ..\..\lib\gcc_dll\libwxpng.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxjpeg.a del ..\..\lib\gcc_dll\libwxjpeg.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxtiff.a del ..\..\lib\gcc_dll\libwxtiff.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxexpat.a del ..\..\lib\gcc_dll\libwxexpat.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw28_
gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28.a del ..\..\lib\gcc_dll\libwxmsw28.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28.a del ..\..\lib\gcc_dll\libwxmsw28.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxbase28_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase2
8_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28.a del ..\..\lib\gcc_dll\libwxbase28.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28.a del ..\..\lib\gcc_dll\libwxbase28.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxbase28_net_gcc_custom.dll del ..\..\lib\gcc_dll\wxb
ase28_net_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28_net.a del ..\..\lib\gcc_dll\libwxbase28_n
et.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28_net.a del ..\..\lib\gcc_dll\libwxbase28_n
et.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_core_gcc_custom.dll del ..\..\lib\gcc_dll\wxm
sw28_core_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_core.a del ..\..\lib\gcc_dll\libwxmsw28_co
re.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_core.a del ..\..\lib\gcc_dll\libwxmsw28_co
re.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_adv_gcc_custom.dll del ..\..\lib\gcc_dll\wxms
w28_adv_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_adv.a del ..\..\lib\gcc_dll\libwxmsw28_adv
.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_adv.a del ..\..\lib\gcc_dll\libwxmsw28_adv
.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_media_gcc_custom.dll del ..\..\lib\gcc_dll\wx
msw28_media_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_media.a del ..\..\lib\gcc_dll\libwxmsw28_m
edia.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_media.a del ..\..\lib\gcc_dll\libwxmsw28_m
edia.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxbase28_odbc_gcc_custom.dll del ..\..\lib\gcc_dll\wx
base28_odbc_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28_odbc.a del ..\..\lib\gcc_dll\libwxbase28_
odbc.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28_odbc.a del ..\..\lib\gcc_dll\libwxbase28_
odbc.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_dbgrid_gcc_custom.dll del ..\..\lib\gcc_dll\w
xmsw28_dbgrid_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_dbgrid.a del ..\..\lib\gcc_dll\libwxmsw28_
dbgrid.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_dbgrid.a del ..\..\lib\gcc_dll\libwxmsw28_
dbgrid.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_html_gcc_custom.dll del ..\..\lib\gcc_dll\wxm
sw28_html_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_html.a del ..\..\lib\gcc_dll\libwxmsw28_ht
ml.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_html.a del ..\..\lib\gcc_dll\libwxmsw28_ht
ml.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_qa_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw
28_qa_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_qa.a del ..\..\lib\gcc_dll\libwxmsw28_qa.a

/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_qa.a del ..\..\lib\gcc_dll\libwxmsw28_qa.a

/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxbase28_xml_gcc_custom.dll del ..\..\lib\gcc_dll\wxb
ase28_xml_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28_xml.a del ..\..\lib\gcc_dll\libwxbase28_x
ml.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase28_xml.a del ..\..\lib\gcc_dll\libwxbase28_x
ml.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_xrc_gcc_custom.dll del ..\..\lib\gcc_dll\wxms
w28_xrc_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_xrc.a del ..\..\lib\gcc_dll\libwxmsw28_xrc
.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_xrc.a del ..\..\lib\gcc_dll\libwxmsw28_xrc
.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_aui_gcc_custom.dll del ..\..\lib\gcc_dll\wxms
w28_aui_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_aui.a del ..\..\lib\gcc_dll\libwxmsw28_aui
.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_aui.a del ..\..\lib\gcc_dll\libwxmsw28_aui
.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_richtext_gcc_custom.dll del ..\..\lib\gcc_dll
\wxmsw28_richtext_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_richtext.a del ..\..\lib\gcc_dll\libwxmsw2
8_richtext.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_richtext.a del ..\..\lib\gcc_dll\libwxmsw2
8_richtext.a
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw28_gl_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw
28_gl_gcc_custom.dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_gl.a del ..\..\lib\gcc_dll\libwxmsw28_gl.a

/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw28_gl.a del ..\..\lib\gcc_dll\libwxmsw28_gl.a

/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [clean] Error 258 (ignored)
mingw32-make.exe -C ..\..\samples -f makefile.gcc CC="gcc" CXX="g++" CFLAGS="" C
XXFLAGS="" CPPFLAGS="" LDFLAGS="" CPP="gcc -E" SHARED="1" WXUNIV="0" UNICODE="0"
 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_TH
READS="1" USE_GDIPLUS="0" OFFICIAL_BUILD="0" VENDOR="custom" WX_FLAVOUR="" WX_LI
B_FLAVOUR="" CFG="" CPPUNIT_CFLAGS="" CPPUNIT_LIBS="" RUNTIME_LIBS="dynamic" GCC
_VERSION="3" clean
mingw32-make: *** ....samples: No such file or directory.  Stop.
mingw32-make.exe: *** [clean] Error 2
And here is what I got when I ran the make command

Code: Select all

C:\wxWidgets-2.8.0\build\msw>mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
if not exist gcc_mswdll mkdir gcc_mswdll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: [gcc_mswdll] Error 258 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make.exe: *** [..\..\lib\gcc_dll] Error 258
How do I fix this without installing MSYS or CYGWIN? Which I'm sure is possible because otherwise the above tutorial would be completely wrong. And please don't tell me I have to do it with wxWidgets 2.6.3 because that also wouldn't make sense since 2.8.0 is a stable release. :) And yes, I do have mingw32-make.exe v3.8.1

I have searched the forum in an effort to find a solution, but all the other people with a similar problem to me seemed to have MSYS installed, which is not my case.

Please help.

biplab
I live to help wx-kind
I live to help wx-kind
Posts: 194
Joined: Fri Feb 17, 2006 4:16 am
Location: Singapore
Contact:

Post by biplab » Tue Feb 13, 2007 9:33 am

Don't use MSYS to compile wxWidgets. Better remove reference (C:\msys\1.0\bin) of MSYS from PATH variable and then type the commands, you were using, in cmd.exe (Windows Command Prompt).

If you wish to use MSYS, then you need to follow ./configure and then make, which I personally will not recommend in Windows. :)

Regards,

Biplab
Blog: http://biplab.in

IDE: Code::Blocks
Compilers: GCC, MSVC, etc. ;)
OS: WinXP-SP2 & Linux.

User avatar
T-Rex
Moderator
Moderator
Posts: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Tue Feb 13, 2007 2:49 pm


FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Post by FlyingIsFun1217 » Tue Feb 13, 2007 3:20 pm

No offense, but I can barely see anything except LARGE letters in that video (which is a shame, because I actually wanted to see it)

FlyingIsFun1217

User avatar
T-Rex
Moderator
Moderator
Posts: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Tue Feb 13, 2007 4:03 pm

Mmm.. I'm not sure that I understand you correctly.. you want to see the whole compilation log or compilation process?
I was thinking that there should be nothing interesting since compilation passes successfully and there was no need to make any changes to makefiles or to the source code, I mean no additional actions for setting up compilation process.

biplab
I live to help wx-kind
I live to help wx-kind
Posts: 194
Joined: Fri Feb 17, 2006 4:16 am
Location: Singapore
Contact:

Post by biplab » Tue Feb 13, 2007 4:44 pm

IMHO, it's a cool video. Filling a Video with compilation process would unnecessarily waste bandwidth. ;)

But presently the video needs a major change. Currently the wizard has undergone a massive change. You need to select appropriate settings only. Wizard will do the rest. Please download latest Nightly to get the features. Get it from

http://forums.codeblocks.org/index.php?board=20.0

Entering that command is sufficient to complete the whole process. No other user intervention is necessary.
Blog: http://biplab.in

IDE: Code::Blocks
Compilers: GCC, MSVC, etc. ;)
OS: WinXP-SP2 & Linux.

FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Post by FlyingIsFun1217 » Tue Feb 13, 2007 4:54 pm

T-Rex wrote:Mmm.. I'm not sure that I understand you correctly.. you want to see the whole compilation log or compilation process?
I was thinking that there should be nothing interesting since compilation passes successfully and there was no need to make any changes to makefiles or to the source code, I mean no additional actions for setting up compilation process.
No, I mean that on my end the video is very low res. Its hard to see anything in it.

FlyingIsFun1217 :)

User avatar
T-Rex
Moderator
Moderator
Posts: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Tue Feb 13, 2007 5:27 pm

FlyingIsFun1217, have you tried to watch the video in fullscreen mode? It looks as expected for me (I have 1280x1024 on my machine). The screen resultion of target system was 1024x768 and there should be no artifacts when watching it fullscreen.

FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Post by FlyingIsFun1217 » Tue Feb 13, 2007 5:41 pm

I'll try that, thanks for the tip!

FlyingIsFun1217

User avatar
T-Rex
Moderator
Moderator
Posts: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Tue Feb 13, 2007 9:10 pm

Just tried the latest nightly build of Code::Blocks... Amazing.. indeed now it is possible to configure the project with wizard and there is no need to configure it manually. I'm impressed... now thinking about new video tutorial :)

biplab
I live to help wx-kind
I live to help wx-kind
Posts: 194
Joined: Fri Feb 17, 2006 4:16 am
Location: Singapore
Contact:

Post by biplab » Wed Feb 14, 2007 8:20 am

T-Rex wrote:Just tried the latest nightly build of Code::Blocks... Amazing.. indeed now it is possible to configure the project with wizard and there is no need to configure it manually. I'm impressed... now thinking about new video tutorial :)
Thanks for the feedback. Officially Code::Blocks now supports GCC (Windows, Linux & MAC), BCC 5.5.1 & 5.82, MSVC 7.1 & 8 for wxWidgets. You need to select any of the compilers and then select appropriate library settings. The wizard will automatically configure rest of the settings for you. Try it with other compilers and see the result. :D

You can post your valuable feedback in the following thread-

http://forums.codeblocks.org/index.php?topic=4768.0

or in My Blog (Please use the address from my signature)

Regards,

Biplab
Blog: http://biplab.in

IDE: Code::Blocks
Compilers: GCC, MSVC, etc. ;)
OS: WinXP-SP2 & Linux.

JayK
In need of some credit
In need of some credit
Posts: 2
Joined: Thu Feb 15, 2007 3:35 pm
Location: Germany
Contact:

Post by JayK » Thu Feb 15, 2007 3:57 pm

I have the same problem as the thread starter and nothing mentioned here solves the problem.
I'm trying to compile wxWidgets 2.8.0 for three days now, unsucessfully.
There are always errors when trying to make:

Code: Select all

C:\dev\wx\build\msw>mingw32-make -f makefile.gcc BUILD=debug UNICODE=1
if not exist gcc_mswud mkdir gcc_mswud
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
mingw32-make: [gcc_mswud] Error 2 (ignored)
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
mingw32-make: *** [..\..\lib\gcc_lib] Error 2
It doesn't work as well with this how-to:
http://forums.wxwidgets.org/viewtopic.php?t=11457
(and I can't agree with the second poster, that it works with 2.8.0. At least not for me. I did every step of this very carefully and exactly as written there - except replacing with my own paths - but it doesn't work.)
I'm not using MSYS and I tried both with and without Cygwin (w/o first), the result's the same.
The linked video doesn't help either as there is nothing else done with wxWidgets as it is written in the how-to, except for the direct config in the command line, which doesn't work either, and version 2.7.0 is compiled, not 2.8.0. And the compilation process should not have anything to do with Code::Blocks whose features regarding the configuration to use the compiled library have been discussed afterwards.

What do I do wrong all the time?

Best regards
JayK

biplab
I live to help wx-kind
I live to help wx-kind
Posts: 194
Joined: Fri Feb 17, 2006 4:16 am
Location: Singapore
Contact:

Post by biplab » Thu Feb 15, 2007 4:24 pm

JayK, I would give you same solution as I gave earlier in this thread. Remove reference of CygWin bin directory from your PATH variable and then compile wxWidgets in cmd.exe. :)
Blog: http://biplab.in

IDE: Code::Blocks
Compilers: GCC, MSVC, etc. ;)
OS: WinXP-SP2 & Linux.

JayK
In need of some credit
In need of some credit
Posts: 2
Joined: Thu Feb 15, 2007 3:35 pm
Location: Germany
Contact:

Post by JayK » Thu Feb 15, 2007 4:57 pm

Oh. That's embarrassing... sorry.
You're absolutely right, that way it works. Thank you very much. :)

Ah, I didn't notice your solution because you wrote about the MSYS bin directory... but if this is inevitably connected with the cygwin's one then I'm sorry, but I read "MSYS" the first time yesterday and didn't do any research related to it ;) Seems I should have done so.

User avatar
T-Rex
Moderator
Moderator
Posts: 1198
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Thu Feb 15, 2007 9:40 pm

Well, I already finished new video-tutorial:
wxWidgets-2.8.0 and Code::Blocks with new wizard
http://forums.wxwidgets.org/viewtopic.php?t=12741

Post Reply