d-gamedev-team / dbox

The D2 port of the Box2D game physics library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling demo with OSX

joelcnz opened this issue · comments

Joels-MacBook-Pro:dbox joelcnz$ dub run dbox:demo
Building package dbox:demo in /Users/joelcnz/jpro/dpro2/OtherPeoples/dbox/examples/demo/
Fetching glfw-drey 0.0.4 (getting selected version)...
Placing glfw-drey 0.0.4 to /Users/joelcnz/.dub/packages/...
Fetching glwtf-drey 0.0.2 (getting selected version)...
Placing glwtf-drey 0.0.2 to /Users/joelcnz/.dub/packages/...

Warning for package demo

The following compiler flags have been specified in the package description
file. They are handled by DUB and direct use in packages is discouraged.
Alternatively, you can set the DFLAGS environment variable to pass custom flags
to the compiler, or use one of the suggestions below:

debugInfo: Call DUB with --build=debug
warningsAsErrors: Use "buildRequirements" to control the warning level

Building glfw-drey 0.0.4 configuration "glfw-drey", build type debug.
Running dmd...
Building glad-drey 0.0.3 configuration "glad-drey", build type debug.
Running dmd...
Building dimgui 0.1.7-alpha configuration "library", build type debug.
Running dmd...
Building dbox 0.0.7-alpha configuration "library", build type debug.
Running dmd...
Building glwtf-drey 0.0.2 configuration "glwtf-drey", build type debug.
Running dmd...
Building dbox:demo 0.0.7-alpha configuration "application", build type debug.
Compiling using dmd...
Linking...
ld: library not found for -lglfw3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
FAIL examples/demo/.dub/build/application-debug-posix.osx-x86_64-dmd_2066-CFB4CE32F8F34DE2B3E70F6EDD892DA3/ demo executable
Error executing command run: dmd failed with exit code 1.

Joels-MacBook-Pro:dbox joelcnz$

Update:

Error: homebrew/versions was deprecated. This tap is now empty as all its formulae were migrated.
Joel-Computer:dbox joelchristensen$ brew install glfw3
==> Downloading https://homebrew.bintray.com/bottles/glfw-3.3.mojave.bottle.ta
0.7######### 12.6########################## 36.2########################################################## 81.2######################################################################## 100.0%
==> Pouring glfw-3.3.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/glfw/3.3: 14 files, 497.9KB
Joel-Computer:dbox joelchristensen$ dub run dbox:demo
Building package dbox:demo in /Users/joelchristensen/jpro/dpro2/OtherPeoples/dbox/examples/demo/
Failed to find any versions for package glfw-drey, referenced by dbox:demo 0.0.7-alpha