Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Gerry4481 on June 22, 2013, 11:35:57 am

Title: xsWidgets dosn't work with CodeBlocks_12.11_
Post by: Gerry4481 on June 22, 2013, 11:35:57 am
i, it's possible that I make beginner's mistake. So my OS is Win7-32bit SP1 and I use codeblocks-12.11 mingw32-4.7.1 and I use wxWidgets-2.9.4( also I try wxMSW-2.8.12-Setup).


I have put Windows PATH environment variable Windows the follow path C:\Program Files\CodeBlocks\MinGW\bin.

So I compiled wxWigets with the following command : mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release
and It works fine no Problems.

Next Step I start C:B and I use typical settings for a new Project.

I's equal what settings I use it's always the same error e.g.:

A matching Debug configuration cannot be found in the wxWidgets directory you specified. This means tthat Debug target of your projct will not build.
Are you sure you want to continue with these setting?

I try some options but I have no success.

Can somebody help me?
Title: Re: xsWidgets dosn't work with CodeBlocks_12.11_
Post by: oBFusCATed on June 22, 2013, 12:33:20 pm
So I compiled wxWigets with the following command : mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release

A matching Debug configuration cannot be found in the wxWidgets directory you specified. This means that Debug target of your projct will not build.

See the difference... the debug target by default requires a debug build of wxWidgets.
You have two options:
1. build debug build of wxWidgets
2. change the debug target to use the release version of wxWidgets.
Title: Re: xsWidgets dosn't work with CodeBlocks_12.11_
Post by: Gerry4481 on June 22, 2013, 12:45:34 pm
I use the help of this blog http://wiki.wxwidgets.org/Compiling_wxWidgets_with_MinGW

Title: Re: xsWidgets dosn't work with CodeBlocks_12.11_
Post by: Gerry4481 on June 22, 2013, 12:55:00 pm
@oBFusCATed I don't understand your answer can you please explain much easy...because for me this all is new

Thanks for the help!
Title: Re: xsWidgets dosn't work with CodeBlocks_12.11_
Post by: stahta01 on June 22, 2013, 03:15:52 pm
Read the info on this link
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef (http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef)
Title: Re: xsWidgets dosn't work with CodeBlocks_12.11_
Post by: Gerry4481 on June 22, 2013, 05:58:13 pm
I use this now this command for bulilding:  mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport

But I don't understand in the quickRef is written "You must duplicate them exactly when running Code::Blocks' wxWidgets project wizard."   WHAT I MUST DUPLICATE UND IN WHAT PATH OF CODE:BLOCKS I MUST COPY THE FILE.
IT MEANS THE LIB\GCC_DLL ??

THANKS A LOT!
Title: Re: xsWidgets dosn't work with CodeBlocks_12.11_
Post by: Gerry4481 on June 23, 2013, 07:41:04 am
OK I have solved my problem :-)))))) oh men it's so easy__*lol*

I make ALWAYS the same mistake!!!

SO when I create a new Project at the >>Compiler Configuration>>GNU GCC Compiler>>

there are two Options: 1. Create "Debug" Configuration
                               2. Create "Release" Configuration

here  I choose always both of this two Options :-(( but you have to choose one of the options. that depends of the build options of wxWidgets

I have build with this options: mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport

IMPORTANT IS THIS PART OF THE OPTION "BUILD=release"

so I have to choose in the new Project in Code::Blocks >>Compiler Configuration>>GNU GCC Compiler>>

only>> Create "Release" Configuration

That`s it!!!

In the end it's so simple!
 





Title: Re: xsWidgets dosn't work with CodeBlocks_12.11_
Post by: oBFusCATed on June 23, 2013, 10:30:24 am
so I have to choose in the new Project in Code::Blocks >>Compiler Configuration>>GNU GCC Compiler>>

only>> Create "Release" Configuration
This is not required, you can create a debug config, too, but you have to modify it (manually) to use the release version of the wxWidgets.