LinuxQuestions.org
Visit Jeremy's Blog.
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 12-04-2018, 04:40 PM   #16
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 17
Posts: 8,997
Blog Entries: 14

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106

Quote:
If I need to build something that doesn't have a SlackBuild, I'll figure out the compile options by manually compiling it, but NOT installing it. Then I'll create a SlackBuild so that I can create a package that can be installed.
Thanks for explaining.

I'll have to read how to create a SlackBuild in order to install a pkg.

@Pipeline79

Thanks for explaining why you didn't want only VLC or Amarok.
It sounds like ace stream is more than a regular player.

Sorry your still getting errors that I am not able to help with.
 
Old 12-04-2018, 05:30 PM   #17
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,472

Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Thanks for explaining.

I'll have to read how to create a SlackBuild in order to install a pkg.
Start here and then fill in the blanks while removing the comments after you read and understand them.

https://slackbuilds.org/templates/
 
Old 12-04-2018, 06:41 PM   #18
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 17
Posts: 8,997
Blog Entries: 14

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
Quote:
Originally Posted by orbea View Post
Start here and then fill in the blanks while removing the comments after you read and understand them.

https://slackbuilds.org/templates/
Thanks-
 
Old 12-04-2018, 06:51 PM   #19
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,522

Rep: Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267
Quote:
Originally Posted by Pipeline79 View Post
Right, I know now where the extra versions of libavcodec.so and so on came from now (that caused the error messages). They came from the debian package on that webpage which I tried extracting, making into a package and installing. Now that I've removed that, they're gone.
Good to hear. When you convert a package from another distro, it's good to run installpkg --warn /location/to/package.txz as this will notify you if it is going to overwrite any existing Slackware files. I'm wondering if that is related to your libxml error below, but I'll get to that in a bit.

Quote:
Originally Posted by Pipeline79 View Post
As for the code, it has a config.sh, a bootstrap.sh and configure.sh. The config.sh you're supposed to edit for your 'HOST', then run bootstrap.sh. Somehow I got through the bootstrap part before, just by changing the HOST type to "x86_64" from "i686-w64-mingw32".
You can also remove the i686-w64-mingw32 from the HOST variable and leave it blank. I read somewhere, maybe on the website or one of their readmes, that you needed to do that on Linux.

Quote:
Originally Posted by Pipeline79 View Post
You can also edit the VLC version, which is 2.1.5, as someone said. I tried changing that to 3.0.4 just now. Neither version will work now, anyway. I get:

Code:
vlc-3.0.4/config.h.in
vlc-3.0.4/make-alias
vlc-3.0.4/ChangeLog
\033[33mInfo:\033[0m Applying patch: /home/kevin/build/acestreamplayer/patches/10-locale.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru vlc-2.1.2.orig/po/acestreamplayer.pot vlc-2.1.2/po/acestreamplayer.pot
|--- vlc-2.1.2.orig/po/acestreamplayer.pot      2014-07-06 19:54:01.000000000 +0300
|+++ vlc-2.1.2/po/acestreamplayer.pot   2014-10-28 13:11:31.320150970 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file po/en_GB.po
Hunk #1 FAILED at 10086.
Hunk #2 FAILED at 31524.
Hunk #3 FAILED at 35411.
3 out of 3 hunks FAILED -- saving rejects to file po/en_GB.po.rej
patching file po/Makevars
Hunk #1 succeeded at 3 with fuzz 1.
patching file po/POTFILES.in
Hunk #1 FAILED at 1176.
1 out of 1 hunk FAILED -- saving rejects to file po/POTFILES.in.rej
patching file po/ru.po
Hunk #1 succeeded at 10037 with fuzz 2 (offset 331 lines).
Hunk #2 succeeded at 36580 (offset 3130 lines).
Hunk #3 FAILED at 34746.
1 out of 3 hunks FAILED -- saving rejects to file po/ru.po.rej
patching file po/uk.po
Hunk #1 succeeded at 10043 with fuzz 2 (offset 318 lines).
Hunk #2 FAILED at 34007.
Hunk #3 FAILED at 36308.
2 out of 3 hunks FAILED -- saving rejects to file po/uk.po.rej
\033[31mError:\033[0m Cannot apply patch /home/kevin/build/acestreamplayer/patches/10-locale.patch
This specific error is because it is trying to patch vlc, but the patch wasn't designed for this version and the code doesn't match, so it doesn't know what to change. I was able to get through this section with leaving the version at 2.1.5, so I'm not sure why that's failing. But if you want to run 3.0.4, you have a few options, either try running it without any patches comment out line 78-84 in bootstrap.sh. If you want to try and load the other patches (so far, 10-locale.patch is failing), change the else in line 81 to elif [ "$i" -gt "10" ]; then and see if it is able to patch the rest.

Quote:
Originally Posted by Pipeline79 View Post
And, if I try using sbopkg to build the dependencies for the latest vlc on there first, as I should - loads of them won't.
The first one that fails is libbluray. I.e.:

Code:
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for library containing pthread_create... -lpthread
checking for library containing dlopen... -ldl
checking for pkg-config... /home/kevin/.linuxbrew/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... no
configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:

No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

libbluray:
Would you like to continue processing the rest of the
queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:
But I do actually have it installed:

Code:
Looking for libxml in package list. Please wait... DONE

The list below shows all packages with name matching "libxml".

[ Status           ] [ Repository               ] [ Package                                  ]
   installed               multilib                     libxml2-compat32-2.9.5-x86_64-1_slack14.2compat32  
   installed               patches                      libxml2-2.9.5-x86_64-1_slack14.2          
  uninstalled(masked)      slackware64                  libxml2-2.9.4-x86_64-2                    

You can search specific files using "slackpkg file-search file".
This looks like you might've accidentally overwritten Slackware files when you installed that converted package. The first thing I would attempt is to reinstall libxml2 and libxm2-compat32 to make sure it is installed properly.

Code:
slackpkg reinstall libxml2
I think it will prompt for both the regular patched version as well as the compat32.

If that doesn't work, we'd need to look at the config.log that is generated. It is most likely in /tmp/SBo/libbluray-1.0.2/config.log. This will hopefully help point us to the reason why it isn't working.

Quote:
Originally Posted by Ztcoracat View Post
I'll have to read how to create a SlackBuild in order to install a pkg.
The link orbea posted is the templates that SBo uses to generate SlackBuilds. They are a bit more complicated than what a simple SlackBuild could contain, but most of that is to ensure uniformity of packages provided by SBo. A *very* simple SlackBuild is below.

Code:
PRGNAM=appname
VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION

./configure
make
make install DESTDIR=$PKG

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
You just need to set the PKGNAM and VERSION variables and add any ./configure options you need.

The big difference with making a Slackware package instead of installing directly is using the DESTDIR variable on make install. This will install everything for that program in the directory you specify. Then you just cd into that directory and run the makepkg command. If you want a description for the package when installing, you would need to make a slack-desc file and put it under a $PKG/install/ directory, but it isn't required.

Most of the first half of the above is just to simplify making the package by setting default directories where it will extract the source and temporary install location, as well as removing any previous attempts at packaging and extracting the source.

Once you understand the basics of what a SlackBuild does like the above, then the templates SBo uses can be understood better. They have examples for multiple build tools like autotools (which uses configure), cmake, python, and more.
 
2 members found this post helpful.
Old 12-07-2018, 05:21 AM   #20
Pipeline79
LQ Newbie
 
Registered: Sep 2018
Location: Kent, United Kingdom
Distribution: Slackware 14.2
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for your help bassmadrigal & Ztcoracat. I'm going to go through your suggestions now.
 
Old 12-08-2018, 08:49 PM   #21
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 17
Posts: 8,997
Blog Entries: 14

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
Quote:
Originally Posted by Pipeline79 View Post
Thanks for your help bassmadrigal & Ztcoracat. I'm going to go through your suggestions now.
You're Welcome-

I hope you get it installed and working.

==================******======================******=======================******=================== =======******============

I'm still reading the links in the pages you linked orbea; Thanks:-

bassmadrigal,
Thanks for the simple script:-
 
Old Yesterday, 10:32 AM   #22
Pipeline79
LQ Newbie
 
Registered: Sep 2018
Location: Kent, United Kingdom
Distribution: Slackware 14.2
Posts: 10

Original Poster
Rep: Reputation: Disabled
OK, I can get the required packages for VLC built using sbopkg now.
I was also able to get a compiled version of VLC-3.0.1 made with the scripts in that code, but I had to comment out the 'patches' and it seems like if I do that I just end up with a regular version of VLC. Not that useful!

After looking through the instructions more thoroughly for the Ubuntu/Debian archives I tried to install, I don't think you're supposed to actually install them as packages. You're supposed to extract them to your /opt directory and just run a 'start-engine' script from there and that gives the engine part I wanted, that's it.

Unfortunately, seems they don't work on Slackware because of slackware Python being UTF-2 not UTF-4 encoding. Someone else has already posted about this and tried working round it by installing a custom python environment for this with pyenv. Still not working though.

But, I can get a readymade docker image for this working fine for now, so I guess I can't complain too much. Don't need wine.
 
Old Yesterday, 03:08 PM   #23
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 17
Posts: 8,997
Blog Entries: 14

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
Were you able to get acestream installed?
 
  


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
Does Slackware 14.1 64-bit multilib OS dependencies match well with a Debian based OS conversion Nickademus Linux - Newbie 1 11-24-2018 09:47 AM
[SOLVED] Slackware 14.2 multilib - Adobe Reader does not start due to missing library libxshmfence.so.1 glupa4e Slackware 1 08-21-2016 10:02 AM
[ANN] mk-slack64-multilib : A tool to create slackware64+multilib tree/iso phenixia2003 Slackware 5 12-28-2012 06:42 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 10:04 AM
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 08:16 AM

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

All times are GMT -5. The time now is 11:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration