LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   CharLs-2.0.0 slack build script help.... (https://www.linuxquestions.org/questions/slackware-14/charls-2-0-0-slack-build-script-help-4175709429/)

reddog83 03-14-2022 07:57 PM

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.

Daedra 03-15-2022 01:01 PM

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/

Daedra 03-15-2022 01:56 PM

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

reddog83 03-15-2022 06:50 PM

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.

reddog83 03-15-2022 09:27 PM

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

Daedra 03-15-2022 09:29 PM

What order should I install them or does it matter?

reddog83 03-15-2022 09:31 PM

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.

Daedra 03-15-2022 09:40 PM

Ok giving it a go right now. I will report back shortly.

reddog83 03-15-2022 09:41 PM

Thank you so much.

Daedra 03-15-2022 09:57 PM

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.

Daedra 03-15-2022 09:58 PM

ok I see it, change

Code:

-DCMAKE_INSTALL_DATADIR:PATH=/usrshare \
to

Code:

-DCMAKE_INSTALL_DATADIR:PATH=/usr/share \

reddog83 03-15-2022 09:58 PM

Yep I ran into that as i was testing I fixed the build script I am waiting to for the recompile to be done.

reddog83 03-15-2022 09:59 PM

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.... :)

Daedra 03-15-2022 10:06 PM

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


reddog83 03-15-2022 10:12 PM

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.


All times are GMT -5. The time now is 05:18 AM.