BrunoLevy / GraphiteThree

Experimental 3D modeler
GNU General Public License v2.0
213 stars 18 forks source link

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

Open cartazio opened 1 year ago

cartazio commented 1 year ago

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 commented 9 months ago

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.