LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-26-2014, 02:52 PM   #1
darkflow
LQ Newbie
 
Registered: May 2014
Posts: 8

Rep: Reputation: Disabled
help with building codeblocks package using SlackBuild


I'm trying to install Code::Blocks, the C++ IDE.

I followed the SlackBuilds README and after running the the SlackBuild script I should have had the package ready to install with the installpkg tool. The SlackBuild script created the SBo directory in the /tmp directory, but I cannot see the package which I can install with installpkg

/tmp/SBo cantains 2 directories:

codeblocks-13.12
package-codeblocks

the package-codeblocks directory is empty.

I think SlackBuild script did not build the package, because after running it i got the following errors:

Quote:
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
root@sirius:~#
Can anyone help?
 
Old 05-26-2014, 03:16 PM   #2
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
/tmp

Did you look for the built package in /tmp? Finished Slackbuild packages from Slackbuilds.org are normally placed in /tmp, not the subdirectory. Try "ls -alt /tmp | head" and see what shows up.

The Slackbuild can be modified to have the package placed wherever you want in the filesystem.

EDIT:
The errors don't look good however. It simply may have not built the package due to errors. I can't help with the errors other than noting that the package requires wxPython which you should have built and installed first

Last edited by TracyTiger; 05-26-2014 at 03:21 PM.
 
Old 05-26-2014, 03:22 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,177

Rep: Reputation: Disabled
Please post 10 lines or so before the first one already posted
Quote:
make[2]: *** [../../src/include/sdk_precomp.h.gch] Error 1
as we miss the reason why this error occurred.

PS I just built and installed a package without issue for Slackware-14.0 and the IDE starts OK.

As pointed out by TracyTiger, did you build and install first wxPython? Also, did you make a full Slackware installation? I ask that because maintainers of SlackBuilds @ slackbuilds.org always assume that is the case, in other words dependencies included in a full Slackware installation are never listed.

Last edited by Didier Spaier; 05-26-2014 at 03:56 PM. Reason: PS added.
 
Old 05-26-2014, 04:14 PM   #4
darkflow
LQ Newbie
 
Registered: May 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Below is the complete SlackBuild error output.

Quote:
*************************************************
* Code::Blocks source tree has been configured. *
*************************************************

You can now build Code::Blocks by issuing 'make'.
When the build is complete, become root and install
it by issuing 'make install'.

Making all in src
make[1]: Entering directory `/tmp/SBo/codeblocks-13.12/src'
Making all in include
make[2]: Entering directory `/tmp/SBo/codeblocks-13.12/src/include'
rm -f ../../src/include/sdk_precomp.h.gch
g++ -DHAVE_CONFIG_H -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../src/include -I../../src/sdk/wxscintilla/include -I../../src/include/tinyxml -I../../src/include/scripting/include -I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet -I../../src/include/mozilla_chardet/mfbt -I../../src/include/mozilla_chardet/nsprpub/pr/include -I../../src/include/mozilla_chardet/xpcom -I../../src/include/mozilla_chardet/xpcom/base -I../../src/include/mozilla_chardet/xpcom/glue -ansi -DTIXML_USE_STL -Wno-unused-local-typedefs -O2 -ffast-math -DCB_AUTOCONF -O2 -fPIC -fpermissive -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -o ../../src/include/sdk_precomp.h.gch -xc++-header ./sdk_precomp.h
In file included from ./sdk_common.h:67:0,
from ./sdk_precomp.h:13:
/usr/include/wx-2.8/wx/filename.h: In static member function 'static wxChar wxFileName::GetPathSeparator(wxPathFormat)':
/usr/include/wx-2.8/wx/filename.h:393:43: error: ambiguous overload for 'operator[]' (operand types are 'wxString' and 'unsigned int')
{ return GetPathSeparators(format)[0u]; }
^
/usr/include/wx-2.8/wx/filename.h:393:43: note: candidates are:
/usr/include/wx-2.8/wx/filename.h:393:43: note: operator[](const wxChar* {aka const wchar_t*}, long int) <built-in>
In file included from /usr/include/wx-2.8/wx/memory.h:16:0,
from /usr/include/wx-2.8/wx/object.h:20,
from /usr/include/wx-2.8/wx/wx.h:16,
from /usr/include/wx-2.8/wx/wxprec.h:68,
from ./sdk_common.h:37,
from ./sdk_precomp.h:13:
/usr/include/wx-2.8/wx/string.h:822:13: note: wxChar& wxString:perator[](int)
wxChar& operator[](int n)
^
/usr/include/wx-2.8/wx/string.h:824:13: note: wxChar& wxString:perator[](wxStringBase::size_type)
wxChar& operator[](size_type n)
^
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 just installed wxPython-2.8.12.1-i486-1ponce.txz, but still got the errors as above.

No, the installation is not a completely a full Slackware install, but libraries and other general stuff is pretty much fully installed. I did not omit much during installation.
 
Old 05-26-2014, 04:34 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,177

Rep: Reputation: Disabled
Maybe you downloaded ponce's package for Slackware 14.0 instead of Slackware 14.1? I ask that because they have the same name.

If you are not sure, you can always build you own wxPython package using build material provided @ slackbuilds.org.

I assume that you installed Slackware14.1 (32 bits), not Slackware64-14.1. Is that right?

PS I confirm that the header files /usr/include/wx-2.8/wx/{filename.h,string.h} come from wxPython.

Last edited by Didier Spaier; 05-26-2014 at 05:44 PM. Reason: One more header file listed.
 
Old 05-27-2014, 06:33 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,272

Rep: Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284
I think he has installed a 32 bit wxPython package on a 64 bit installation.
 
Old 05-28-2014, 11:36 AM   #7
darkflow
LQ Newbie
 
Registered: May 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
yes, before I installed the 32 bit version. 64 bit is now installed instead and there seems to be no errors after running the script, but I cannot find the package to install with installpkg. Where would it normally be? I have the /tmp/SBo directory, which been created after running SlackBuild, with codeblocks stuff in it, but where is the package?

I've attached the output of the SlackBuild, but cut out the some of it to make it smaller than 256 kb so it could be attached.
Attached Files
File Type: log slackbuild.log (199.0 KB, 22 views)
 
Old 05-28-2014, 11:59 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,272

Rep: Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284Reputation: 4284
you cutted the end, where it says where it has saved the package: where the final package is located is based on the value of the OUTPUT variable that by default it's set to /tmp, see the howto.

if you need to show logs to other people, maybe the best way is through pastebin (tutorial).

Last edited by ponce; 05-28-2014 at 12:07 PM.
 
Old 05-31-2014, 05:47 AM   #9
darkflow
LQ Newbie
 
Registered: May 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
it finally worked! noticed that I had installed the 32 bit version of wxWidgets at first on the 64 bit install. Solved by removing the 32 bit and installing the 64 bit version. Same mistake I've done with wxPython

Thanks for your responses
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Error when building texlive package from SlackBuild site mariner53 Slackware 4 08-09-2013 06:50 PM
Error while building CodeBlocks from source Dober Linux - Software 2 02-23-2013 03:31 PM
[SOLVED] Building linux-firmware package with Pat's slackbuild script Phorize Slackware 8 10-05-2011 05:54 AM
[SOLVED] ORBit2 Slackbuild fails when building 32 bit package on current multilib damgar Slackware 4 04-10-2010 02:26 PM
building from slackbuild script konfigure Slackware 2 03-21-2009 09:59 AM

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

All times are GMT -5. The time now is 05:07 AM.

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