Ableton / link

Ableton Link
Other
1.1k stars 149 forks source link

Errors when running the `cmake --build .` #141

Closed cascassette closed 5 months ago

cascassette commented 5 months ago

I just updated the link repo inside my project, and tried to run the commands again as specified in the readme. cmake .. worked, but cmake --build . gave me the following:

$ cmake --build .
[  2%] Building CXX object CMakeFiles/abl_link.dir/extensions/abl_link/src/abl_link.cpp.o
In file included from /.../.../.../Dependencies/link/extensions/abl_link/src/abl_link.cpp:21:
In file included from /.../.../.../Dependencies/link/include/ableton/Link.hpp:25:
In file included from /.../.../.../Dependencies/link/include/ableton/platforms/Config.hpp:22:
In file included from /.../.../.../Dependencies/link/include/ableton/link/Controller.hpp:24:
In file included from /.../.../.../Dependencies/link/include/ableton/link/Gateway.hpp:22:
In file included from /.../.../.../Dependencies/link/include/ableton/discovery/PeerGateway.hpp:22:
/.../.../.../Dependencies/link/include/ableton/discovery/UdpMessenger.hpp:280:56: error: no member named 'make_network_v4' in namespace 'link_asio_1_28_0::ip'
        const auto subnet = LINK_ASIO_NAMESPACE::ip::make_network_v4(
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/.../.../.../Dependencies/link/include/ableton/discovery/UdpMessenger.hpp:283:38: error: no member named 'make_network_v4' in namespace 'link_asio_1_28_0::ip'
            LINK_ASIO_NAMESPACE::ip::make_network_v4(from.address().to_v4(), 32);
            ~~~~~~~~~~~~~~~~~~~~~~~~~^
2 errors generated.
make[2]: *** [CMakeFiles/abl_link.dir/extensions/abl_link/src/abl_link.cpp.o] Error 1
make[1]: *** [CMakeFiles/abl_link.dir/all] Error 2
make: *** [all] Error 2

Not sure what I can do about this. I'm on Sonoma 14.5, one of the last intel macbook pros. I came to try to update everything because I'm nearing beta phase of my project and as such had to enable hardening in order to be able to ship a notarised package.

gonzaloflirt commented 5 months ago

Link uses a submodule to pull in asio. Is it possible you have updated Link but not asio? You can run git submodule update --init --recursive to update all submodules.

cascassette commented 5 months ago

Hi Gonzalo, that was it in the end indeed. I always get my submodule commands mixed up. Thanks!!