Slackware 15.0 64 - Is it possible to install and run DarlingHQ ?
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.
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!
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.
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
[ 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
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.
@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
[ 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
[ 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.
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?
Errors you have , has to do with Vulkan...
building this package is very complicate...
Quote:
Originally Posted by glupa4e
@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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.