User forums > Help
How to setup wxwidgets in code::blocks Linux
takeshimiya:
--- Quote from: Andre on April 26, 2006, 05:59:58 pm ---But it still doesn't compile. I loos like it doesn't expand the backsticked part to the shell. Here the last Build Log:
--- Code: ----------------- Build: default in wxSmith_project ---------------
g++ `wx-config --cflags` -I.objs -I- -I.objs -I. -I/usr/include -c wx_pch.h -o .objs/wx_pch.h.gch
cc1plus: note: obsolete option -I- used, please use -iquote instead
wx_pch.h:9:23: error: wx/wxprec.h: No such file or directory
wx_pch.h:16:20: error: wx/wx.h: No such file or directory
Process terminated with status 1 (0 minutes, 1 seconds)
2 errors, 0 warnings
--- End code ---
--- End quote ---
Ok, found your problem. Backticks are expanding correctly, wx-config is working correctly.
The problem is that the precompiled headers are being generated in the object output dir (default). For that to work GCC needs some header paths. But it's more easy to change the precompiled headers strategy.
Just open the project in a text editor and add after <Option title="wxSmith_project" />:
--- Code: (xml) ---<Option title="wxSmith_project" />
<Option pch_mode="0" />
--- End code ---
Or the GUI way: go to menu Project->Properties and in Precompiled headers, change the strategy to Generate PCH in a directory alongside original header.
Generate PCH alongside original header should work too.
Another thing: the warning that appears there cc1plus: note: obsolete option -I- used, please use -iquote instead is being generated by GCC4, which now use -iquote instead of -I-.
takeshimiya:
BTW, all it needs to fix this is a call to project->SetModeForPCH(pchSourceDir); in wxSmith's wxswizard.cpp, which was in a patch I sent to byo some weeks ago.
But it's high likely that the C::B new wizard system will be used for wxSmith wizard, so just do that in the meantime.
Andre:
--- Quote from: Takeshi Miya on April 26, 2006, 07:11:58 pm ---Just open the project in a text editor and add after <Option title="wxSmith_project" />:
--- Code: (xml) ---<Option title="wxSmith_project" />
<Option pch_mode="0" />
--- End code ---
Or the GUI way: go to menu Project->Properties and in Precompiled headers, change the strategy to Generate PCH in a directory alongside original header.
Generate PCH alongside original header should work too.
--- End quote ---
That did it. Works like intended. Thank you very much.
Regards,
Andre
Navigation
[0] Message Index
[*] Previous page
Go to full version