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

building wxWidget on Kubuntu

<< < (5/6) > >>

devguy:
Jens, MortenMacFly:

I took what I was able to collect here and since I am ramping up to help on the wxWidgets projects, I added an entry on the wxWiki site in case anyone else wants to use C::B for some hacking :P

http://wiki.wxwidgets.org/Code::Blocks

Thank again to everyone for all the help!

MortenMacFly:

--- Quote from: devguy on April 18, 2011, 08:34:59 am ---http://wiki.wxwidgets.org/Code::Blocks

--- End quote ---
Thanks for this, but I actually meant our WiKi (http://wiki.codeblocks.org)... :lol:

devguy:
i know what you meant =) .... i captured it for developers who in the future might want to help out wxWidgets and need an IDE to build and debug code, think of it as a way to champion CB

Boleczek:

--- Quote from: jens on April 17, 2011, 08:31:43 pm ---
* Create an empty project with the wizard,
* right click the project in the management pane,
* chose "Properties",
* check "This is a custom makefile",
* adjust the makefiles-name and probably its path (if needed, default path is the projects bas path),
* close the "Properties" dialog,
* right click the project in the management pane,
* chose "Build options"
* open the "Make commands" tab (rightmost),
* fix the make commands (most likely needed),
* close the dialog
* right click the project in the management pane,
* click "Add files" or "Add files recursively",
* add the files you want to your project,
* save your project (via menu, context menu or ALT+SHIFT+S)This works flawlessly for the wxWidgets samples on linux, on windows, I sometimes (always?, do not remember exactly, I use linux almost every time) have to add the options used to build wxWidgets to the makefile-call.

--- End quote ---

I spent a whole day trying to open and build a wxWidgets sample project using the above steps and finally gave up. I have wxWidgets 2.8.12 and Code Blocks 10.05 (came with mingw32 gcc compiler). A description of the sample project which I would like to run is found here:
http://docs.wxwidgets.org/trunk/page_samples.html#page_samples_sockets
The project files can be found online here: http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/samples/sockets/
These files were installed on my windows machine with wxWidgets and are placed in this directory: C:\wxWidgets-2.8.12\samples\sockets
I usually create projects here: C:\Program Files\Code Blocks\projects

Can you please explain some of your steps:


* Create an empty project with the wizard,If the sample project uses frames shouldn't I create an "wxWidgets project" and use wxSmith? I called the project "My" since the cpp files use "MyFrame". Should I copy the sample project files into the same directory as the newly created "My" CB project?


* adjust the makefiles-name and probably its path (if needed, default path is the projects bas path),Can you please check the attached screen shots and if wrong let me know what they should be?


* fix the make commands (most likely needed),How do I fix them and what do I set them to?


* click "Add files" or "Add files recursively",Which files need to be added to the CB project? Is it enough with the .cpp files?

Would much appreciate your help - thank you!



[attachment deleted by admin]

[attachment deleted by admin]

jarod42:

--- Quote from: Boleczek ---I usually create projects here: C:\Program Files\Code Blocks\projects
--- End quote ---

I would suggest to create project in a directory
- not under 'c:\Program Files\' (where permission is special).
- without space in it path.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version