View Single Post
Old 20 May 2024, 21:46   #247
PiCiJi
Registered User
 
PiCiJi's Avatar
 
Join Date: Sep 2003
Location: germany
Age: 45
Posts: 418
Quote:
Originally Posted by amilo3438
Manix (1990)(Millennium)(M3)[2533] ... At the title screen, when it stops loading, press space key (or any other) and everything stops?! (same in WinUAE)
when pressing space on real hardware, music stops and after a few seconds it continues to load. ... same in emulation

--------------------
mainly interesting for Linux people
I have changed build system from self written makefile to cmake.
Visual Studio Solution is unaffected.

Code:
WINDOWS (7 and higher)
-----------
download and install CMAKE
download and install mingw32 or 64: https://github.com/niXman/mingw-builds-binaries/releases

open a CMD:
set Path=<mingw_path>\bin;%Path%
git clone https://piciji@bitbucket.org/piciji/denise.git denise
cd denise

cmake -G "MinGW Makefiles" -B builds/release
cmake --build builds/release -j=<number of usable CPU cores>
cmake --install builds/release
.\builds\release\out\denise.exe

-----------
MSYS2 to fake a Unix environment
-----------
install MSYS2 and open shell
pacman --noconfirm -Sy
pacman --needed --noconfirm -S bash pacman pacman-mirrors msys2-runtime
[restart shell]
pacman --noconfirm -Su
[64 bit]
pacman -S --noconfirm --needed wget git make mingw-w64-x86_64-toolchain mingw-w64-x86_64-ntldd mingw-w64-x86_64-zlib mingw-w64-x86_64-pkg-config mingw-w64-x86_64-libxml2 mingw-w64-x86_64-freetype mingw-w64-x86_64-python3 mingw-w64-x86_64-drmingw mingw-w64-x86_64-harfbuzz mingw-w64-x86_64-cmake
[32 bit]
pacman -S --noconfirm --needed wget git make mingw-w64-i686-toolchain mingw-w64-i686-ntldd mingw-w64-i686-zlib mingw-w64-i686-pkg-config mingw-w64-i686-libxml2 mingw-w64-i686-freetype mingw-w64-i686-python3 mingw-w64-i686-drmingw mingw-w64-i686-harfbuzz mingw-w64-i686-cmake

[open shell MinGW 32 or 64 ]
pacman -S make
pacman -S gcc

git clone https://piciji@bitbucket.org/piciji/denise.git denise
cd denise
cmake -G "MSYS Makefiles" -B builds/release
cmake --build builds/release -j=<number of usable CPU cores>
cmake --install builds/release
./builds/release/out/denise.exe

---------------
Visual Studio
---------------
there is a solution file in folder msvc


OSX
---
install brew first: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install pkg-config
cp /opt/homebrew/bin/pkg-config /usr/local/bin

compile freetype
  download latest source
  ./configure --enable-static --without-zlib --without-bzip2
  make
  sudo make install

git clone https://piciji@bitbucket.org/piciji/denise.git denise
cd denise
cmake -B builds/release [-DCMAKE_OSX_ARCHITECTURES=arm64]  (flag is for cross compiling only)
cmake --build builds/release -j=<number of usable CPU cores>
cmake --install builds/release


LINUX / BSD (tested on NetBSD and OpenBSD, not FreeBSD)
-----
install following dependencies if you haven't already

GTK+ 3: apt-get install libgtk-3-dev
OpenGL: apt-get install mesa-common-dev
OpenAL: apt-get install libopenal-dev
Pulseaudio: apt-get install libpulse-dev
SDL2: apt-get install libsdl2-dev
Udev: apt-get install libudev-dev
---------------------------------------------
ARCH Linux
----------
gcc: pacman -Sy gcc
make: pacman -Sy make
gtk3: pacman -Sy gtk3
pkg-config: pacman -Sy pkgconf
---------------------------------------------
FreeBSD
--------------
pkgin in pkg-config
pkgin in openal-soft
pkgin in SDL2
pkgin in pulseaudio
---------------------

git clone https://piciji@bitbucket.org/piciji/denise.git denise
cd denise
cmake -B builds/release [-DCMAKE_INSTALL_PREFIX=~/.local] [-DINSTALL_FILE_ASSOCIATIONS=1]
cmake --build builds/release --target clean [optional]
cmake --build builds/release -j=<number of usable CPU cores> [--verbose]

[sudo] cmake --install builds/release
[sudo] cmake --build builds/release --target uninstall

NOTE: changing install prefix needs a complete App rebuild, otherwise assets will not be found
PiCiJi is offline  
 
Page generated in 0.04268 seconds with 11 queries