Author Topic: build codeblocks error when using SVN version and wxWidgets 2.8.9  (Read 11001 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5930
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
I'm in windows xp.
hi, I download the svn version of codeblocks source file. and open the CBP file. I have already set the wx variable to the place I have install the wxWidgets 2.8.9.
when I press the build button, there are some errors when compiling.
see the screen shot below.
Any suggestions?

Another question is if I want to only build the "codecompletion" part, how do I configure? Thanks :D

[attachment deleted by admin]
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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5930
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build codeblocks error when using SVN version and wxWidgets 2.8.9
« Reply #1 on: December 26, 2008, 02:35:33 pm »
I have solve the problem, I rebuild the release unicode libraray of wxWidgets.

By the way, I add many pictures of the screen shot in this wiki

http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows

If you have interests, please try to enrich this wiki. Thanks.
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.

Offline Joerg

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: build codeblocks error when using SVN version and wxWidgets 2.8.9
« Reply #2 on: January 20, 2009, 02:50:45 pm »
Hi ollydgb,

does that mean I need a 'complete' mingw  installation
and that the version delivered with C::B isn't sufficient?
I think my installation ..\CodeBlocks\MinGW\bin\ lacks something (mkdir)?

D:\wxWidgets-2.8.9\build\msw>mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1
UNICODE=1 BUILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
process_begin: CreateProcess(NULL, -c "if not exist gcc_mswudll mkdir gcc_mswudl
l", ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
process_begin: CreateProcess(NULL, -c "if not exist ..\..\lib\gcc_dll mkdir ..\.
.\lib\gcc_dll", ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make: *** [..\..\lib\gcc_dll] Error 2
It's never too late to fail!

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5930
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build codeblocks error when using SVN version and wxWidgets 2.8.9
« Reply #3 on: January 20, 2009, 03:20:29 pm »
Sorry, I can't understand your question...Could you give a more detail? Thanks.
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: build codeblocks error when using SVN version and wxWidgets 2.8.9
« Reply #4 on: January 20, 2009, 04:04:07 pm »
Hi ollydgb,

does that mean I need a 'complete' mingw  installation
and that the version delivered with C::B isn't sufficient?
I think my installation ..\CodeBlocks\MinGW\bin\ lacks something (mkdir)?

D:\wxWidgets-2.8.9\build\msw>mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1
UNICODE=1 BUILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
process_begin: CreateProcess(NULL, -c "if not exist gcc_mswudll mkdir gcc_mswudl
l", ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
process_begin: CreateProcess(NULL, -c "if not exist ..\..\lib\gcc_dll mkdir ..\.
.\lib\gcc_dll", ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make: *** [..\..\lib\gcc_dll] Error 2


If I remember right, this error is caused by an errornous version of MinGW's binutils.
I do not remember which one it was, but you can try it with a more recent one.

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: build codeblocks error when using SVN version and wxWidgets 2.8.9
« Reply #5 on: January 20, 2009, 04:27:53 pm »
Hi ollydgb,

does that mean I need a 'complete' mingw  installation
and that the version delivered with C::B isn't sufficient?
I think my installation ..\CodeBlocks\MinGW\bin\ lacks something (mkdir)?

D:\wxWidgets-2.8.9\build\msw>mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1
UNICODE=1 BUILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
process_begin: CreateProcess(NULL, -c "if not exist gcc_mswudll mkdir gcc_mswudl
l", ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
process_begin: CreateProcess(NULL, -c "if not exist ..\..\lib\gcc_dll mkdir ..\.
.\lib\gcc_dll", ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make: *** [..\..\lib\gcc_dll] Error 2

Hi,
I have come across this situation.
I guess you have a yagarto (or other toolchain) and set global environment variables for it.
you need clear the global environment variables in the winxp and be sure one(MinGW) in your system.
Or you can find dependency between toolchains without clear environment variables.

Best regards.

Offline Joerg

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: build codeblocks error when using SVN version and wxWidgets 2.8.9
« Reply #6 on: January 20, 2009, 05:11:47 pm »
Quote
I guess you have a yagarto (or other toolchain) and set global environment variables for it
Yep!
Though I thought the tools know whom they belong to,
and when I invoke with make-mingw32.exe it takes the right gcc.
Anyway, will try without Yagarto in the path.
It's never too late to fail!

Offline pingf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: build codeblocks error when using SVN version and wxWidgets 2.8.9
« Reply #7 on: March 14, 2009, 03:00:30 pm »
Hi ollydgb,

does that mean I need a 'complete' mingw  installation
and that the version delivered with C::B isn't sufficient?
I think my installation ..\CodeBlocks\MinGW\bin\ lacks something (mkdir)?

D:\wxWidgets-2.8.9\build\msw>mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1
UNICODE=1 BUILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
process_begin: CreateProcess(NULL, -c "if not exist gcc_mswudll mkdir gcc_mswudl
l", ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
process_begin: CreateProcess(NULL, -c "if not exist ..\..\lib\gcc_dll mkdir ..\.
.\lib\gcc_dll", ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make: *** [..\..\lib\gcc_dll] Error 2

Hi,
I have come across this situation.
I guess you have a yagarto (or other toolchain) and set global environment variables for it.
you need clear the global environment variables in the winxp and be sure one(MinGW) in your system.
Or you can find dependency between toolchains without clear environment variables.

Best regards.
THX,
I just got stuck for this reason.
as what you've said about,I deleted the environment variables for winavr,which includes the avr-gcc.
then it works!