Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: agam on August 14, 2011, 04:03:24 pm
-
I am running codeblocks 10.05 on linux (centos). Using the project wizard I was able to successfully create a dialog based wxWidgets project.
I selected the following options via the wizard:
-- 2.8.x version of wxWidgets
-- wxformbuilder as the preferred gui builder
-- dialog based application type
-- GNU gcc compiler
-- default wxWidgets library config
Everything worked fine the code builds and executes properly. Now I want to modify the gui via wxformbuilder.
How do I do this? Where is wxformbuilder?
It must be available because there is a source file in the project with comments stating it was generated with wxformbuilder.
Thanks
-
How do I do this? Where is wxformbuilder?
wxFormBuilder is an additional software for creating GUI's interactively which you can/have to download here: http://wxformbuilder.org . You can then embed wxFormBuilder e.g. as a tool to launch when clicking of wxFormBuilder manages resources.
There is an alternative which is "wxSmith" - a plugin embedded directly into Code::Blocks that allows basically the same. But some prefer wxFormBuilder, so supported is both.
-
Does this mean that eventhough I selected wxformbuilder in the project wizard as the gui builder and the project wizard created a source file with comments stating that wxformbuilder was used to create the file, that in fact wxformbuilder is wasnt used to create the project? While experimenting with the project wizard I tried to select wxsmith and the wizard was able to tell me that wxsmith wasnt available it would be nice if selecting wxformbiuilder did the same thing.
I also tried downloading the source code for wxformbuilder and unpacked the tar ball and executed the create_build_files.sh script. A wxFormbuilder.workspace file was generated, but I dont know how to instruct codeblocks to open this worksapce file. I tried double clicking the file and tried to look for an option in the codeblocks IDE to open such a file but had no luck. Then I tried executing the command "make CONFIG=release" but the build failed with...
codegen/codewriter.cpp: In member function ‘void CodeWriter::FixWrite(wxString, bool)’:
codegen/codewriter.cpp:107: error: ‘wxRE_ADVANCED’ was not declared in this scope
make[1]: *** [.objs/codewriter.o] Error 1
make: *** [wxFormBuilder] Error 2
What steps can I take to resolve this issue?
Thanks
-
I don't know anything about wxFormBuilder (never used it), but for wxSmith, you need to install the contrib-plugins package ( I don't know how it is called on centos).
-
What steps can I take to resolve this issue?
Besides installing wxSmith (what Jens suggested) you can also download the already compiled version of wxFormBuilder from their webpage here:
http://wxformbuilder.org/?page_id=7
(BTW: Google told me that.)