bfops / playform

Voxel sandbox project in Rust
http://playformdev.blogspot.ca/
MIT License
212 stars 24 forks source link

Unable to start playform on macOS Sierra #189

Open sphinxc0re opened 7 years ago

sphinxc0re commented 7 years ago

When trying to start the game, I get the following console output:

cargo run --release
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /usr/local/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
bfops commented 7 years ago

Hm. This looks related. How recent is your rustc+cargo?

This is the homebrew version of libjpeg I have installed:

$ brew info libjpeg
jpeg: stable 8d (bottled)
Image manipulation library
http://www.ijg.org
/usr/local/Cellar/jpeg/8d (19 files, 713.7K) *
  Poured from bottle on 2015-12-24 at 16:24:43
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/jpeg.rb
==> Options
--universal
    Build a universal binary
sphinxc0re commented 7 years ago

I got the most recent rust installed which is 1.16 nightly. libjpeg has the same version as yours

bfops commented 7 years ago

The thread I linked above mentions DYLD_LIBRARY_PATH. Have you tried setting that? My LIBRARY_PATH, LD_LIBRARY_PATH, and DYLD_LIBRARY_PATH are all set to /usr/local/lib:/usr/lib.