Author Topic: xsWidgets dosn't work with CodeBlocks_12.11_  (Read 5468 times)

Offline Gerry4481

  • Single posting newcomer
  • *
  • Posts: 6
xsWidgets dosn't work with CodeBlocks_12.11_
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: xsWidgets dosn't work with CodeBlocks_12.11_
« Reply #1 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.
(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 Gerry4481

  • Single posting newcomer
  • *
  • Posts: 6
Re: xsWidgets dosn't work with CodeBlocks_12.11_
« Reply #2 on: June 22, 2013, 12:45:34 pm »

Offline Gerry4481

  • Single posting newcomer
  • *
  • Posts: 6
Re: xsWidgets dosn't work with CodeBlocks_12.11_
« Reply #3 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!

Online stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: xsWidgets dosn't work with CodeBlocks_12.11_
« Reply #4 on: June 22, 2013, 03:15:52 pm »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Gerry4481

  • Single posting newcomer
  • *
  • Posts: 6
Re: xsWidgets dosn't work with CodeBlocks_12.11_
« Reply #5 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!

Offline Gerry4481

  • Single posting newcomer
  • *
  • Posts: 6
Re: xsWidgets dosn't work with CodeBlocks_12.11_
« Reply #6 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!
 






Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: xsWidgets dosn't work with CodeBlocks_12.11_
« Reply #7 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.
(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!]