User forums > Help

Using wxWidgets

<< < (2/2)

Biplab:
It seems that you are using wrong build target. Change your build target to Release.

I am currently working on modifying the wxWidgets App wizard in Code::Blocks. The work is not complete yet, but it gives you options of choosing wxWidgets 2.6 or wxWidgets 2.8. See the following screenshot.



The modified wizard has been tested with GCC and Borland. It is not properly working with MSVC 8. Once it is complete I'll upload patch to Berlios. I'm trying to clean and improve the wizard.

 :D

RJP Computing:

--- Quote from: Samuel G. on December 21, 2006, 11:36:45 am ---Thanks for your engangement. It was helpful, but still I am not able to build a wxWidgets-Application.

I set the variable "wx" (I did not set the values lib and include, I think this is not necessary (?)). Then I started the Wizzard for a wxWidgets-Project. (I knew the tutorial, but it I was confused whether I had to set the values lib, include and to which value). I want the Project to use wxWidgets as a static library, so I guess it was right to make the following selection:

Use wxWidgets DLL: No
wxWidgets is build as a monolithic library: Yes
Enable Unicode: Yes
Use the debugging libraries: NO
Create and use precompiled header: Yes

In the linker options I change libwxmsw26u.a to libwxmsw27u.a. When I build, I get the following errors (build log)

--- Quote ----------------- Build: Debug in Test ---------------
Precompiling header: wx_pch.h
Compiling: main.cpp
Compiling: app.cpp
Linking console executable: bin\Debug\Test.exe
H:\wxWidgets2.7\lib\gcc_lib/libwxmsw27u.a(monolib_colordlg.o):colordlg.cpp:(.text+0xd11): undefined reference to `ChooseColorW@4'
...
0 errors, 0 warnings
--- End quote ---

Do I also have to add include or lib directories in the "compiler and debugger" settings?

--- End quote ---
Yup I made a comment about that in my reply to you. The wizard is leaving out the library 'Comdlg32' in the linker settings. Just add it to the "Build Options->Linker->Link Libraries"

I updated the tutorial as well.


--- Quote from: biplab on December 21, 2006, 12:47:57 pm ---I am currently working on modifying the wxWidgets App wizard in Code::Blocks. The work is not complete yet, but it gives you options of choosing wxWidgets 2.6 or wxWidgets 2.8. See the following screenshot.
--- End quote ---
Looks great. This is a needed addition. Thanks.

Biplab:
Hi Ryan,

The present form of the wizard script supports GCC (MinGW Build) and MSVC 7.1 (it seems to me) properly. But it supports Monolithic build properly. For other builds of wxWidgets, the support is not good. I am trying to add support for other Compilers, namely Borland C++ Compiler 5.5.1 and MSVC 8 (I know you don't prefer it, we had a discussion on this in wxPack forum  :)) and as well as improving support for other wx builds.

The Borland support is quite complete right now. But the wizard generates Debug target in a different way. So the debug target is creating problem for Borland compiler. I have already posted the problem in this forum.  :D

RJP Computing:
Biplab,

Yes I agree the support is almost perfect, but the selection dialog is going to be great! Keep up the good work.


--- Quote from: biplab on December 21, 2006, 03:44:22 pm ---...
I am trying to add support for other Compilers, namely Borland C++ Compiler 5.5.1 and MSVC 8 (I know you don't prefer it, we had a discussion on this in wxPack forum  :)) and as well as improving support for other wx builds.
--- End quote ---
Oh I like MSVC 8.0 just not there dll manifest requirement. :)

Samuel G.:
My Problems are solved :) :) :)

Navigation

[0] Message Index

[*] Previous page

Go to full version