Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on macOS - help needed #14

Closed
gingerbeardman opened this issue Aug 5, 2023 · 1 comment
Closed

Building on macOS - help needed #14

gingerbeardman opened this issue Aug 5, 2023 · 1 comment

Comments

@gingerbeardman
Copy link
Contributor

gingerbeardman commented Aug 5, 2023

I have all the prerequisites (make, curl, libcurl headers)

❯ cmake --version
cmake version 3.27.1

But I am getting some CMAKE errors:

❯ cmake ..
CMake Error at CMakeLists.txt:8 (if):
  if given arguments:

    "STREQUAL" "Debug"

  Unknown arguments specified

I can fix the first one with this hint: EOSIO/eosio.cdt#490 (comment)

...but more errors appear:

❯ cmake ..
CMake Error at CMakeLists.txt:30 (add_subdirectory):
  The source directory

    /Users/matt/Downloads/2023-08-05/dcue-develop/spdlog

  does not contain a CMakeLists.txt file.

And at this point I'm out of my depth.

Any help appreciated.

@gingerbeardman
Copy link
Contributor Author

gingerbeardman commented Aug 5, 2023

Success!

https://github.com/xavery/dcue/blob/9acaa88497f59f6ab844866986dedef9ff2c4de2/CMakeLists.txt#L8

becomes:

if(CMAKE_BUILD_TYPE STREQUAL "Debug")

For the second error, I had not included submodules in my clone.

Once I cloned correctly, everything worked.

❯ cmake ..
-- Build spdlog: 1.10.0
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Build type: Release
-- Found CURL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libcurl.tbd (found suitable version "7.85.0", minimum required is "7.10")  
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/matt/Projects/dcue/build
❯ make
[  5%] Building CXX object spdlog/CMakeFiles/spdlog.dir/src/spdlog.cpp.o
[ 11%] Building CXX object spdlog/CMakeFiles/spdlog.dir/src/stdout_sinks.cpp.o
[ 17%] Building CXX object spdlog/CMakeFiles/spdlog.dir/src/color_sinks.cpp.o
[ 23%] Building CXX object spdlog/CMakeFiles/spdlog.dir/src/file_sinks.cpp.o
[ 29%] Building CXX object spdlog/CMakeFiles/spdlog.dir/src/async.cpp.o
[ 35%] Building CXX object spdlog/CMakeFiles/spdlog.dir/src/cfg.cpp.o
[ 41%] Building CXX object spdlog/CMakeFiles/spdlog.dir/src/fmt.cpp.o
[ 47%] Linking CXX static library libspdlog.a
[ 47%] Built target spdlog
[ 52%] Building CXX object CMakeFiles/dcue_core.dir/cue.cpp.o
[ 58%] Building CXX object CMakeFiles/dcue_core.dir/naming.cpp.o
[ 64%] Building CXX object CMakeFiles/dcue_core.dir/string_utility.cpp.o
[ 70%] Building CXX object CMakeFiles/dcue_core.dir/multitrack_strategy.cpp.o
[ 76%] Building CXX object CMakeFiles/dcue_core.dir/album.cpp.o
[ 76%] Built target dcue_core
[ 82%] Building CXX object CMakeFiles/dcue.dir/discogs.cpp.o
[ 88%] Building CXX object CMakeFiles/dcue.dir/main.cpp.o
[ 94%] Building CXX object CMakeFiles/dcue.dir/http_curl.cpp.o
[100%] Linking CXX executable dcue
[100%] Built target dcue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant