User forums > General (but related to Code::Blocks)
building wxWidget on Kubuntu
devguy:
yes I am going to give jens step a go, i just need to step away from the PC and relax my mind! currently i am all over the place with wxWidgets, CB, NB, KDbg and wx-config :P
devguy:
--- 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 ---
Jens I followed these steps and was able to get something to build, however when I try to run the app from CB I keep getting an error box that says, "It seems this Project has not been built yet? Do you want to build it now?"
if I look in the folder the binary is there, if i delete it, it does get rebuilt also.
devguy:
ok following Jens steps I was able to get things going, however I need to also do the following steps:
right click on project properties
select "Build targets" tab
1) correct execution working folder to point to location of binary
2) correct output filename field to contain either a relative path or absolute path with filename
i can now build, run and debug the sample apps using CB, thanks everyone for you help! :P
MortenMacFly:
--- Quote from: jens on April 17, 2011, 08:31:43 pm ---
* Create an empty project with the wizard,
* [...]
--- End quote ---
--- Quote from: devguy on April 18, 2011, 05:27:05 am ---right click on project properties
select "Build targets" tab
1) correct execution working folder to point to location of binary
2) correct output filename field to contain either a relative path or absolute path with filename
--- End quote ---
Jens/devguy, might that be something to put into the WiKi?!
Jenna:
--- Quote from: MortenMacFly on April 18, 2011, 07:03:05 am ---
--- Quote from: jens on April 17, 2011, 08:31:43 pm ---
* Create an empty project with the wizard,
* [...]
--- End quote ---
--- Quote from: devguy on April 18, 2011, 05:27:05 am ---right click on project properties
select "Build targets" tab
1) correct execution working folder to point to location of binary
2) correct output filename field to contain either a relative path or absolute path with filename
--- End quote ---
Jens/devguy, might that be something to put into the WiKi?!
--- End quote ---
Surely yes.
@devguy:
sorry I forgot, that you have to fix the filename and execution working directory accordingly (I often also forget it, if I use a custom makefile project for wxWidgets sample also).
And it can make sense to import win32 projects, because they can (in many cases) be build on linux with a cross-compiler for windows (I do it sometimes).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version