Skip to content

Instantly share code, notes, and snippets.

@ssov
Created October 25, 2013 01:20
Show Gist options
  • Save ssov/7148047 to your computer and use it in GitHub Desktop.
Save ssov/7148047 to your computer and use it in GitHub Desktop.

OSX10.9 かつ *MacBookAir(Mid2013)*でコンパイルを通す方法です.

homebrewがインストールされている前提です.


手順

  1. Xcodeをアップデートする
  2. (必要に応じて) $ brew tap homebrew/versions
  3. $ brew install gcc48 または brew reinstall gcc48
    • reinstallが上手く行かない場合は, エラーメッセージに書かれているブツをreinstall
  4. $ brew install gcc48
  5. $ brew install fltk
  6. とりあえず終わり
  7. github.com/coins11/のicgリポジトリを引っ張ってくる
  8. (必要に応じて)libpngとlibjpegが引っ張ってこれなかったのでsrc/OMakefileを書き換える
$(PROGRAM): $(OBJECTS)
   $(CPP) -fpermissive -o $@ $(shell fltk-config --use-images --ldflags --use-gl) -L/usr/local/Cellar/libpng/1.5.14/lib -L/usr/local/Cellar/jpeg/8d/lib $+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment