News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

xsWidgets dosn't work with CodeBlocks_12.11_

Started by Gerry4481, June 22, 2013, 11:35:57 AM

Previous topic - Next topic

Gerry4481

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?

oBFusCATed

Quote from: Gerry4481 on June 22, 2013, 11:35:57 AM
So I compiled wxWigets with the following command : mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release

Quote from: Gerry4481 on June 22, 2013, 11:35:57 AM
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.
(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!]


Gerry4481

@oBFusCATed I don't understand your answer can you please explain much easy...because for me this all is new

Thanks for the help!

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Gerry4481

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!

Gerry4481

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!







oBFusCATed

Quote from: Gerry4481 on June 23, 2013, 07:41:04 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.
(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!]