LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-19-2014, 12:56 PM   #1
green_vein
Member
 
Registered: Nov 2014
Location: Deport illegals!
Posts: 36

Rep: Reputation: 4
Trouble building Code::Blocks...


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?
 
Old 11-19-2014, 01:22 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Did you install the required wxPython?

http://slackbuilds.org/repository/14...ries/wxPython/

And what changes did you make that caused even more errors?
 
Old 11-19-2014, 02:48 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I just checked and I was able to build it successfully after building wxPython. Both builds were done using sbopkg/slackbuilds.org.
 
Old 11-19-2014, 03:04 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by bassmadrigal View Post
Did you install the required wxPython?

http://slackbuilds.org/repository/14...ries/wxPython/

And what changes did you make that caused even more errors?
He did, he states that in the OP.
 
Old 11-19-2014, 04:38 PM   #5
green_vein
Member
 
Registered: Nov 2014
Location: Deport illegals!
Posts: 36

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by bassmadrigal View Post
Did you install the required wxPython?

http://slackbuilds.org/repository/14...ries/wxPython/

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.
Attached Thumbnails
Click image for larger version

Name:	Wx*_installed.jpg
Views:	19
Size:	84.7 KB
ID:	16902  

Last edited by green_vein; 11-19-2014 at 04:39 PM.
 
Old 11-19-2014, 06:13 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by moisespedro View Post
He did, he states that in the OP.
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

Code:
atkmm-2.22.7-x86_64-1_SBo.tgz
cairomm-1.10.0-x86_64-1_SBo.tgz
codeblocks-13.12-x86_64-1_SBo.tgz
exiftool-9.70-x86_64-1_SBo.tgz
flashplayer-plugin-11.2.202.418-x86_64-1_SBo.tgz
glibmm-2.36.2-x86_64-1_SBo.tgz
google-earth-7.1.2.2041-i386-2_SBo.tgz
gparted-0.19.0-x86_64-1_SBo.tgz
gtkmm-2.24.4-x86_64-1_SBo.tg
inxi-2.2.14-noarch-1_SBo.tgz
krusader-2.4.0_beta3-x86_64-1_SBo.tgz
libreoffice-4.3.4-x86_64-1_SBo.tgz
libsigc++-2.2.11-x86_64-1_SBo.tgz
libva-0.31.1_1+sds4-x86_64-1_SBo.tgz
libvdpau-0.8-x86_64-1_SBo.tgz
mkvtoolnix-6.4.1-x86_64-1_SBo.tgz
mm-common-0.9.6-noarch-1_SBo.tgz
nut-2.6.5-x86_64-1_SBo.tgz
pangomm-2.34.0-x86_64-1_SBo.tgz
python-cheetah-2.4.4-x86_64-1_SBo.tgz
schedtool-1.3.0-x86_64-1_SBo.tgz
smplayer-14.3.0-x86_64-2_SBo.tgz
unrar-5.0.14-x86_64-1_SBo.tgz
wxPython-2.8.12.1-x86_64-2_SBo.tgz
xvba-sdk-0.74-404001-noarch-1_SBo.txz
I've also installed multilib and upgraded to Eric's KDE 4.13.3.

Have you tried building without WxX11?

Last edited by bassmadrigal; 11-19-2014 at 06:14 PM.
 
Old 11-19-2014, 09:16 PM   #7
green_vein
Member
 
Registered: Nov 2014
Location: Deport illegals!
Posts: 36

Original Poster
Rep: Reputation: 4
Yes, 14.1 is what I'm running, since it came out.

I'll uninstall all the 'wxwidgets' containers - wxpython and wx11 - and reinstall them and see what happens.
 
Old 11-19-2014, 09:21 PM   #8
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
bassmadrigal, I misread the package's name.

My bad.
 
Old 11-19-2014, 10:11 PM   #9
green_vein
Member
 
Registered: Nov 2014
Location: Deport illegals!
Posts: 36

Original Poster
Rep: Reputation: 4
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
code::blocks 10.05 does not highlight code? michaelinux Linux - Software 1 10-24-2010 11:25 AM
code::blocks elishac Linux - Software 40 01-25-2010 11:51 PM
LXer: Threading Building Blocks Packaged into Ubuntu Hardy Heron LXer Syndicated Linux News 0 02-22-2008 08:20 PM
LXer: Intel Open-Sources Threading Building Blocks Software LXer Syndicated Linux News 0 07-24-2007 11:46 PM
Code::Blocks h3x0r Programming 2 04-13-2007 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration