LinuxQuestions.org
Visit Jeremy's Blog.
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 01-02-2024, 02:14 AM   #1
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Rep: Reputation: 7
Question Slackware 15.0 64 - Is it possible to install and run DarlingHQ ?


Hello,
i am interested in running this Mac Software Emulation on Slackware. Do you think it would be possible. Unfortunately i do not find dependencies listed here neither on slackbuilds.org, nor on slackpkg. Any idea where i could get those dependencies from?
thanks!
 
Old 01-02-2024, 02:53 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Looking at the dependency lists given for other distros, I think most of those things are on a Slackware full install already. And of course Slackware doesn't need all those separate -dev packages; they're included with the libraries.

The best way to find out if there is anything else you need is to carry out the build. The configuration script (or cmake or meson if it uses one of those rather than a script) will check that dependencies are met, and should stop with a warning if it finds anything missing.
 
1 members found this post helpful.
Old 01-04-2024, 08:49 AM   #3
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by hazel View Post
Looking at the dependency lists given for other distros, I think most of those things are on a Slackware full install already. And of course Slackware doesn't need all those separate -dev packages; they're included with the libraries.

The best way to find out if there is anything else you need is to carry out the build. The configuration script (or cmake or meson if it uses one of those rather than a script) will check that dependencies are met, and should stop with a warning if it finds anything missing.
i tried following commands from their installation page

Code:
# Make a build directory
mkdir build && cd build

# Configure the build
cmake ..

# Build and install Darling
make
sudo make install
when executing make i get the below error

Code:
darling/build# make
[  0%] Building C object src/bsdln/CMakeFiles/bsdln.dir/ln.c.o
/home/user/darling/src/bsdln/ln.c:44:10: fatal error: 'bsd/string.h' file not found
#include <bsd/string.h>
         ^~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/bsdln/CMakeFiles/bsdln.dir/build.make:76: src/bsdln/CMakeFiles/bsdln.dir/ln.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:13953: src/bsdln/CMakeFiles/bsdln.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
all commands prior make went without any errors
 
Old 01-04-2024, 08:55 AM   #4
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 676
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
do you have libbsd from SBo installed?
 
1 members found this post helpful.
Old 01-04-2024, 08:57 AM   #5
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 486

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
Hi, I think you need to install libbsd.
 
1 members found this post helpful.
Old 01-04-2024, 09:38 AM   #6
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
thanks

now i ran into following issue when builiding
Code:
[  0%] Linking CXX executable darlingserver
[  0%] Built target darlingserver
[  0%] Building C object src/startup/CMakeFiles/darling.dir/darling.c.o
[  0%] Linking C executable darling
[  0%] Built target darling
[  0%] Building C object src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/__/__/external/darlingserver/src/rpc.c.o
In file included from <built-in>:1:
In file included from /home/user/darling/src/startup/mldr/resources/dserver-rpc-defs.h:1:
In file included from /usr/include/sys/socket.h:22:
In file included from /usr/include/features.h:497:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include <gnu/stubs-32.h>
          ^~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/build.make:76: src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/__/__/external/darlingserver/src/rpc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:14457: src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
why am i getting error for 32b library when i have a 64b installation
 
Old 01-04-2024, 09:52 AM   #7
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 676
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
@glupa4e this "package" is a very complicate situation... maybe you can try the binary package first how it runs in Slackware?
https://aur.archlinux.org/cgit/aur.g...?h=darling-bin
 
Old 01-04-2024, 09:59 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Emulators tend to need 32-bit stuff to run 32-bit programs even when the underlying system is 64-bit. I just checked your original link, and those builds for various 64-bit distros include several 32-bit libraries.
 
Old 01-04-2024, 10:02 AM   #9
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
please, i need further help

@rizitis, i am sorry but i do not know how to proceed, perhaps you could write some commands for dummies?
i assume i'll have to check that repo out and then , what do i have to do, do i need a special git command ?
now i am trying to install whatever i can understand from depends on section
 
Old 01-04-2024, 10:07 AM   #10
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by glupa4e View Post
now i ran into following issue when builiding
Code:
[  0%] Linking CXX executable darlingserver
[  0%] Built target darlingserver
[  0%] Building C object src/startup/CMakeFiles/darling.dir/darling.c.o
[  0%] Linking C executable darling
[  0%] Built target darling
[  0%] Building C object src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/__/__/external/darlingserver/src/rpc.c.o
In file included from <built-in>:1:
In file included from /home/user/darling/src/startup/mldr/resources/dserver-rpc-defs.h:1:
In file included from /usr/include/sys/socket.h:22:
In file included from /usr/include/features.h:497:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include <gnu/stubs-32.h>
          ^~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/build.make:76: src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/__/__/external/darlingserver/src/rpc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:14457: src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
why am i getting error for 32b library when i have a 64b installation
To build Darling on x86_64 you will need to have multilib packages installed. Alternatively, you can install darling-bin based on Debian

https://aur.archlinux.org/cgit/aur.g...?h=darling-bin
 
Old 01-04-2024, 11:06 AM   #11
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 405

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by glupa4e View Post
now i ran into following issue when builiding
Code:
[  0%] Linking CXX executable darlingserver
[  0%] Built target darlingserver
[  0%] Building C object src/startup/CMakeFiles/darling.dir/darling.c.o
[  0%] Linking C executable darling
[  0%] Built target darling
[  0%] Building C object src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/__/__/external/darlingserver/src/rpc.c.o
In file included from <built-in>:1:
In file included from /home/user/darling/src/startup/mldr/resources/dserver-rpc-defs.h:1:
In file included from /usr/include/sys/socket.h:22:
In file included from /usr/include/features.h:497:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include <gnu/stubs-32.h>
          ^~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/build.make:76: src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/__/__/external/darlingserver/src/rpc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:14457: src/startup/mldr/CMakeFiles/mldr32_dserver_rpc.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
why am i getting error for 32b library when i have a 64b installation
Maybe only the core multilib from Alien Bob is necessary and not the full multilib install.

/var/log/packages/glibc-2.33_multilib-x86_64-2alien:usr/include/gnu/stubs-32.h
 
Old 01-04-2024, 11:55 AM   #12
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 676
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
DTARGET_i386=OFF
Dont need 32libs
 
2 members found this post helpful.
Old 01-05-2024, 12:09 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by rizitis View Post
DTARGET_i386=OFF
Dont need 32libs
Well, there's the solution. Make an emulator that only runs 64-bit programs and you won't need 32-bit libraries. Brilliant!
 
2 members found this post helpful.
Old 01-05-2024, 12:12 PM   #14
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by rizitis View Post
DTARGET_i386=OFF
Dont need 32libs
i started making the above while during configuring i disabled 32b libraries. now i am getting following error

Code:
[  0%] Linking C shared library re.bundle
In file included from /home/user/darling/src/external/metal/deps/indium/src/indium/buffer.cpp:2:
In file included from /home/user/darling/src/external/metal/deps/indium/private-include/indium/device.private.hpp:9:
/home/user/darling/src/external/metal/deps/indium/private-include/indium/types.private.hpp:60:52: error: use of undeclared identifier 'VK_FORMAT_A4B4G4R4_UNORM_PACK16'
                        case PixelFormat::ABGR4Unorm:            return VK_FORMAT_A4B4G4R4_UNORM_PACK16;
                                                                        ^
/home/user/darling/src/external/metal/deps/indium/private-include/indium/types.private.hpp:153:52: error: use of undeclared identifier 'VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK'; did you mean 'VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT'?
                        case PixelFormat::ASTC_4x4_HDR:          return VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK;
                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                        VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT
/usr/include/vulkan/vulkan_core.h:1298:5: note: 'VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT' declared here
    VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT = 1000066000,
    ^
In file included from /home/user/darling/src/external/metal/deps/indium/src/indium/buffer.cpp:2:
--------------------------------
[  0%] Building C object src/external/python/2.7/Python-2.7.16/CMakeFiles/py27__sqlite.dir/Modules/_sqlite/util.c.o
[  0%] Built target py27_cStringIO
[  0%] Built target py27_strop
[  0%] Linking C shared library _sqlite.so
[  0%] Built target py27__sqlite
the above appears many times one after another in the console and after that something related to sqlite - i do not get it why there is something taken from python-2.7. instead of py3 which is listed as a dependency.
well how to be able to figure out all deps that i am still missing?

Last edited by glupa4e; 01-05-2024 at 12:36 PM.
 
Old 01-05-2024, 04:00 PM   #15
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 676
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Errors you have , has to do with Vulkan...
building this package is very complicate...

Quote:
Originally Posted by glupa4e View Post
@rizitis, i am sorry but i do not know how to proceed, perhaps you could write some commands for dummies?
i assume i'll have to check that repo out and then , what do i have to do, do i need a special git command ?
now i am trying to install whatever i can understand from depends on section
These are the runtime deps according to aur:
Code:
    cairo: libcairo2
    dbus: libdbus-1-3
    ffmpeg: ffmpeg
    freetype2: libfreetype6
    fuse2: libfuse2
    giflib: libgif7
    glibc: libc6
    glu: libglu1-mesa
    libgl: libgl1-mesa-glx
    libglvnd: libglvnd0
    libjpeg-turbo: libjpeg-turbo8
    libpng: libpng16-16
    libpulse: libpulse0
    libtiff: libtiff5
    libx11: libx11-6
    libxcursor: libxcursor1
    libxext: libxext6
    libxkbfile: libxkbfile1
    libxrandr: libxrandr2
Since Slackware thank God and Pat, dont split libs to lib-> (lib-1 lib-dev lib-wtf) you only have to install the original name of every lib from SBo (if its not already in your installation).
Then try to extract the deb binary package and see if it working or what errors you have.
this is a "slackbuild" version of aur-pkgbuild fro Darling-bin
save it and run it...
Code:
#!/bin/bash

# SlackBuild script for Darling (binary)

# create workspace
mkdir -p /tmp/DARLING-BIN
cd /tmp/DARLING-BIN || exit
rm -r * || true


PRGNAM=darling
VERSION=0.1.20230310
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1}

TAG=${TAG:-_YOURTAG}

# building and output will be all here in the same folder
TMP="$(pwd)"
echo "$TMP"
echo "is your workspace..."
PKG=$TMP/package-$PRGNAM
OUTPUT="$TMP"

# repo link
SRCURL=https://github.com/darlinghq/darling
# repo package version
DEBURL=$SRCURL/releases/download/v${VERSION}_update_sources_11_5/darling_${VERSION}.jammy_amd64.deb
# binary code in deb packages are in data.tar.zst
DATA_ARCHIVE=${ARCHIVE}_data.tar.zst

# Download source
wget -c $DEBURL
set -e
# Extract deb, data.tar.zst create '$PKG' and move precompiled files in
ar x darling_0.1.20230310.jammy_amd64.deb
zstd -d data.tar.zst
mkdir -p $PKG
tar xf data.tar -C $PKG/

# remove not needed files from deb extract as deb itself too.
rm *deb data.tar.zst control.tar.zst debian-binary
# Create a slackware package
cd $PKG || exit
PKGNAME=$PRGNAM-$VERSION-$ARCH-$BUILD$TAG
makepkg -l n -c n $OUTPUT/$PKGNAME.txz

cd "$TMP" 
echo "check these files:"
ls
echo ""
echo "If you look now at $PKGNAME.txz and the extracted data.tar in $PKG," 
echo "you will see that they are exactly the same as package-darling folder"
echo "Happy 'hacking'!"
It builds fine, in theory, but I dont know if it working... if you know how to run Darling you will find

Last edited by rizitis; 01-05-2024 at 04:08 PM.
 
2 members found this post helpful.
  


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
Is it possible to install software, then burn it on CD, and then run it from the CD? Bronzu Linux - Software 8 02-06-2019 04:00 PM
Possible to run Slackware on a tablet? jamesblue Slackware 34 07-20-2013 07:16 PM
Is it possible to install full slackware from slackware 13 dvd in 4 or 4.5 GB? cola Slackware 7 04-10-2010 10:59 AM
Is it possible to convert 'run' files to slackware packages? j0rd4n Slackware 6 01-15-2007 06:50 PM

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

All times are GMT -5. The time now is 10:58 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
Open Source Consulting | Domain Registration