View Single Post
Old 04-29-2020, 04:25 AM   #2800
JonasHAnd
Human being with feelings
 
Join Date: Apr 2015
Posts: 102
Default

Quote:
Originally Posted by nofish View Post
Personally I can only do SWS builds for Windows currently, so can't help with a Mac version.
But you could build the Mac version from source yourself:
https://github.com/reaper-oss/sws/wi...-SWS-Extension
Cool, thanks for the link

I'm not sure I'm capable of building it myself though as I'm not a programmer. But I'm tempted to try to follow the instructions in your link anyway.

Here's what I've tried so far;



My first attempt was with this older version of git that seemed to be pre installed.

Quote:
git --version
git version 1.9.5 (Apple Git-50.3)



Then I did this as per the instructions in the link
Quote:
git clone --recursive https://github.com/reaper-oss/sws

Which created a SWS directory. And then:

Quote:
cd sws

Then did step two from my portable Reaper install, saved the file to the vendor directory in SWS repository as per instructions

Quote:
Then # Step 2: Generate reaper_plugin_functions.h
# - Run the REAPER action "[developer] Write C++ API functions header".
# - Save the file inside of the vendor directory.
I didn't have cmake installed as the terminal didnt recognize the command "cmake"

So I tried installing via homebrew but got this:


Quote:
brew install cmake
Warning: You are using macOS 10.9.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.

==> Installing dependencies for cmake: gdbm, openssl@1.1, readline, sqlite, xz, python and sphinx-doc
==> Installing cmake dependency: gdbm
Error: An exception occurred within a child process:
NoMethodError: undefined method `source' for nil:NilClass

So installing via homebrew didn't work.

So then I installed cmake gui version from cmake.org

Then I tried installing the cmake command line tools with


Quote:
$ sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install
Password:
Linked: '/usr/local/bin/cmake' -> '/Applications/CMake.app/Contents/bin/cmake'
Linked: '/usr/local/bin/ctest' -> '/Applications/CMake.app/Contents/bin/ctest'
Linked: '/usr/local/bin/cpack' -> '/Applications/CMake.app/Contents/bin/cpack'
Linked: '/usr/local/bin/cmake-gui' -> '/Applications/CMake.app/Contents/bin/cmake-gui'
Linked: '/usr/local/bin/ccmake' -> '/Applications/CMake.app/Contents/bin/ccmake'

After that cmake seemed to be installed, so I did step #3 in the intructions

Quote:
$ cmake -B build -DCMAKE_BUILD_TYPE=Debug
-- The C compiler identification is AppleClang 6.0.0.6000057
-- The CXX compiler identification is AppleClang 6.0.0.6000057
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PHP: /usr/bin/php (found version "5.4.45")
-- Found Perl: /usr/bin/perl (found version "5.16.2")
-- Found WDL: /Users/JonasHAnd/downloads/sws/vendor/WDL
-- Found LICE: /Users/JonasHAnd/downloads/sws/vendor/WDL/WDL/lice
-- Found PNG: /Users/JonasHAnd/downloads/sws/vendor/WDL/WDL/libpng
-- Found ZLIB: /Users/JonasHAnd/downloads/sws/vendor/WDL/WDL/zlib
-- Found SWELL: /Users/JonasHAnd/downloads/sws/vendor/WDL/WDL/swell
-- Found JNetLib: /Users/JonasHAnd/downloads/sws/vendor/WDL/WDL/jnetlib
CMake Deprecation Warning at vendor/taglib/CMakeLists.txt:6 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long long
-- Check size of long long - done
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Check size of float
-- Check size of float - done
-- Check size of double
-- Check size of double - done
-- Performing Test HAVE_STD_ATOMIC
-- Performing Test HAVE_STD_ATOMIC - Failed
-- Performing Test HAVE_GCC_ATOMIC
-- Performing Test HAVE_GCC_ATOMIC - Success
-- Performing Test HAVE_BOOST_BYTESWAP
-- Performing Test HAVE_BOOST_BYTESWAP - Failed
-- Performing Test HAVE_GCC_BYTESWAP
-- Performing Test HAVE_GCC_BYTESWAP - Success
-- Performing Test HAVE_VSNPRINTF
-- Performing Test HAVE_VSNPRINTF - Success
-- Performing Test HAVE_ISO_STRDUP
-- Performing Test HAVE_ISO_STRDUP - Failed
-- Found TagLib: /Users/JonasHAnd/downloads/sws/vendor/taglib (found version "1.11.1")
-- Performing Test HAVE_WFORMAT_OVERFLOW
-- Performing Test HAVE_WFORMAT_OVERFLOW - Failed
-- Performing Test HAVE_WDEPRECATED_REGISTER
-- Performing Test HAVE_WDEPRECATED_REGISTER - Success
-- Found Git: /usr/bin/git (found version "1.9.5 (Apple Git-50.3)")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/JonasHAnd/downloads/sws/build
So there was some failure messages but a build was created.

I then tried doing step #4 while in the SWS folder


Quote:
$ cmake --build build
Scanning dependencies of target z
[ 1%] Building C object CMakeFiles/z.dir/vendor/WDL/WDL/zlib/adler32.c.o
clang: error: unknown argument: '-fstack-protector-strong'
make[2]: *** [CMakeFiles/z.dir/vendor/WDL/WDL/zlib/adler32.c.o] Error 1
make[1]: *** [CMakeFiles/z.dir/all] Error 2
make: *** [all] Error 2

That didn't work so I thought maybe I should update git to the latest version and start over again..

So I went to https://git-scm.com/download/mac

and got the latest version for mavericks which was v2.23.0

after installing the pkg I still get

Quote:
git --version
git version 1.9.5 (Apple Git-50.3)

So now I'm a bit stuck... What am I doing wrong here? Is my git version to old or am I doing something else wrong?

And sorry for the long post!
JonasHAnd is offline   Reply With Quote