SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been trying to build the Code::Blocks from slackbuilds.org (for x86_64), and keep coming up with errors that I think are to do with wxwidgets.
Looking at the forums of Code::Blocks has nothing but the one thing about building wxwidgets without 'stl', which I did, but now I get even *more* errors when trying to build it.
Here is a copy of the errors (sorry for the size):
Code:
./menuitemsmanager.h:12:1: note: in expansion of macro 'WX_DEFINE_ARRAY'
WX_DEFINE_ARRAY(wxMenuItem*, MenuItemsList);
^
In file included from ./sdk_common.h:142:0,
from ./sdk_precomp.h:13:
./menuitemsmanager.h: At global scope:
./menuitemsmanager.h:36:17: error: 'wxMenuItem' does not name a type
virtual wxMenuItem* Add(wxMenu* parent, int id, const wxString& caption, const wxString& helptext);
^
./menuitemsmanager.h:37:17: error: 'wxMenuItem' does not name a type
virtual wxMenuItem* Insert(wxMenu* parent, int index, int id, const wxString& caption, const wxString& helptext);
^
In file included from ./sdk_common.h:143:0,
from ./sdk_precomp.h:13:
./scriptingmanager.h:228:27: error: 'wxCommandEvent' has not been declared
void OnScriptMenu(wxCommandEvent& event);
^
./scriptingmanager.h:229:33: error: 'wxCommandEvent' has not been declared
void OnScriptPluginMenu(wxCommandEvent& event);
^
In file included from ./sdk_common.h:144:0,
from ./sdk_precomp.h:13:
./toolsmanager.h:37:20: error: 'wxCommandEvent' has not been declared
void OnToolClick(wxCommandEvent& event);
^
./toolsmanager.h:38:15: error: 'wxIdleEvent' has not been declared
void OnIdle(wxIdleEvent& event);
^
./toolsmanager.h:42:20: error: 'wxCommandEvent' has not been declared
void OnConfigure(wxCommandEvent& event);
^
In file included from ./sdk_common.h:153:0,
from ./sdk_precomp.h:13:
./xtra_res.h:21:41: error: invalid use of incomplete type 'class wxXmlResourceHandler'
class wxToolBarAddOnXmlHandler : public wxXmlResourceHandler
^
./xtra_res.h:19:7: error: forward declaration of 'class wxXmlResourceHandler'
class wxXmlResourceHandler;
^
./xtra_res.h:34:19: error: 'wxArtClient' does not name a type
const wxArtClient& defaultArtClient = wxART_OTHER,
^
./xtra_res.h:34:51: warning: ISO C++ forbids declaration of 'defaultArtClient' with no type [-fpermissive]
const wxArtClient& defaultArtClient = wxART_OTHER,
^
./xtra_res.h:34:51: error: 'wxART_OTHER' was not declared in this scope
./xtra_res.h:39:1: error: expected class-name before '{' token
{
^
In file included from ./sdk_common.h:155:0,
from ./sdk_precomp.h:13:
./infowindow.h:41:22: error: 'wxTimerEvent' has not been declared
void OnTimer(wxTimerEvent& e);
^
./infowindow.h:49:9: error: 'wxTimer' does not name a type
wxTimer *m_timer;
^
make[2]: *** [../../src/include/sdk_precomp.h.gch] Error 1
make[2]: Leaving directory `/tmp/SBo/codeblocks-13.12/src/include'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/codeblocks-13.12/src'
make: *** [all-recursive] Error 1
I've also tried a search here on linuxquestions, but came up empty there also.
Has anyone had this trouble or have any idea what should be done to correct it so I can install this?
And what changes did you make that caused even more errors?
I've had WxPython installed since this past July (screenshot below).
What I did was uninstalled Wx11, then rebuilt it from the slackbuilds.org site *without* 'stl', then installed it and then tried to rebuild Code::Blocks again. That's when I got even more errors.
Last edited by green_vein; 11-19-2014 at 04:39 PM.
I didn't see any mention of wxPython. Only stating he rebuilt wxWidgets. wxPython is different from wxWidgets (http://www.wxpython.org/what.php)
Quote:
I've had WxPython installed since this past July (screenshot below).
What I did was uninstalled Wx11, then rebuilt it from the slackbuilds.org site *without* 'stl', then installed it and then tried to rebuild Code::Blocks again. That's when I got even more errors.
It sounds like something is screwed up with your base install or you're missing some software that is included with the full install of slackware (or something that is installed is causing conflicts). I was able to build and run codeblocks without issue once I installed wxPython. Are you running 14.1? Because that is the version I tested this on. I do not have any other version of wxWidgets on my system (including WxX11). The following are the only 3rd party packages I've built from slackbuilds.org
I solved it. It seems that because I had wxGTK *and* wxGTK3 installed, code::blocks wasn't sure what lib's to use.
I uninstalled all and anything 'wx' and installed wxPython, then tried to install code::blocks - didn't work. I then tried with each 'wx' package singly (as I did with the wxPython) and then trying to build code::blocks and none worked.
Then, I installed wxPython *and* wxX11, and still code::blocks wouldn't build. So I also installed wxGTK and suddenly code::blocks built and is installed.
The problem I was having was that the wxGTK page says it *cannot* be installed alongside wxPython and so I was messing up.
Also, thewxX11 *must* be 2.8.12 as the 2.8.7 code::blocks will tell you isn't a high enough version.
Anyway, thanks to everyone for helping with this. The ideas that one or more (or less!) of the wx packages was needed or not was what got me to experimenting enough to figure it out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.