SBo scripts not building on current (read 1st post, pls)
SlackwareThis 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.
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.
Don't worry, continuity plans for gcc-java have been ready for a while now, thanks to Alien Bob.
(It'll need a tweak for version 5.5 eventually, but there's plenty of time for that)
Don't worry, continuity plans for gcc-java have been ready for a while now, thanks to Alien Bob.
(It'll need a tweak for version 5.5 eventually, but there's plenty of time for that)
have you tried launching FreeCAD from the command line in a terminal and see if there's any output there when you try to open the examples?
Does this happen with all the examples or just with some of them?
Does this happen also on slackware stable?
maybe it's better if you open a dedicated topic on the matter here or on the SBo mailing list as, IMHO, this doesn't look related to the argument of this topic.
FreeImage is not building on current. Output is below. This is required for the MEGASync client.
Code:
Source/LibRawLite/./internal/dcraw_common.cpp:5546:14: note: candidate 2: float powf64(float, float)
static float powf64(float a, float b)
^~~~~~
Source/LibRawLite/./internal/dcraw_common.cpp:10186:85: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
imgdata.lens.makernotes.MinAp4CurFocal = powf64(2.0f, (getreal(type) / 2.0f));
^
In file included from /usr/include/c++/7.3.0/cmath:45:0,
from /usr/include/c++/7.3.0/math.h:36,
from Source/LibRawLite/./internal/dcraw_common.cpp:24:
/usr/include/bits/mathcalls.h:140:1: note: candidate 1: _Float64 powf64(_Float64, _Float64)
__MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
Source/LibRawLite/./internal/dcraw_common.cpp:5546:14: note: candidate 2: float powf64(float, float)
static float powf64(float a, float b)
^~~~~~
make[1]: *** [Makefile.gnu:64: Source/LibRawLite/./internal/dcraw_common.o] Error 1
make[1]: Leaving directory '/tmp/SBo/FreeImage'
make: *** [Makefile:21: default] Error 2
Try using clang, iirc it needs clang to build correctly on current, but I haven't tried in a while since it was an erroneous dependency in my case... (Openmw does not require freeimage nor did it ever require it, upstream confirmed so...)
pdftk could not be built due to GCC no longer support Java.
Some of the functionality of it could be done with mutool from mupdf though.
Quote:
Originally Posted by 55020
Don't worry, continuity plans for gcc-java have been ready for a while now, thanks to Alien Bob.
(It'll need a tweak for version 5.5 eventually, but there's plenty of time for that)
The -I's got me past the initial error but the build failed anyway with numerous errors, apparently related to the #includes.
This is the tail of the log:
Code:
pdftk.cc:3780:4: error: 'JvCreateJavaVM' was not declared in this scope
JvCreateJavaVM(NULL);
^~~~~~~~~~~~~~
pdftk.cc:3876:17: error: 'class java::lang::String' has no member named 'indexOf'
if( message->indexOf( JvNewStringUTF( "com.lowagie.text.pdf.PdfDictionary" ) )>= 0 &&
^~~~~~~
pdftk.cc:3877:15: error: 'class java::lang::String' has no member named 'indexOf'
message->indexOf( JvNewStringUTF( "com.lowagie.text.pdf.PRIndirectReference" ) )>= 0 )
^~~~~~~
pdftk.cc:3896:4: error: 'JvDetachCurrentThread' was not declared in this scope
JvDetachCurrentThread();
^~~~~~~~~~~~~~~~~~~~~
pdftk.cc:3896:4: note: suggested alternative: 'JvAttachCurrentThread'
JvDetachCurrentThread();
^~~~~~~~~~~~~~~~~~~~~
JvAttachCurrentThread
make: *** [Makefile.Base:46: pdftk.o] Error 1
pdftk.SlackBuild FAILED at Fri Mar 2 08:01:49 CST 2018 ... RetCode = 2
Looks like I've got some more work to do on pdftk
-- kjh
This is the pdftk.SlackBuild wrapper ( .do-pdftk.SlackBuild.sh )
Code:
#!/bin/sh
DoName="pdftk.SlackBuild"
MyVersion=""
[ "$VERSION" != "" ] && MyVersion="$VERSION"
. ./pdftk.info
[ "$MyVersion" = "" ] && MyVersion="$VERSION"
LogNam="$DoName-$MyVersion.log"
unset PRGNAM
unset VERSION
unset HOMEPAGE
unset DOWNLOAD
unset MD5SUM
unset DOWNLOAD_x86_64
unset MD5SUM_x86_64
unset REQUIRES
unset MAINTAINER
unset EMAIL
#
# set and export any extra variables here
#
source /etc/profile.d/gcc5.sh || ( echo "ERROR: the pdftk.SlackBuild requires gcc5" >&2 ; exit 1 ; )
export VERSION="$MyVersion"
#
# README here
#
# If PDF is electronic paper, then pdftk is an electronic staple-remover,
# hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a
# command-line tool for doing everyday things with PDF documents. Keep one
# in the top drawer of your desktop and use it to merge PDF documents,
# split PDF documents, apply watermarks, repair corrupt PDF, update PDF
# metadata, and more. pdftk does not require Acrobat and is free software.
#
# README there
#
# do the deed
#
echo "$DoName startup at `date`" |tee $LogNam
echo "" |tee -a $LogNam
echo "building pdftk with gcc5:" |tee -a $LogNam
echo "" |tee -a $LogNam
echo "CC = $CC" |tee -a $LogNam
echo "CPP = $CPP" |tee -a $LogNam
echo "CXX = $CXX" |tee -a $LogNam
echo "AR = $AR" |tee -a $LogNam
echo "NM = $NM" |tee -a $LogNam
echo "RANLIB = $RANLIB" |tee -a $LogNam
echo "" |tee -a $LogNam
./$DoName 2>&1 |tee -a $LogNam
RetCode=${PIPESTATUS[0]}
[ "$RetCode" = "0" ] && RetStr="success" || RetStr="FAILED"
#
# log your results
#
echo "" |tee -a $LogNam
echo "$DoName $RetStr at `date` ... RetCode = $RetCode" |tee -a $LogNam
exit $RetCode
Try using clang, iirc it needs clang to build correctly on current, but I haven't tried in a while since it was an erroneous dependency in my case... (Openmw does not require freeimage nor did it ever require it, upstream confirmed so...)
hi orbea
FreeImage did not work with clang either. Also it is not a requirement for OpenMW, but MEGASync.
Code:
^
/usr/include/math.h:399:34: note: expanded from macro '__MATH_PRECNAME'
# define __MATH_PRECNAME(name,r) name##f64##r
^
<scratch space>:236:1: note: expanded from here
powf64
^
Source/LibRawLite/./internal/dcraw_common.cpp:5546:14: note: candidate function
static float powf64(float a, float b)
^
Source/LibRawLite/./internal/dcraw_common.cpp:12033:30: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
is_raw += (i = get4()) && 1;
^ ~
Source/LibRawLite/./internal/dcraw_common.cpp:12033:30: note: use '&' for a bitwise operation
is_raw += (i = get4()) && 1;
^~
&
Source/LibRawLite/./internal/dcraw_common.cpp:12033:30: note: remove constant to silence this warning
is_raw += (i = get4()) && 1;
~^~~~
7 warnings and 12 errors generated.
make[1]: *** [Makefile.gnu:64: Source/LibRawLite/./internal/dcraw_common.o] Error 1
make[1]: Leaving directory '/tmp/SBo/FreeImage'
make: *** [Makefile:21: default] Error 2
FreeImage is not building on current. Output is below. This is required for the MEGASync client.
Code:
Source/LibRawLite/./internal/dcraw_common.cpp:5546:14: note: candidate 2: float powf64(float, float)
static float powf64(float a, float b)
^~~~~~
Source/LibRawLite/./internal/dcraw_common.cpp:10186:85: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
imgdata.lens.makernotes.MinAp4CurFocal = powf64(2.0f, (getreal(type) / 2.0f));
^
In file included from /usr/include/c++/7.3.0/cmath:45:0,
from /usr/include/c++/7.3.0/math.h:36,
from Source/LibRawLite/./internal/dcraw_common.cpp:24:
/usr/include/bits/mathcalls.h:140:1: note: candidate 1: _Float64 powf64(_Float64, _Float64)
__MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
^
Source/LibRawLite/./internal/dcraw_common.cpp:5546:14: note: candidate 2: float powf64(float, float)
static float powf64(float a, float b)
^~~~~~
make[1]: *** [Makefile.gnu:64: Source/LibRawLite/./internal/dcraw_common.o] Error 1
make[1]: Leaving directory '/tmp/SBo/FreeImage'
make: *** [Makefile:21: default] Error 2
try to get in touch with the maintainer, in case he might have a fix...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.