Linux †※前提条件:本情報はDlib18.18+Ubentu15.04を基づいて説明してる Dlibのインストール †cd dlib mkdir build cd build cmake .. cmake --build . --config Release make install #root権限が必要です。 トラブルシューティング †コンパイルエラー †dlib++ の dlib-18.8/dlibのソースをコンパイルしようとすると、以下のエラーが発生しました。 CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in /Applications/CMake 2.8-11.app/Contents/bin CMake Error: Error executing cmake::LoadCache(). Aborting. http://stackoverflow.com/questions/18615451/cmake-missing-modules-directory 以下のコマンドを実行したら、動作できるようになった mkdir build cd build cmake .. ※cmakeはフォルダの直下でコンパイルができないことが多い。 パフォーマンスが劣化 †dlibのサンプルのパフォーマンスが悪くないが、自作プログラムのパフォーマンスが劣化している場合、下記のようにReleaseモードでコンパイルすれば治る cmake .. cmake --build . --config Release MAC †※前提条件:本情報はDlib18.18+MAC10.10.5を基づいて説明してる 上記Linuxのコンパイル方法で、以下のコンパイルエラーが発生しました。 error: "Also make sure you have libx11-dev installed on your system" 解決するにはXQuartzをインストールする必要がある。 https://www.xquartz.org フレッツ光が月額556円~【GMOとくとくBB】 コメント: |