LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-14-2022, 07:57 PM   #1
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 457

Rep: Reputation: 237Reputation: 237Reputation: 237
CharLs-2.0.0 slack build script help....


I would like to submit this file in the SBo but first I need to make a slack.build script can someone help me.



mkdir build
cd build
cmake .. \
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DSYSCONF_INSTALL_DIR:PATH=/etc \
-DINCLUDE_INSTALL_DIR:PATH=/usr/include \
-DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib${LIBDIRSUFFIX} \
-DLIB_INSTALL_DIR:PATH=/usr/lib${LIBDIRSUFFIX} \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DSHARE_INSTALL_PREFIX:PATH=/usr/share \
-DMAN_INSTALL_DIR:PATH=/usr/man \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
-Dcharls_BUILD_SHARED_LIBS:BOOL=ON\
-DCMAKE_VERBOSE_MAKEFILE=ON\
-DBUILD_TESTING=ON \
|| exit $?

make

Here are the commands that need to be in this script
http://www.geocities.ws/reddoglinux/CharLS-2.0.0.tar.gz
and here is the tar file in question.

Last edited by reddog83; 03-14-2022 at 08:13 PM.
 
Old 03-15-2022, 01:01 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
What you would want to do in this situation is use a www.slackbuilds.org template and change it to the specifics of your package. For your project you will need the cmake template

https://www.slackbuilds.org/templates/

then follow the slackbuilds submission guidelines here
https://www.slackbuilds.org/guidelines/
 
Old 03-15-2022, 01:56 PM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
As a courtesy I made a SlackBuild of charls-2.3.4. Take it and do what you want with it, if you plan on submitting it to SBo you will need to make the info file and README to make it compliant to submit to SBo.

https://www.dropbox.com/s/ywfk2wgo6a...ls.tar.gz?dl=1
 
Old 03-15-2022, 06:50 PM   #4
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 457

Original Poster
Rep: Reputation: 237Reputation: 237Reputation: 237
Thank you for pointing me in the right direction I am working on aeskulap -0.2.2beta2 and dcmtk-3.6.6 to submit them for slackbuild I just need the right direction and Daedra you point me there again I thank you.
 
Old 03-15-2022, 09:27 PM   #5
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 457

Original Poster
Rep: Reputation: 237Reputation: 237Reputation: 237
Ok Daedra can you verify that these source code and builds work on you computer??
Dependencies are CharLS-2.3.4, libglademm-2.6.7, & gconfmm-2.28.3
I worked on these 3 packages to build cause my wife is a Medical Assistant and she needed a DICOM Viewer like she has on her Linux Mint System.

http://www.geocities.ws/reddoglinux/aeskulap-0.2.2.txz
http://www.geocities.ws/reddoglinux/...2-x86_64-4.txz
http://www.geocities.ws/reddoglinux/dcmtk-3.6.6.txz
http://www.geocities.ws/reddoglinux/...6-x86_64-4.txz
 
Old 03-15-2022, 09:29 PM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
What order should I install them or does it matter?
 
Old 03-15-2022, 09:31 PM   #7
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 457

Original Poster
Rep: Reputation: 237Reputation: 237Reputation: 237
Um I had to install these first libglademm-2.6.7, & gconfmm-2.28.3
then CharLS, dcmtk and last was asekulap
For some reason i had to reboot my computer though after installation.
I think I'm missing a command in the doinst.sh file so that everything can run with out rebooting.
 
Old 03-15-2022, 09:40 PM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Ok giving it a go right now. I will report back shortly.
 
Old 03-15-2022, 09:41 PM   #9
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 457

Original Poster
Rep: Reputation: 237Reputation: 237Reputation: 237
Thank you so much.
 
Old 03-15-2022, 09:57 PM   #10
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Ok after installing the required dependencies from SBo, and charls from the slackbuild I posted above I moved on to dcmtk. It finished successfully but there is an error in the finished package. The /usr/share/ path is incorrect, it is installing to /usrshare. See the attached output.

