User forums > General (but related to Code::Blocks)

building wxWidget on Kubuntu

(1/6) > >>

devguy:
hello in my effort to learn how to use wxWidgets, i've downloaded the wxwidgets code from svn head and was able to build it to install at /var/local

i would like to know how i can use import the wxwidget sample code into codeblocks and start to build it, also how can i setup codeblocks so that it will allow me to view the UI resource with wxSmith

Thanks!

MortenMacFly:

--- Quote from: devguy on April 17, 2011, 05:00:41 am ---i would like to know how i can use import the wxwidget sample code into codeblocks and start to build it, also how can i setup codeblocks so that it will allow me to view the UI resource with wxSmith

--- End quote ---
Use the associated project wizard for this purpose. File -> New -> Project... -> Pich "wxWidgets" and follow the instructions.

cacb:

--- Quote from: devguy on April 17, 2011, 05:00:41 am ---hello in my effort to learn how to use wxWidgets, i've downloaded the wxwidgets code from svn head and was able to build it to install at /var/local

i would like to know how i can use import the wxwidget sample code into codeblocks and start to build it, also how can i setup codeblocks so that it will allow me to view the UI resource with wxSmith

Thanks!

--- End quote ---

Hi, you may find http://arnholm.org/cpde/cpde_20101120.pdf to be of some help.

Among other things, it describes a script for building wxWidgets on Linux. If you have installed a special version of wxWidgets, in my experience you need to take special care in using the correct "wx-config" when compiling and linking, or else you can get the wrong public one. I have wxwidgets installed under /usr/local, and the way I have been able to make 100% sure I am using the right one, is with the follwing compiler setting (notice the backticks)


--- Code: ---´/usr/local/bin/wx-config --version=2.8 --toolkit=gtk2 --cxxflags´
--- End code ---

and in linker options

--- Code: ---´/usr/local/bin/wx-config --version=2.8 --toolkit=gtk2 --static=yes --libs´
--- End code ---


(In the future, I am hoping to be able to use a global variable instead of the hard coded path to wx-config). As you can see, I am using static libs for wxWidgets. YMMV.

wxSmith should be included in Code::Blocks. At least it is in the nightlies I use.

devguy:

Use the associated project wizard for this purpose. File -> New -> Project... -> Pich "wxWidgets" and follow the instructions.
[/quote]

I think this is for new project, what I need to do is import an existing project. I was able to use netbeans to import the project by pointing to the makefile and it was painless to setup. Can I do the samething with CodeBlocks?

oBFusCATed:
Yes, you can create "Custom makefile projects".
Search the forum, wiki and docs for details...

Navigation

[0] Message Index

[#] Next page

Go to full version