User forums > Help
compiling with wxWidgets
jdauthre:
I am new to both codeblocks and compiling (on a MAC) I have compiled wxwidgets successfully and it works having successfully compiled the wx samples using terminal. I have put in all the paths etc that came up using wx-config. When I try and compile a project in codeblocks I get:
...../wxWidgets-3.0.2/include/wx/platform.h|183|fatal error: 'wx/setup.h' file not found|. I have googled for ages and can't find a solution. I am using Mavericks osx and wxWidgets 3.0.2. Can anyone help?
Thanks
BlueHazzard:
you have to add the
--- Code: ---wxWidgets-X.X.X\lib\SOMETHING\OTHER_SOMETHING
--- End code ---
to the include directories in your project. X.X.X is your wx Version SOMETHING is your build configuration (static or not ecc.) and OTHER_SOMETHING is probably "mac",, but i have no idea (on windows it is msw)
greetings
oBFusCATed:
@BlueHazzard: This is a windows only thing. On Unix wx-config should handle this automatically.
@jdauthre: Are you able to build some minimal sample on the command line using your newly build wxwidgets?
Jenna:
--- Quote from: oBFusCATed on September 07, 2015, 09:52:44 pm ---@jdauthre: Are you able to build some minimal sample on the command line using your newly build wxwidgets?
--- End quote ---
--- Quote from: jdauthre on September 07, 2015, 07:17:36 pm ---[...] it works having successfully compiled the wx samples using terminal.
--- End quote ---
I guess it works.
--- Quote from: jdauthre on September 07, 2015, 07:17:36 pm ---I have put in all the paths etc that came up using wx-config. When I try and compile a project in codeblocks I get:
...../wxWidgets-3.0.2/include/wx/platform.h|183|fatal error: 'wx/setup.h' file not found|. I have googled for ages and can't find a solution. I am using Mavericks osx and wxWidgets 3.0.2. Can anyone help?
Thanks
--- End quote ---
Did you use wx-config or did you add the paths manually (this is error-prone).
If the second:try the wxWidgets-wizard and fix the paths to wx-config if needed.
jdauthre:
Thanks, steep learning curve, I used wx-config to get the paths and put them in manually, I didn't know that can be done automatically, I will give that a try if I can find out how to do
Navigation
[0] Message Index
[#] Next page
Go to full version