LinkUGen icon indicating copy to clipboard operation
LinkUGen copied to clipboard

Compiling Problems

Open user4-33 opened this issue 11 months ago • 6 comments

For some reason, I got the following error message when trying to compile this UGen:

/Users/username/Desktop/Ableton Link/link/include/ableton/platforms/asio/AsioWrapper.hpp:78:10: fatal error: 'asio.hpp' file not found
#include <asio.hpp>
         ^~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/Link.dir/Link.cpp.o] Error 1
make[1]: *** [CMakeFiles/Link.dir/all] Error 2
make: *** [all] Error 2

I created a directory on my desktop and git-cloned LinkUGen, SuperCollider and Ableton Link. After that I ran the following code and got the error mentioned above:

export SC3_SRC="/Users/username/Desktop/Ableton Link/supercollider"
export LINK_SRC="/Users/username/Desktop/Ableton Link/link"
cmake .
make

Any help would be highly appreciated!

macOS 14.3.1, Apple Silicon

user4-33 avatar Mar 08 '24 15:03 user4-33

Perhaps this repo's readme should be updated.

I believe you can achieve what this repro provides natively in SuperCollider now, though not quite in the same way.

See the "LinkClock" docs in SuperCollider. Does that help?

What are you trying to achieve, more broadly, does LinkClock do the trick?

Regarding your compile issue, can you compile the Ableton Link examples?

colinsullivan avatar Mar 11 '24 19:03 colinsullivan

LinkClock in SuperCollider runs on sclang. but This LinkUGen runs on server(scsynth). I will check the compile problem soon!

byulparan avatar Mar 12 '24 03:03 byulparan

Perhaps this repo's readme should be updated.

I believe you can achieve what this repro provides natively in SuperCollider now, though not quite in the same way.

See the "LinkClock" docs in SuperCollider. Does that help?

What are you trying to achieve, more broadly, does LinkClock do the trick?

I was trying to send MIDI from Ableton to SuperCollider, but now achieved this through the macOS-internal IAC-Driver...

Regarding your compile issue, can you compile the Ableton Link examples?

You mean the code in LinkClock's helpfile? If so, yes – they are all running fine.

Nevertheless, I would still be interested in trying out LinkUGen...

user4-33 avatar Mar 13 '24 15:03 user4-33

You mean the code in LinkClock's helpfile? If so, yes – they are all running fine.

ah, no I meant the examples here, in the Ableton Link project:

https://github.com/Ableton/link?tab=readme-ov-file#building-and-running-link-examples

colinsullivan avatar Mar 13 '24 16:03 colinsullivan

I try build with recently ableton link and It's work without problem. It tested on macOS 14.3.1, Apple Silicon too.

Have you also updated the submodule of Ableton Link?

byulparan avatar Mar 13 '24 18:03 byulparan

In the cloned link folder i executed

git submodule update --init --recursive

as well as

mkdir build
cd build
cmake ..
cmake --build .

which was all success. I then retried the steps I mentioned in my first post but I still got the same error:

/Users/username/Desktop/Ableton Link/link/include/ableton/platforms/asio/AsioWrapper.hpp:78:10: fatal error: 'asio.hpp' file not found
#include <asio.hpp>
         ^~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/Link.dir/Link.cpp.o] Error 1
make[1]: *** [CMakeFiles/Link.dir/all] Error 2
make: *** [all] Error 2

user4-33 avatar Mar 13 '24 19:03 user4-33