cycfi / elements

Elements C++ GUI library
http://cycfi.github.io/elements/
3.09k stars 238 forks source link

Examples are not built as Asio.hpp is missing #400

Closed sparky4pro closed 4 months ago

sparky4pro commented 4 months ago

I've followed the instructions for a macOS install and installed all dependency with brew. Some examples need asio.hpp to build but it's not found. Installed asio with brew as I thought this is the one missing, but Xcode still doesn't find it.

Any help is appreciated. Thanks.

djowel commented 4 months ago

My main development system is the Mac. I seldom use XCode now though. My main IDE is CLIon. That said, I just tried XCode and everything builds just fine (built from scratch starting with git clone.

image
djowel commented 4 months ago

BTW, did you do git clone --recurse-submodules? ASIO is a sumbmodule. Not having asio.hpp is an indication that the submodule is missing.

sparky4pro commented 4 months ago

Did not, I missed that. Will do and report back. Thanks

djowel commented 4 months ago

Did not, I missed that. Will do and report back. Thanks

I'll close this now. That's the root of the problem you are experiencing. I also pushed a commit that uses FetchContent, making --recurse-submodules no longer necessary. Cheers!