LinuxQuestions.org
Review your favorite Linux distribution.
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 10-07-2019, 11:35 AM   #2086
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246

That's fine! I'll wait. I'll see if I can get involved in some other way with SBO package maintenance though.
 
Old 10-12-2019, 10:42 PM   #2087
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 152
Blog Entries: 1

Rep: Reputation: Disabled
POV-Ray

In current/graphics/povray, povray.SlackBuild references VERSION:-3.7.0.3, which is currently unfindable.
https://github.com/POV-Ray/povray/bl...e/revision.txt suggests POV-Ray v3.7.0.3 was dated 2017-05-18. The version 3.7.0.0 tarball on slackbuilds does not build. renderbackend.h has invalid template arguments, and frame.h has an ambiguous reference with class std::shared_ptr bits vs class shared_ptr under boost.
Latest-stable is v3.7.0.8, which builds clean. (I got the latest-stable.git, made a tarball and fed it to the SlackBuild script.)
 
Old 10-12-2019, 11:49 PM   #2088
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,007

Original Poster
Rep: Reputation: Disabled
Hi hpfeil,

the link to the tarball of the version I updated to two years ago (because 3.7.0.0 didn't build at the time) can be found on the patched povray.info file

http://cgit.ponce.cc/slackbuilds/commit/?h=povray

that can still be downloaded but it seems, strangely, that the md5sum has changed...
also it still won't build because of the issues with the newer boost in current you also noted.

so, like you suggested, I have pushed an update to 3.7.0.8: you can find the tarball also between their releases on github

https://github.com/POV-Ray/povray/re...enizer.9684878

thanks for reporting!

Last edited by ponce; 10-13-2019 at 12:13 AM.
 
Old 10-13-2019, 09:44 AM   #2089
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 152
Blog Entries: 1

Rep: Reputation: Disabled
Thanks for the quick fix, Ponce!

Blender appears to be CUDA-centric, doesn't like Mesa OpenCL, so I want to convince blender to use POV-Ray for the Cycles render engine. AMD's Radeon OpenCL doesn't much like Ryzen's Radeon Vega mobile gfx GPU. Not a priority, since CPU rendering is too fast on small scenes. Povray benchmark runs trace time 3m14s with 3 seconds photon time. Might come in handy for 1920x1080 complex scene animations, once I get smart on how to do that.

Slackware rocks!
 
Old 10-14-2019, 09:20 AM   #2090
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 107

Rep: Reputation: Disabled
qemu 4.0.0 has some problems with capstone on "current"

Code:
/tmp/SBo/qemu-4.0.0/include/disas/capstone.h:6:10: fatal error: capstone.h: No such file or directory
    6 | #include <capstone.h>
      |          ^~~~~~~~~~~~
Neither:
capstone-3.0.5-x86_64-1ponce
or
capstone-4.0_alpha5-x86_64-1_SBo

Is working for me.

The version number of the buildscript is "5.0: verion update to 3.1.0 release, note minimum dependency version on release notes"
I haven't synced the repo in a while because customized slackbuilds are saved in it and, of course, get deleted with a rm followed by a fresh cloning of the repo, as it is, IIRC, advised.

AndsureIcouldjustbackthemupbutain'tnobodygottimeforthatttttt

I will sync it up if it's fixed, though.

P.S.:
I just noted that the 14.2 version is ahead of my git snapshot, so I'll try that one now.
P.P.:
Nope, seems to be a capstone regression... hmmm

Last edited by Geist; 10-14-2019 at 09:32 AM.
 
Old 10-14-2019, 09:38 AM   #2091
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,007

Original Poster
Rep: Reputation: Disabled
first I suggest you to sync your repository as qemu is at 4.1.0 now since some time...

BTW this seems a problem not related to current because it happened also on stable: it was reported on the slackbuilds-users mailing list in february with qemu-3.1.0

https://lists.slackbuilds.org/piperm...ry/022745.html

there I answered that I had found a patch on the qemu-devel mailing list that seemed to fix the issue

https://lists.slackbuilds.org/piperm...ry/022748.html

https://lists.gnu.org/archive/html/q.../msg04159.html

either you apply this patch or you remove capstone before building qemu.
 
3 members found this post helpful.
Old 10-14-2019, 09:41 AM   #2092
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 107

Rep: Reputation: Disabled
Alright, I will do that, and thanks for the further info.

Edit:
It worked, thanks again.

Last edited by Geist; 10-14-2019 at 10:00 AM.
 
Old 10-15-2019, 04:40 AM   #2093
Mike755
LQ Newbie
 
Registered: Oct 2019
Distribution: slackware64 --current
Posts: 3

Rep: Reputation: Disabled
Hi all,
I hope this is the right spot for my Post.
I successfully managed to get Blender 2.80 compiled and working on slack current using slackbuilds scripts.
I had some issues with Opencollada(SBo) namely with the
Code:
In file included from /tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/src/COLLADABUURI.cpp:18:
/usr/include/pcre.h:325:33: error: conflicting declaration ‘typedef struct real_pcre8_or_16 pcre’
  325 | typedef struct real_pcre8_or_16 pcre;
      |                                 ^~~~
In file included from /tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/src/COLLADABUURI.cpp:14:
/tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h:17:26: note: previous declaration as ‘typedef struct real_pcre pcre’
   17 | typedef struct real_pcre pcre;
      |                          ^~~~
make[2]: *** [COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/build.make:76: COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/src/COLLADABUURI.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:529: COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
thing,
That was fixed after googling around with this patch.
Code:
--- OpenCOLLADA-1.6.68/COLLADABaseUtils/include/OLD.h	2019-10-14 09:22:07.965861316 +0200
+++ OpenCOLLADA-1.6.68/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h	2019-10-14 10:23:57.606706169 +0200
@@ -11,10 +11,11 @@
 #ifndef __COLLADABU_PCRECOMPILEDPATTERN_H__
 #define __COLLADABU_PCRECOMPILEDPATTERN_H__
 
+#include "pcre.h"
 #include "COLLADABUPrerequisites.h"
 
-struct real_pcre;
-typedef struct real_pcre pcre;
+struct real_pcre32;
+typedef struct real_pcre32 pcre32;
 
 
 namespace COLLADABU
Seems to be working fine without any issues so far.
Slackware own ffmpeg does not see opencv(Sbo).

So ffmpeg was compiled without opencv.


Blender runs fine, but the Subdivision Surface add on failed to work.
After googling around, it seems i needed, opensubdiv.
I'm not an advanced user, and learning a whole lot of stuff as i go along.
I managed to compile opensubdiv package on current, by editing a script from another package.
Now the Subdivision Surface addon works fine.
I,m not sure why opensubdiv is not on Slackbuilds.org or sbopkg, is it a license issue ?
This is how the slackbuild script looks like, it compiles, but as i said before,i do not have that level of experience yet.
So maybe a more experienced user can give some pointers on the Script and Patch.
Code:
#!/bin/sh

# Slackware build script for Opensubdiv

# Copyright 2006  name <name@email.com>
# Copyright 2017       <name@email.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=OpenSubdiv
VERSION=${VERSION:-3.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

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

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
#cd $PRGNAM-$VERSION
cd $PRGNAM
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

mkdir -p build
cd build
  cmake ../ \
  -DCMAKE_BUILD_TYPE=[Release] \
  -DCMAKE_LIBDIR_BASE=/usr/lib${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DCMAKE_C_COMPILER=clang \
  -DNO_CLEW=1 
make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
#cp -a AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README TODO \
#  $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

And my Last question is,(maybe off topic ) can someone point me in the direction of. when do you recompile your Sbo packages ? meaning Slack updated something, how do you know when to recompile, that kinda stuff.
thanks in advanced.
Sorry my english is rusty.
Mike
 
1 members found this post helpful.
Old 10-15-2019, 08:15 AM   #2094
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 590

Rep: Reputation: 229Reputation: 229Reputation: 229
libfreehand:

Code:
FHCollector.cpp:285:68: warning: implicitly-declared ‘constexpr libfreehand::FHTransform& libfreehand::FHTransform::operator=(const libfreehand::FHTransform&)’ is deprecated [-Wdeprecated-copy]
  285 |   m_transforms[recordId] = FHTransform(m11, m21, m12, m22, m13, m23);
      |                                                                    ^
In file included from FHCollector.h:18,
                 from FHCollector.cpp:14:
FHTransform.h:22:3: note: because ‘libfreehand::FHTransform’ has user-provided ‘libfreehand::FHTransform::FHTransform(const libfreehand::FHTransform&)’
   22 |   FHTransform(const FHTransform &trafo);
      |   ^~~~~~~~~~~
FHCollector.cpp: In member function ‘void libfreehand::FHCollector::_outputDisplayText(const libfreehand::FHDisplayText*, librevenge::RVNGDrawingInterface*)’:
FHCollector.cpp:1910:17: warning: unnecessary parentheses in declaration of ‘padding’ [-Wparentheses]
 1910 |     char const *(padding[])= {"fo:padding-left","fo:padding-right","fo:padding-top","fo:padding-bottom"};
      |                 ^
  CXX      FHInternalStream.lo
  CXX      FHParser.lo
  CXX      FHPath.lo
  CXX      FHTransform.lo
  CXX      libfreehand_utils.lo
libfreehand_utils.cpp: In function ‘void libfreehand::_appendUTF16(librevenge::RVNGString&, std::vector<short unsigned int>&)’:
libfreehand_utils.cpp:166:5: error: expected ‘;’ before ‘unsigned’
  166 |     unsigned char outbuf[U8_MAX_LENGTH+1];
      |     ^~~~~~~~
make[4]: *** [Makefile:567: libfreehand_utils.lo] Error 1
make[4]: Leaving directory '/tmp/SBo/libfreehand-0.1.2/src/lib'
make[3]: *** [Makefile:450: all] Error 2
make[3]: Leaving directory '/tmp/SBo/libfreehand-0.1.2/src/lib'
make[2]: *** [Makefile:393: all-recursive] Error 1
make[2]: Leaving directory '/tmp/SBo/libfreehand-0.1.2/src'
make[1]: *** [Makefile:499: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/libfreehand-0.1.2'
make: *** [Makefile:410: all] Error 2
libfreehand needed for LibreOffice.
 
Old 10-15-2019, 08:52 AM   #2095
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,007

Original Poster
Rep: Reputation: Disabled
this is another victim of the update to icu4c-65.1: I silently wrote patches for most of the SlackBuilds with some version on webkit on SBo for this, but it looks like there are quite some more that needs to be amended.

for libfreehand a patch is available upstream

http://cgit.ponce.cc/slackbuilds/commit/?h=libfreehand
 
2 members found this post helpful.
Old 10-15-2019, 10:54 AM   #2096
Mike755
LQ Newbie
 
Registered: Oct 2019
Distribution: slackware64 --current
Posts: 3

Rep: Reputation: Disabled
Blender-2.80 OpenSubdiv

Hi all,
New on Slackware, and new on this forum.
Using Slackware64 current
I hope this is the right spot for my Post.
I successfully managed to get Blender 2.80 compiled and working on slack current using slackbuilds scripts.

I had some issues with Opencollada(SBo) namely with the -typedef struct real_pcre pcre; ERROR thing,

Code:
In file included from /tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/src/COLLADABUURI.cpp:18:
/usr/include/pcre.h:325:33: error: conflicting declaration ‘typedef struct real_pcre8_or_16 pcre’
  325 | typedef struct real_pcre8_or_16 pcre;
      |                                 ^~~~
In file included from /tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/src/COLLADABUURI.cpp:14:
/tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h:17:26: note: previous declaration as ‘typedef struct real_pcre pcre’
   17 | typedef struct real_pcre pcre;
      |                          ^~~~
make[2]: *** [COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/build.make:76: COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/src/COLLADABUURI.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:529: COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
With this Patch, Collada compiled,
Code:
--- OpenCOLLADA-1.6.68/COLLADABaseUtils/include/OLD.h	2019-10-14 09:22:07.965861316 +0200
+++ OpenCOLLADA-1.6.68/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h	2019-10-14 10:23:57.606706169 +0200
@@ -11,10 +11,11 @@
 #ifndef __COLLADABU_PCRECOMPILEDPATTERN_H__
 #define __COLLADABU_PCRECOMPILEDPATTERN_H__
 
+#include "pcre.h"
 #include "COLLADABUPrerequisites.h"
 
-struct real_pcre;
-typedef struct real_pcre pcre;
+struct real_pcre32;
+typedef struct real_pcre32 pcre32;
 
 
 namespace COLLADABU
And Ran into an issue with slackware ffmpeg version, not seeing opencv(Sbo).
Did not fix that however.
So ffmpeg was compiled without opencv.

Blender runs fine, but the Subdivision Surface addon failed to work.
After googling around,opensubdiv is needed for the Addon to work, no idea why.
I'm not an advanced user, and learning a whole lot of stuff as i go along.
I managed to compile opensubdiv package on current, by editing a script from another package.
Now the Subdivision Surface add works fine.
I,m not sure why opensubdiv is not on Slackbuilds.org or sbopkg, is it a license issue ?
This is how the slackbuild script looks like, it does work, but as i said i do not have that level of experience yet.
So maybe a more experienced user can give some pointers on the script
Code:
#!/bin/sh

# Slackware build script for Opensubdiv

# Copyright 2006  name <name@email.com>
# Copyright 2017       <name@email.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=OpenSubdiv
VERSION=${VERSION:-3.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

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

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
#cd $PRGNAM-$VERSION
cd $PRGNAM
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

mkdir -p build
cd build
  cmake ../ \
  -DCMAKE_BUILD_TYPE=[Release] \
  -DCMAKE_LIBDIR_BASE=/usr/lib${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DCMAKE_C_COMPILER=clang \
  -DNO_CLEW=1 
make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
#cp -a AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README TODO \
#  $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
And my Last question is,(maybe off topic ) can someone point me in the direction of the following.
When do you recompile your Sbo packages ?, Meaning , say that Slack updated something, how do you track the changes etc, when to compile your third Party packages, utils to use ?, etc ,that kinda stuff.
thanks in advanced.
Mike.
 
Old 10-15-2019, 11:03 AM   #2097
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,007

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mike755 View Post
Hi all,
New on Slackware, and new on this forum.
Hi Mike775, welcome on LQ!
Quote:
Using Slackware64 current
I hope this is the right spot for my Post.
I'm sorry but reading below actually it's not...
please read the first post to understand the scope of this topic.
Quote:
I successfully managed to get Blender 2.80 compiled and working on slack current using slackbuilds scripts.

I had some issues with Opencollada(SBo) namely with the -typedef struct real_pcre pcre; ERROR thing,

Code:
In file included from /tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/src/COLLADABUURI.cpp:18:
/usr/include/pcre.h:325:33: error: conflicting declaration ‘typedef struct real_pcre8_or_16 pcre’
  325 | typedef struct real_pcre8_or_16 pcre;
      |                                 ^~~~
In file included from /tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/src/COLLADABUURI.cpp:14:
/tmp/SBo/OpenCOLLADA-1.6.68/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h:17:26: note: previous declaration as ‘typedef struct real_pcre pcre’
   17 | typedef struct real_pcre pcre;
      |                          ^~~~
make[2]: *** [COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/build.make:76: COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/src/COLLADABUURI.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:529: COLLADABaseUtils/CMakeFiles/OpenCOLLADABaseUtils_shared.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
With this Patch, Collada compiled,
Code:
--- OpenCOLLADA-1.6.68/COLLADABaseUtils/include/OLD.h	2019-10-14 09:22:07.965861316 +0200
+++ OpenCOLLADA-1.6.68/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h	2019-10-14 10:23:57.606706169 +0200
@@ -11,10 +11,11 @@
 #ifndef __COLLADABU_PCRECOMPILEDPATTERN_H__
 #define __COLLADABU_PCRECOMPILEDPATTERN_H__
 
+#include "pcre.h"
 #include "COLLADABUPrerequisites.h"
 
-struct real_pcre;
-typedef struct real_pcre pcre;
+struct real_pcre32;
+typedef struct real_pcre32 pcre32;
 
 
 namespace COLLADABU
I think you are not using the repository linked in the first post because this is fixed there since 15 months.
Quote:
And Ran into an issue with slackware ffmpeg version, not seeing opencv(Sbo).
Did not fix that however.
So ffmpeg was compiled without opencv.

Blender runs fine, but the Subdivision Surface addon failed to work.
After googling around,opensubdiv is needed for the Addon to work, no idea why.
I'm not an advanced user, and learning a whole lot of stuff as i go along.
I managed to compile opensubdiv package on current, by editing a script from another package.
Now the Subdivision Surface add works fine.
I,m not sure why opensubdiv is not on Slackbuilds.org or sbopkg, is it a license issue ?
This is how the slackbuild script looks like, it does work, but as i said i do not have that level of experience yet.
So maybe a more experienced user can give some pointers on the script
Code:
#!/bin/sh

# Slackware build script for Opensubdiv

# Copyright 2006  name <name@email.com>
# Copyright 2017       <name@email.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=OpenSubdiv
VERSION=${VERSION:-3.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

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

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
#cd $PRGNAM-$VERSION
cd $PRGNAM
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

mkdir -p build
cd build
  cmake ../ \
  -DCMAKE_BUILD_TYPE=[Release] \
  -DCMAKE_LIBDIR_BASE=/usr/lib${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DCMAKE_C_COMPILER=clang \
  -DNO_CLEW=1 
make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
#cp -a AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README TODO \
#  $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
And my Last question is,(maybe off topic ) can someone point me in the direction of the following.
When do you recompile your Sbo packages ?, Meaning , say that Slack updated something, how do you track the changes etc, when to compile your third Party packages, utils to use ?, etc ,that kinda stuff.
thanks in advanced.
Mike.
please open a new topic for discussing these matters.

Last edited by ponce; 10-15-2019 at 11:05 AM.
 
1 members found this post helpful.
Old 10-15-2019, 12:30 PM   #2098
Mike755
LQ Newbie
 
Registered: Oct 2019
Distribution: slackware64 --current
Posts: 3

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by ponce View Post
Hi Mike775, welcome on LQ!

I'm sorry but reading below actually it's not...
please read the first post to understand the scope of this topic.
I'm Sorry, got it.

Quote:
Originally Posted by ponce View Post
I think you are not using the repository linked in the first post because this is fixed there since 15 months.
Installed sbopkg, installed without issues,

Code:
Pre-installing package opencollada-1.6.68-x86_64-1ponce...
Removing package: opencollada-1.6.68-x86_64-1_SBo-upgraded-2019-10-15,19:21:15
Verifying package opencollada-1.6.68-x86_64-1ponce.tgz.
Installing package opencollada-1.6.68-x86_64-1ponce.tgz:
Quote:
Originally Posted by ponce View Post
please open a new topic for discussing these matters.
Thanks,Ponce
 
Old 10-16-2019, 04:24 AM   #2099
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 562

Rep: Reputation: 155Reputation: 155
compiling inkscape-0.92.4

Quote:
Originally Posted by ponce View Post
you can update it to 1.0b1, note the additional dependencies
...
Inkscape-0.92.4_A6N0YOn.tar.bz2 can be build on a clean install of current (as of last Sunday). I did this within a VM and also on my normal box after removing all SBo packages.

Initially, on my box (when all SBo-packages were still installed), the inkscape-queue did not get beyond compiling BeautifulSoup4, but it went smoothly on the clean VM install/untainted normal install.

After installing this set of packages (and some others), BeautifulSoup no longer builds, but fails with an assertion error when compiling the python3 part of the package:
Quote:
Traceback (most recent call last):
File "/var/tmp/sbo/sbopkg.unOhZ5/beautifulsoup4-4.6.1/py3k/bs4/testing.py", line 654, in test_real_xhtml_document
soup.encode("utf-8"), markup)
AssertionError: b'<?x[108 chars]xmlns:="http://www.w3.org/1999/xhtml">\n<head>[56 chars]tml>' != b'<?x[108 chars]xmlns="http://www.w3.org/1999/xhtml">\n<head><[55 chars]tml>'

----------------------------------------------------------------------
Ran 412 tests in 0.214s
The culprit seems lxml-4.4.1; removing this from the set of installed packages allows BeautifulSoup4 to compile again (and reinstalling lxml breaks this).

hth


PS the previous error I reported in compiling inkscape still occurred on my normal box, which prompted me to remove all the other stuff
 
1 members found this post helpful.
Old 10-16-2019, 09:37 AM   #2100
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,007

Original Poster
Rep: Reputation: Disabled
here inkscape-0.92.4 still won't build because of the newer glib2/glibmm in current
Code:
  CXX      extension/timer.o                                                                
extension/timer.cpp: In constructor ‘Inkscape::Extension::ExpirationTimer::ExpirationTimer(Inkscape::Extension::Extension*)’:
extension/timer.cpp:49:16: error: ‘struct Glib::TimeVal’ has no member named ‘assign_current_time’                                                                                       
   49 |     expiration.assign_current_time();      
      |                ^~~~~~~~~~~~~~~~~~~                                                  
extension/timer.cpp:50:16: error: no match for ‘operator+=’ (operand types are ‘Glib::TimeVal’ and ‘long int’)                                                                           
   50 |     expiration += timeout;                              
      |     ~~~~~~~~~~~^~~~~~~~~~                                                           
extension/timer.cpp: In member function ‘void Inkscape::Extension::ExpirationTimer::touch()’:                                                                                            
extension/timer.cpp:109:13: error: ‘struct Glib::TimeVal’ has no member named ‘assign_current_time’                                                                                      
  109 |     current.assign_current_time();                     
      |             ^~~~~~~~~~~~~~~~~~~                                                     
extension/timer.cpp:111:40: error: ‘struct Glib::TimeVal’ has no member named ‘as_double’
  111 |     long time_left = (long)(expiration.as_double() - current.as_double());
      |                                        ^~~~~~~~~                                    
extension/timer.cpp:111:62: error: ‘struct Glib::TimeVal’ has no member named ‘as_double’
  111 |     long time_left = (long)(expiration.as_double() - current.as_double());                                                                                                                                                                                                                                                                                                
      |                                                              ^~~~~~~~~                                                                                                           
extension/timer.cpp:115:26: error: no match for ‘operator+’ (operand types are ‘Glib::TimeVal’ and ‘long int’)                                                                           
  115 |     expiration = current + timeout + time_left;                                                                                                                                                                                                                                                                                                                           
      |                  ~~~~~~~ ^ ~~~~~~~                                                  
      |                  |         |                                                        
      |                  |         long int                                                 
      |                  Glib::TimeVal                                                      
In file included from /usr/include/glibmm-2.4/glibmm/timeval.h:23,
                 from /usr/include/glibmm-2.4/glibmm/main.h:22,
                 from extension/timer.cpp:13:              
/usr/include/glibmm-2.4/glibmm/ustring.h:1835:1: note: candidate: ‘Glib::ustring Glib::operator+(const Glib::ustring&, const Glib::ustring&)’                                            
 1835 | operator+(const ustring& lhs, const ustring& rhs)         
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1835:26: note:   no known conversion for argument 1 from ‘Glib::TimeVal’ to ‘const Glib::ustring&’                                              
 1835 | operator+(const ustring& lhs, const ustring& rhs)
      |           ~~~~~~~~~~~~~~~^~~                                                        
/usr/include/glibmm-2.4/glibmm/ustring.h:1844:1: note: candidate: ‘Glib::ustring Glib::operator+(const Glib::ustring&, const char*)’                                                                                                                                                                                                                                              
 1844 | operator+(const ustring& lhs, const char* rhs)                          
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1844:26: note:   no known conversion for argument 1 from ‘Glib::TimeVal’ to ‘const Glib::ustring&’                                              
 1844 | operator+(const ustring& lhs, const char* rhs)  
      |           ~~~~~~~~~~~~~~~^~~                                                        
/usr/include/glibmm-2.4/glibmm/ustring.h:1853:1: note: candidate: ‘Glib::ustring Glib::operator+(const char*, const Glib::ustring&)’                                                     
 1853 | operator+(const char* lhs, const ustring& rhs)         
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1853:23: note:   no known conversion for argument 1 from ‘Glib::TimeVal’ to ‘const char*’                                                       
 1853 | operator+(const char* lhs, const ustring& rhs)       
      |           ~~~~~~~~~~~~^~~                                                           
/usr/include/glibmm-2.4/glibmm/ustring.h:1862:1: note: candidate: ‘Glib::ustring Glib::operator+(const Glib::ustring&, gunichar)’                                                        
 1862 | operator+(const ustring& lhs, gunichar rhs)                                                                                                                                      
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1862:26: note:   no known conversion for argument 1 from ‘Glib::TimeVal’ to ‘const Glib::ustring&’                                              
 1862 | operator+(const ustring& lhs, gunichar rhs)                                                                                                                                      
      |           ~~~~~~~~~~~~~~~^~~                                                        
/usr/include/glibmm-2.4/glibmm/ustring.h:1871:1: note: candidate: ‘Glib::ustring Glib::operator+(gunichar, const Glib::ustring&)’                                                        
 1871 | operator+(gunichar lhs, const ustring& rhs)                                                                                                                                      
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1871:20: note:   no known conversion for argument 1 from ‘Glib::TimeVal’ to ‘gunichar’ {aka ‘unsigned int’}                                     
 1871 | operator+(gunichar lhs, const ustring& rhs)                                                                                                                                      
      |           ~~~~~~~~~^~~                                                              
/usr/include/glibmm-2.4/glibmm/ustring.h:1880:1: note: candidate: ‘Glib::ustring Glib::operator+(const Glib::ustring&, char)’                                                            
 1880 | operator+(const ustring& lhs, char rhs)                                                                                                                                          
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1880:26: note:   no known conversion for argument 1 from ‘Glib::TimeVal’ to ‘const Glib::ustring&’                                              
 1880 | operator+(const ustring& lhs, char rhs)                                                                                                                                          
      |           ~~~~~~~~~~~~~~~^~~                                                        
/usr/include/glibmm-2.4/glibmm/ustring.h:1889:1: note: candidate: ‘Glib::ustring Glib::operator+(char, const Glib::ustring&)’                                                            
 1889 | operator+(char lhs, const ustring& rhs)                                                                                                                                          
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1889:16: note:   no known conversion for argument 1 from ‘Glib::TimeVal’ to ‘char’                                                              
 1889 | operator+(char lhs, const ustring& rhs)          
      |           ~~~~~^~~                                                                  
extension/timer.cpp: In member function ‘bool Inkscape::Extension::ExpirationTimer::expired() const’:                                                                                    
extension/timer.cpp:129:13: error: ‘struct Glib::TimeVal’ has no member named ‘assign_current_time’                                                                                      
  129 |     current.assign_current_time();                        
      |             ^~~~~~~~~~~~~~~~~~~                                                     
extension/timer.cpp:130:23: error: no match for ‘operator<’ (operand types are ‘const Glib::TimeVal’ and ‘Glib::TimeVal’)                                                                
  130 |     return expiration < current;  
      |            ~~~~~~~~~~ ^ ~~~~~~~                                                     
      |            |            |                                                                                                                                                        
      |            |            Glib::TimeVal                                               
      |            const Glib::TimeVal                                                      
In file included from /usr/include/glibmm-2.4/glibmm/timeval.h:23,                                                                                                                       
                 from /usr/include/glibmm-2.4/glibmm/main.h:22,
                 from extension/timer.cpp:13:                                               
/usr/include/glibmm-2.4/glibmm/ustring.h:1128:1: note: candidate: ‘bool Glib::operator<(const const_iterator&, const const_iterator&)’                                                   
 1128 | operator<(const Glib::ustring::const_iterator& lhs, const Glib::ustring::const_iterator& rhs)                                                                                    
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1128:48: note:   no known conversion for argument 1 from ‘const Glib::TimeVal’ to ‘const const_iterator&’ {aka ‘const Glib::ustring_Iterator<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >&’}                                                                                                           
 1128 | operator<(const Glib::ustring::const_iterator& lhs, const Glib::ustring::const_iterator& rhs)                                                                                    
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~                                  
/usr/include/glibmm-2.4/glibmm/ustring.h:1730:1: note: candidate: ‘bool Glib::operator<(const Glib::ustring&, const Glib::ustring&)’                                                     
 1730 | operator<(const ustring& lhs, const ustring& rhs)         
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1730:26: note:   no known conversion for argument 1 from ‘const Glib::TimeVal’ to ‘const Glib::ustring&’                                        
 1730 | operator<(const ustring& lhs, const ustring& rhs)
      |           ~~~~~~~~~~~~~~~^~~                                                                                                                                                                                                                                                                                                                                              
/usr/include/glibmm-2.4/glibmm/ustring.h:1737:1: note: candidate: ‘bool Glib::operator<(const Glib::ustring&, const char*)’                             
 1737 | operator<(const ustring& lhs, const char* rhs)                 
      | ^~~~~~~~                                                                                                                                                                                                                                                                                                                                                                  
/usr/include/glibmm-2.4/glibmm/ustring.h:1737:26: note:   no known conversion for argument 1 from ‘const Glib::TimeVal’ to ‘const Glib::ustring&’                                        
 1737 | operator<(const ustring& lhs, const char* rhs)               
      |           ~~~~~~~~~~~~~~~^~~                                                        
/usr/include/glibmm-2.4/glibmm/ustring.h:1744:1: note: candidate: ‘bool Glib::operator<(const char*, const Glib::ustring&)’                                                              
 1744 | operator<(const char* lhs, const ustring& rhs)          
      | ^~~~~~~~                                                                            
/usr/include/glibmm-2.4/glibmm/ustring.h:1744:23: note:   no known conversion for argument 1 from ‘const Glib::TimeVal’ to ‘const char*’                                                 
 1744 | operator<(const char* lhs, const ustring& rhs)         
      |           ~~~~~~~~~~~~^~~                                                           
make[3]: *** [Makefile:9105: extension/timer.o] Error 1           
make[3]: Leaving directory '/tmp/SBo/inkscape-0.92.4/src'    
make[2]: *** [Makefile:5976: all] Error 2 
make[2]: Leaving directory '/tmp/SBo/inkscape-0.92.4/src'
make[1]: *** [Makefile:1472: all-recursive] Error 1                                                                                                                                                                                                                                                                                                                               
make[1]: Leaving directory '/tmp/SBo/inkscape-0.92.4'                               
make: *** [Makefile:1128: all] Error 2
any patch to let that version build is welcome.

Last edited by ponce; 10-16-2019 at 09:40 AM.
 
  


Reply

Tags
current, sbo, sbopkg, slackrepo


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 building gst1-plugins-good 1.4.1 from SBO l0rddarkf0rce Slackware 4 10-06-2014 05:58 PM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 01:10 AM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 01:52 PM
Pls help me take my 1st step! verysoon Fedora - Installation 2 12-12-2005 07:49 AM

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

All times are GMT -5. The time now is 03:45 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