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

difficulty building this on mac (also hello!) #6

Open
cartazio opened this issue May 4, 2023 · 1 comment
Open

difficulty building this on mac (also hello!) #6

cartazio opened this issue May 4, 2023 · 1 comment

Comments

@cartazio
Copy link

cartazio commented May 4, 2023

Hello! my brother in law wanted some help simplifying a nasty albeit open source mesh (see here https://www.printables.com/model/250153-ferris-sweep-tenting-case/files ), and I thought i'd see if i could try using graphite on my mac, i'm hitting some configure for building time errors that totally just me not knowing how to tell CMake where to look on my Arm Mac

carterschonwald@CarterHydra ~/D/r/GraphiteThree (main)> ./configure.sh
Using user-supplied CMakeOptions.txt in geogram

============= Checking for CMake ============

cmake version 3.26.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
Found CMake


============= Creating makefiles for Darwin-clang-dynamic-Release ============

-- Using local options file: /Users/carter/Desktop/repo_scratcher/GraphiteThree/geogram/CMakeOptions.txt
-- Configuring build for standalone Geogram (without Vorpaline)
-- Using local options file: /Users/carter/Desktop/repo_scratcher/GraphiteThree/geogram/CMakeOptions.txt
-- Configuring build for standalone Geogram (without Vorpaline)
-- Did not find GLFW3 in the system, using built-in GLFW3.
CMake Error at geogram/src/lib/third_party/CMakeLists.txt:41 (add_subdirectory):
  The source directory

    /Users/carter/Desktop/repo_scratcher/GraphiteThree/geogram/src/lib/third_party/glfw

  does not contain a CMakeLists.txt file.


-- Doxygen >= 1.7.0 not found, cannot generate documentation
-- Doxygen >= 1.7.0 not found, cannot generate documentation
-- Configuring incomplete, errors occurred!

============= Creating makefiles for Darwin-clang-dynamic-Debug ============

-- Using local options file: /Users/carter/Desktop/repo_scratcher/GraphiteThree/geogram/CMakeOptions.txt
-- Configuring build for standalone Geogram (without Vorpaline)
-- Using local options file: /Users/carter/Desktop/repo_scratcher/GraphiteThree/geogram/CMakeOptions.txt
-- Configuring build for standalone Geogram (without Vorpaline)
-- Did not find GLFW3 in the system, using built-in GLFW3.
CMake Error at geogram/src/lib/third_party/CMakeLists.txt:41 (add_subdirectory):
  The source directory

    /Users/carter/Desktop/repo_scratcher/GraphiteThree/geogram/src/lib/third_party/glfw

  does not contain a CMakeLists.txt file.


-- Doxygen >= 1.7.0 not found, cannot generate documentation
-- Doxygen >= 1.7.0 not found, cannot generate documentation
-- Configuring incomplete, errors occurred!

============== Graphite build configured ==================

To build graphite:
  - go to build/Darwin-clang-dynamic-Release or build/Darwin-clang-dynamic-Debug
  - run 'make' or 'cmake --build .'

Note: local configuration can be specified in CMakeOptions.txt
(see CMakeOptions.txt.sample for an example)
You'll need to re-run configure.sh if you create or modify CMakeOptions.txt

carterschonwald@CarterHydra ~/D/r/GraphiteThree (main)> brew link glfw
Warning: Already linked: /opt/homebrew/Cellar/glfw/3.3.8
To relink, run:
  brew unlink glfw && brew link glfw
carterschonwald@CarterHydra ~/D/r/GraphiteThree (main)> ls /opt/homebrew/Cellar/glfw/3.3.8/
INSTALL_RECEIPT.json  LICENSE.md            README.md             include/              lib/

I do have glfw3 installed in whatever quirky dumb way mac homebrew does its thing, but my cmake literacy is pretty lacking

@BrunoLevy
Copy link
Owner

BrunoLevy commented Sep 21, 2023

Hello, it is because you need to specify recurse-submodules when you checkout:

git clone --recurse-submodules https://github.com/BrunoLevy/GraphiteThree.git

See instructions here

Note: not sure it can work on an ARM-based Mac. update: now works on an ARM-based Mac

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

2 participants