Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-26-2014, 02:52 PM
|
#1
|
LQ Newbie
Registered: May 2014
Posts: 8
Rep:
|
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?
|
|
|
05-26-2014, 03:16 PM
|
#2
|
Member
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528
|
/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.
|
|
|
05-26-2014, 03:22 PM
|
#3
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,177
Rep:
|
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.
|
|
|
05-26-2014, 04:14 PM
|
#4
|
LQ Newbie
Registered: May 2014
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
05-26-2014, 04:34 PM
|
#5
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,177
Rep:
|
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.
|
|
|
05-27-2014, 06:33 AM
|
#6
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,272
|
I think he has installed a 32 bit wxPython package on a 64 bit installation.
|
|
|
05-28-2014, 11:36 AM
|
#7
|
LQ Newbie
Registered: May 2014
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
05-28-2014, 11:59 AM
|
#8
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,272
|
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.
|
|
|
05-31-2014, 05:47 AM
|
#9
|
LQ Newbie
Registered: May 2014
Posts: 8
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|