Quote:
usr/man/man1/termscu.1
usr/man/man1/wlmscpfs.1
usr/man/man1/xml2dcm.1
usr/man/man1/xml2dsr.1
usrshare/
usrshare/dcmtk/
usrshare/dcmtk/SC.dump
usrshare/dcmtk/VLP.dump
usrshare/dcmtk/acrnema.dic
usrshare/dcmtk/camera.lut
usrshare/dcmtk/dcm2xml.dtd
usrshare/dcmtk/dicom.dic
usrshare/dcmtk/diconde.dic
usrshare/dcmtk/dsr2xml.xsd
usrshare/dcmtk/dumppat.txt
usrshare/dcmtk/monitor.lut
usrshare/dcmtk/philips.lut
usrshare/dcmtk/printer.lut
usrshare/dcmtk/private.dic
usrshare/dcmtk/report.css
usrshare/dcmtk/reportx.css
usrshare/dcmtk/scanner.lut
usrshare/dcmtk/wlistdb/
usrshare/dcmtk/wlistdb/OFFIS/
usrshare/dcmtk/wlistdb/OFFIS/lockfile
usrshare/dcmtk/wlistdb/OFFIS/wklist1.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist10.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist2.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist3.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist4.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist5.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist6.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist7.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist8.dump
usrshare/dcmtk/wlistdb/OFFIS/wklist9.dump
usrshare/dcmtk/wlistdb/README
usrshare/dcmtk/wlistqry/
usrshare/dcmtk/wlistqry/README
usrshare/dcmtk/wlistqry/wlistqry0.dump
usrshare/dcmtk/wlistqry/wlistqry1.dump
usrshare/dcmtk/wlistqry/wlistqry10.dump
usrshare/dcmtk/wlistqry/wlistqry11.dump
usrshare/dcmtk/wlistqry/wlistqry12.dump
usrshare/dcmtk/wlistqry/wlistqry2.dump
usrshare/dcmtk/wlistqry/wlistqry3.dump
usrshare/dcmtk/wlistqry/wlistqry4.dump
usrshare/dcmtk/wlistqry/wlistqry5.dump
usrshare/dcmtk/wlistqry/wlistqry6.dump
usrshare/dcmtk/wlistqry/wlistqry7.dump
usrshare/dcmtk/wlistqry/wlistqry8.dump
usrshare/dcmtk/wlistqry/wlistqry9.dump
WARNING: zero length file usrshare/dcmtk/wlistdb/OFFIS/lockfile

Slackware package /tmp/dcmtk-3.6.6-x86_64-1.txz created.
Should be an easy fix. I will look at the Slackbuild. It is getting late here and I have to work tomorrow so I may not get any more done tonight, but I will test again tomorrow.
 
Old 03-15-2022, 09:58 PM   #11
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
ok I see it, change

Code:
-DCMAKE_INSTALL_DATADIR:PATH=/usrshare \
to

Code:
-DCMAKE_INSTALL_DATADIR:PATH=/usr/share \
 
Old 03-15-2022, 09:58 PM   #12
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 457

Original Poster
Rep: Reputation: 237Reputation: 237Reputation: 237
Yep I ran into that as i was testing I fixed the build script I am waiting to for the recompile to be done.
 
Old 03-15-2022, 09:59 PM   #13
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 457

Original Poster
Rep: Reputation: 237Reputation: 237Reputation: 237
I will repost current links and thank you so much for all your help I'm going to keep these build scripts and continue on in my Journey....
 
Old 03-15-2022, 10:06 PM   #14
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
ok just corrected dcmtk and rebuilt and installed. Then did aeskulup and it built and installed fine. The hard part is done, you got working slackbuilds. Going to go to bed, but what I did see is that the files still need the .info file and the README to be compliant for SBo submission. And aeskulup needs a doinst.sh file with the following...

Code:
if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
 
Old 03-15-2022, 10:12 PM   #15
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 457

Original Poster
Rep: Reputation: 237Reputation: 237Reputation: 237
I checked dcmtk-3.6.6 and it errored out like it could not find /usr//usr/share/dicom.dic so I am recompiling it one last time and omitting -DCMAKE_INSTALL_DATADIR:PATH=/usr/share \ with -DCMAKE_INSTALL_DATADIR:PATH=share \ to see if the file is found correctly.
 
  


Reply



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] Linux 4.4 seems to refuse to build IPv6 for the 64-bit build - 32-bit build works fine GameCodingNinja Linux From Scratch 2 02-07-2016 06:40 PM
SBCL build from slack builds fails to build - failed contribs sb-bsd-sockets sunlight Slackware 3 11-07-2015 04:31 PM
[SOLVED] i can't perfome make install commond while build binutils-build LFS plzzz help me Carl_cj Linux From Scratch 19 09-04-2014 11:52 AM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM
Emacs 22.1 slack build script available? Lufbery Slackware 3 06-08-2007 08:32 AM

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

All times are GMT -5. The time now is 06:38 PM.

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