約 1,510,273 件
https://w.atwiki.jp/bokuyo/pages/178.html
zlib 1.2.6 をVisual C++でビルドする zlib 1.2.6(January 29, 2012) をWindows 環境に導入します。あれやこれやしていた zlib 1.2.6 を導入したときのメモ を踏まえて、今回は手短に手順を示していきたいところです。 Visual C++ 2010 Express を使用しています。32bit(x86) 環境です。適宜、お使いの環境に合わせて読み解いてください Visual Studio 2012 で zlib 1.2.7 をビルドしたときのメモは次になりますzlib 1.2.7 を Visual Studio 2012 RC でビルドする zlib 1.2.7 を Visual Studio 2012 Express でビルドする ダウンロード http //zlib.net/(公式サイト)から「zlib source code, version 1.2.6, zipfile format」をダウンロードします。 ダウンロードした"zlib126.zip" ファイルを解凍します。以降の説明では、面倒なので解凍先をデスクトップ(Desktop)にしています inffas32.obj と match686.obj をビルドする コマンドプロンプトを開き、以下を順に実行。vcvars32.bat で環境変数を読み込んで、bld_ml32.bat でinffas32.obj と match686.obj をビルドしてます "C \Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" cd Desktop/zlib-1.2.6/contrib/masmx86 bld_ml32.bat ビルドする zlib-1.2.6/contrib/vstudio/vc10/zlibvc.sln をVisual C++ 2010 で開きます zlibvc プロジェクトのプロパティを開き、[構成プロパティ]- [全般]ターゲット名を"$(ProjectName)" から "zlibwapi" に変更してください。 そのままビルドしてください。ちなみに、デバッグ・リリースモードそれぞれ /MTd, /MT に設定されています。特に変更する必要はないです。 Debug, Release それぞれビルドを行うと zlib-1.2.6/contrib/vstudio/vc10/x86 ディレクトリに以下のディレクトリができていますMiniUnzipDebug, MiniZipDebug, TestZlibDebug, TestZlibDllDebug, ZlibStatDebug, ZlibDllDebug MiniUnzipRelease, MiniZipRelease, TestZlibDllRelease, TestZlibRelease, ZlibDllRelease, ZlibStatRelease ZlibDll○○ に.dll ファイル, ZlibStat○○ に.lib ファイルがそれぞれ出力されています。 エラーが出てる! testzlib プロジェクトをビルドしたときに、エラーが出た場合 2 zutil.obj error LNK2019 未解決の外部シンボル _gzflags@0 が関数 _zlibCompileFlags@0 で参照されました。 2 x86\TestZlibDebug\testzlib.exe fatal error LNK1120 外部参照 1 が未解決です。 testzlib プロジェクトのプロパティを開き、[構成プロパティ]- [リンカー]- [入力]追加の依存ファイルに"x86\ZlibStatDebug\zlibstat.lib" を追加します(Debug 時) Release 時も同様に"x86\ZlibStatRelease\zlibstat.lib" を追加しておいてください。 これでもう一度ビルドすると成功します。"x86\ZlibStatDebug\zlibstat.lib" または "x86\ZlibStatRelease\zlibstat.lib" が存在しないと上手くいきません zlibstat プロジェクトをビルドしてから行うと上手く行きます 関連リンク http //zlib.net/ - zlib 公式サイト
https://w.atwiki.jp/atwikimyj/pages/103.html
bzip2のインストール # yum install bzip2* (bzip2*でbzip2関連のモジュール全部入れる) zlibのインストール # yum install zlib-devel
https://w.atwiki.jp/bokuyo/pages/187.html
zlib 1.2.7 を Visual Studio 2012 RC でビルドする zlib 1.2.7(May 2, 2012) を Windows 7 環境にて導入します。 Visual Studio 2012 RC を使用しています。32bit(x86) 環境です。適宜、お使いの環境に合わせて読み解いてください VC++ 11 Beta コンパイラを使うので、それまでの VC++ 10 環境(Visual Studio 2010)と混同しないよう注意してください。 Visual Studio 2012 Express (Visual C++ 2012 コンパイラ)を使用する場合は以下のページを参照してくださいzlib 1.2.7 を Visual Studio 2012 Express でビルドする ダウンロード http //zlib.net/(公式サイト)から「zlib source code, version 1.2.7, zipfile format」をダウンロードします。 ダウンロードした"zlib127.zip" ファイルを解凍します。以降の説明では、面倒なので解凍先を C ドライブにしています Visual Studio 2012 用のソリューション・プロジェクトファイルを作る "zlib-1.2.7/contrib/vstudio/vc10/" フォルダをコピーして、新たに作業用の "zlib-1.2.7/contrib/vstudio/vc11/" フォルダを作ります。 "zlib-1.2.7/contrib/vstudio/vc11/zlibvc.sln" をVisual Studio 2012 RC で開きます 次のポップアップが出たら「更新する(U)」を選択してください VC++ コンパイラとライブラリを更新します このソリューションには、以前のバージョンの VC++ コンパイラとライブラリを使用するプロ ジェクトが 1 つ以上含まれています。各プロジェクトを VC++ 11 Beta コンパイラとライ ブラリ (v110) を使用するように更新できます。 これで VC++ 11 Beta コンパイラを使用できます。 Visual Studio 2012 RC でビルドする そのままビルド(F7)してください。 ビルド時のエラー (1) - def ファイルで LNK1118 1 .\zlibvc.def(4) fatal error LNK1118 VERSION ステートメントに構文エラーがあります。 解決策 "zlib-1.2.7/contrib/vstudio/vc11/zlibvc.def" を開くと 4 行目が次のようになっている VERSION1.2.7 VERSION がとる引数は major[.minor] なのでこれを次のように修正 VERSION1.27 //ok MSDN - VERSION (C/C++) ビルド時のエラー (2) - SAFESEH イメージには安全ではありません 2 match686.obj error LNK2026 モジュールは SAFESEH イメージには安全ではありません。 2 inffas32.obj error LNK2026 モジュールは SAFESEH イメージには安全ではありません。 2 adler32.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 2 x86\TestZlibDebug\testzlib.exe fatal error LNK1281 SAFESEH イメージを生成できません。 1 match686.obj error LNK2026 モジュールは SAFESEH イメージには安全ではありません。 1 inffas32.obj error LNK2026 モジュールは SAFESEH イメージには安全ではありません。 1 adler32.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 1 x86\ZlibDllDebug\zlibwapi.dll fatal error LNK1281 SAFESEH イメージを生成できません。 4 minizip.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 3 testzlib.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 5 miniunz.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 解決策 (1) - ビルドイベントでアセンブルされる inffas32.obj と match686.obj を /SAFESEH オプションでアセンブルする "zlib-1.2.7/contrib/masmx86/bld_ml32.bat" を開いて次の箇所を確認 ml /coff /Zi /c /Flmatch686.lst match686.asm ml /coff /Zi /c /Flinffas32.lst inffas32.asm 次のように /safeseh オプションを付け加える ml /coff /Zi /c /safeseh /Flmatch686.lst match686.asm ml /coff /Zi /c /safeseh /Flinffas32.lst inffas32.asm "ビルド" - "ソリューションのクリーン" でソリューション全体を一度クリーンする ビルドを実行する次のような警告は出るけど、とりあえずはおっけー(?) 3 adler32.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 1 adler32.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 4 testzlib.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 6 miniunz.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 5 minizip.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 解決策(2) - /SAFESEH を特に指定しないようにする(/SAFESEH NO にするわけではない) zlib 1.2.7 の Visual Studio 2010 用のソリューションファイル (.sln) を Visual Studio 2012 RC 用に変更すると、リンカーオプションに /SAFESEH が勝手に追加されます(未確認ですが環境によっては追加されない場合もあるそうです)Visual Studio 2010 用のソリューション・プロジェクトファイルを見る限り、/SAFESEH オプションは何も指定されていません リンカ―の詳細設定から /SAFESEH に関する指定を外してあげますソリューションエクスプローラから "zlibvc" プロジェクトを選択 プロジェクト - プロパティ - 構成プロパティ - リンカ― - 詳細設定 - "安全な例外ハンドラーを含むイメージ" 「はい (/SAFESEH)」または「いいえ (/SAFESEH NO)」が指定されている場合、項目を削除して何も指定しないようにします。(backspace キーか delete キーで指定されている文字「はい (/SAFESEH)」または「いいえ (/SAFESEH NO)」を消しちゃってください) zlibvc プロジェクトと同様に、miniunz, minizip, testzlib, testzlibdll プロジェクトの /SAFESEH に関する指定を外します "ビルド" - "ソリューションのクリーン" でソリューション全体を一度クリーンします ビルドします Release(または Debug)でビルドするときに /SAFESEH に関する指定を外すのを忘れないように。 参考文献 MSDN - リンカー オプション (Visual Studio 2012)
https://w.atwiki.jp/bokuyo/pages/188.html
zlib 1.2.7 を Visual Studio 2012 Express でビルドする zlib 1.2.7(May 2, 2012) を Windows 7 環境にて導入します。 Visual Studio 2012 Express for Windows Desktop を使用しています。実行したのは 32bit(x86) 環境です。適宜、お使いの環境に合わせて読み進めてください Visual C++ 2012 コンパイラを使いますVisual C++ 2012 コンパイラより以前の VC++ 10 環境(Visual Studio 2010)および VC++ 11 Beta コンパイラ(Visual Studio 2012 RC) と混同しないよう注意してください。 zlib 1.2.7 を Visual Studio 2012 RC でビルドする - VC++ 11 Beta コンパイラ(Visual Studio 2012 RC) zlib 1.2.6 をVisual C++でビルドする - Visual Studio 2010 (VC++ 10) ダウンロード http //zlib.net/(公式サイト)から「zlib source code, version 1.2.7, zipfile format」をダウンロードします。 ダウンロードした"zlib127.zip" ファイルを解凍します。以降の説明では、面倒なので解凍先を C ドライブにしています Visual Studio 2012 用のソリューション・プロジェクトファイルを作る "zlib-1.2.7/contrib/vstudio/vc10/" フォルダをコピーして、新たに作業用の "zlib-1.2.7/contrib/vstudio/vc11/" フォルダを作ります。 "zlib-1.2.7/contrib/vstudio/vc11/zlibvc.sln" をVisual Studio 2012 Express で開きます 次のポップアップウィンドウが出たら「更新する(U)」を選択してください VC++ コンパイラとライブラリを更新します このソリューションには、以前のバージョンの VC++ コンパイラとライブラリを使用するプロ ジェクトが 1 つ以上含まれています。各プロジェクトを Visual C++ 2012 コン パイラとライブラリを使用するように更新できます。 これで Visual C++ 2012 コンパイラを使用できます。 Visual Studio 2012 Express でビルドする そのままビルド(F7)してください。 ビルド時のエラー (1) - def ファイルで LNK1118 1 .\zlibvc.def(4) fatal error LNK1118 VERSION ステートメントに構文エラーがあります。 解決策 "zlib-1.2.7/contrib/vstudio/vc11/zlibvc.def" を開くと 4 行目が次のようになっている VERSION1.2.7 VERSION がとる引数は major[.minor] なのでこれを次のように修正 VERSION1.27 //ok MSDN - VERSION (C/C++) ビルド時のエラー (2) - SAFESEH イメージには安全ではありません 2 match686.obj error LNK2026 モジュールは SAFESEH イメージには安全ではありません。 2 inffas32.obj error LNK2026 モジュールは SAFESEH イメージには安全ではありません。 2 adler32.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 2 x86\TestZlibDebug\testzlib.exe fatal error LNK1281 SAFESEH イメージを生成できません。 1 match686.obj error LNK2026 モジュールは SAFESEH イメージには安全ではありません。 1 inffas32.obj error LNK2026 モジュールは SAFESEH イメージには安全ではありません。 1 adler32.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 1 x86\ZlibDllDebug\zlibwapi.dll fatal error LNK1281 SAFESEH イメージを生成できません。 3 testzlib.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 4 minizip.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 5 miniunz.obj warning LNK4075 /EDITANDCONTINUE は /SAFESEH の指定によって無視されます。 解決策 - /SAFESEH を特に指定しないようにする(/SAFESEH NO にするわけではない) zlib 1.2.7 の Visual Studio 2010 用のソリューションファイル (.sln) を Visual Studio 2012 Express 用に変更すると、リンカーオプションに /SAFESEH が勝手に追加されますVisual Studio 2010 用のソリューション・プロジェクトファイルを見る限り、/SAFESEH オプションは何も指定されていません リンカ―の詳細設定から /SAFESEH に関する指定を外してあげますソリューションエクスプローラから "zlibvc" プロジェクトを選択 プロジェクト - プロパティ - 構成プロパティ - リンカ― - 詳細設定 - "安全な例外ハンドラーを含むイメージ" 「はい (/SAFESEH)」または「いいえ (/SAFESEH NO)」が指定されている場合、項目を削除して何も指定しないようにします。(backspace キーか delete キーで指定されている文字「はい (/SAFESEH)」または「いいえ (/SAFESEH NO)」を消しちゃってください) zlibvc プロジェクトと同様に、miniunz, minizip, testzlib, testzlibdll プロジェクトの /SAFESEH に関する指定を外します "ビルド" - "ソリューションのクリーン" でソリューション全体を一度クリーンします ビルドします Release(または Debug)でビルドするときに /SAFESEH に関する指定を外すのを忘れないように。 実際に使ってみる スタティックライブラリのリンク: #if ( _MSC_VER = 1700 ) #if defined( _DEBUG ) #pragma comment(lib, "ZlibStatDebug/zlibstat.lib") #else #pragma comment(lib, "ZlibStatRelease/zlibstat.lib") #endif #endif zlib の呼び出し規約を ZLIB_WINAPI に設定して zlib.h をインクルード: #ifndef ZLIB_WINAPI #define ZLIB_WINAPI #endif #include zlib/zlib.h ZLIB_WINAPI を設定するかどうかは zlib を使用するアプリケーションごとに適切な呼び出し規約を指定してください。 今回のビルド方法では、zlib は MTd/MT でビルドされているので、MDd/MD のアプリケーションで使用すると、CRT ライブラリが競合を起こします。大抵の場合は、アプリケーションのほうを MTd/MT に合わせればおっけーです。 参考文献 MSDN - リンカー オプション (Visual Studio 2012)
https://w.atwiki.jp/powerhandle/pages/16.html
非公式ビルド taglib Cygwinでzaurus用にクロスコンパイルしたものです。 taglib は数多くの音楽ファイルのメタファイルを読み込み・編集を行うためのライブラリです。現バージョンでは MP3 の ID3v1 と ID3v2 の両タグ、Ogg Vorbis のコメントと ID3 タグ、そして FLAC、MPC、Speex、WavPack、TrueAudio 中の Vorbis コメントに対応しています。 ダウンロード taglib_1.5-1_arm.ipk (243,186B) taglib-1.5 [zaurus] md5sum 6e6d19d2fb94c16612ded39d493fb93c gcc version 2.95.3 20010315 (release) インストール zlib に依存します。別途 zlib をインストールしてください。「ソフトウェアの追加/削除」でインストールします。
https://w.atwiki.jp/ohden/pages/954.html
apt Ubuntu 16.04LTS apt 1.2.32 (amd64) Ubuntu 18.04LTS on WSL apt 1.6.3ubuntu0.1 (amd64) apt install PKGのinstall。お勧めされた関連pkgはinstallしない。defaultは、『--install-recommend』。 $ sudo apt install --no-install-recommend 【PKG_NAME】 remove PKGのuninstall。設定fileは残ったままにする。 $ sudo apt remove 【PKG_NAME】 purge PKGのuninstall。その際、設定fileも削除する。 $ sudo apt purge 【PKG_NAME】 以下コマンドも同等。 $ sudo apt remove --purge 【PKG_NAME】 find file make中に足りないfileを探したい時。 $ sudo apt install apt-file $ sudo apt-file update zlib.hが足りない時... $ apt-file find zlib.h いっぱい見つかり過ぎる時... $ apt-file find zlib.h | grep "\-dev.*/zlib.h$" とか? で、『zlib1g-dev』が見つかった。 更新日: 2022年05月09日 (月) 15時38分23秒 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/nanocoding/pages/70.html
curl で https な URL を叩こうとしたとき、 curl (1) Protocol https not supported or disabled in libcurl こういうエラーが出るのは、curl が SSL 有効にしてビルドされてないため。 sudo port uninstall curl sudo port clean --all curl とする。(下の行は必要だったのか知らない) 次に、 sudo port edit curl とやって、 configure.args \ --disable-ipv6 \ --without-libidn \ --without-libssh2 \ --without-ssl \ --disable-ldap \ --with-zlib=${prefix} となっているところを configure.args \ --disable-ipv6 \ --without-libidn \ --without-libssh2 \ --with-ssl \ --disable-ldap \ --with-zlib=${prefix} に変える。 この時点で自分の環境には、 /opt/local/bin/openssl /usr/bin/openssl の2つがインストールされていた。 最後に、 sudo port install curl で終了。 http //d.hatena.ne.jp/edvakf/20081116/1226860160
https://w.atwiki.jp/vmlinuz/pages/58.html
nginx 1.0.15のソースからのインストール TOP linux nginx 1.0.15 install src 概要 ソースからコンパイルを行ってインストールする方法 コンテンツ一覧 +コンテンツ一覧 nginx 1.0.15のソースからのインストール概要コンテンツ一覧 実行環境 実施手順ソースの入手、コンパイル~インストール configure オプション 補足 参考サイト 実行環境 CentOS 6.3(minimal) 実施手順 ソースの入手、コンパイル~インストール ############################################################# OSによってパターンが変わります############################################################# 管理者権限で実行su - # case by CentOSsudo su # case by ubuntu ############################################################# 以降の手順は基本的に同じです。############################################################ # ソースダウンロード先comp_dir=/usr/local/src# パッケージ名pack_name=nginx# バージョンversion=-1.0.15# ソースのファイル形式ext=.tar.gz# tar解凍時のオプションext_opt=z# インストール先ディレクトリins_dir=/opt/${pack_name}# ダウンロード元パッケージdl_uri=http //nginx.org/download/nginx-1.0.15.tar.gz cd ${comp_dir}rm -rf ${pack_name}${version}wget ${dl_uri} -O ${pack_name}${version}${ext}tar ${ext_opt}xf ${pack_name}${version}${ext}cd ${pack_name}${version}./configure \--prefix=${ins_dir} \--with-pcre=/usr/local/src/pcre-8.31 \--with-zlib=/usr/local/src/zlib-1.2.7 \ make /bin/mv ${ins_dir} /tmp/${pack_name}_bk`date +%Y%m%d%H%M%S`make install configure オプション --prefix=[module] インストール先のディレクトリ指定 --with-pcre[=DIR] pcreライブラリの指定 必須オプションです。 他のコンパイルオプションしだいでは不要ですが、組み込むことをお勧めします。 他のコンパイルとは違い、ソースのパスを指定するようです。 --with-zlib[=DIR] zlibライブラリの指定 必須オプションです。 他のコンパイルオプションしだいでは不要ですが、組み込むことをお勧めします。 他のコンパイルとは違い、ソースのパスを指定するようです。 補足 ソースからのインストールに関する共通の注意点を参照してください。 本手順のインストールではpcreに依存します。 先にpcreのインストールを実施してください。 本手順のインストールではzlibに依存します。 先にzlibのインストールを実施してください 参考サイト Today - Yesterday - Total -
https://w.atwiki.jp/cineman/pages/6.html
pbrtビルド手順 Instructions for compiling PBRT under Windows using Visual Studio 2005 1.) Download necessary software packages - PBRT http //www.pbrt.org/src/pbrt-src-1.02.zip - OpenEXR http //savannah.nongnu.org/download/openexr/OpenEXR-1.2.2.tar.gz - zlib http //www.zlib.net/zlib123.zip - Cygwin http //www.cygwin.com/setup.exe - FLTK http //www.fltk.org/software.php?VERSION=2.0.x-r4886 FILE=fltk/1.1.7/fltk-1.1.7-source.zip (only required if you want to compile the exrdisplay utility) - Nvidia SDK http //download.nvidia.com/developer/SDK/9.5/NVIDIA_SDK_9.5.0923.0930.exe (only required if you want to compile the exrdisplay utility with fragment shader support) 2.) Install Cygwin - note that you can do a minimal install since the only necessary utilities are flex and bison 3.) Install the Nvidia SDK (as noted above, this is an optional step) 4.) compile FLTK (as noted above, this is also an optional step) - unzip the FLTK package, for the purposes of these instructions we ll assume C \fltk. - Open the C \fltk\vc2005\fltk.sln solution in Visual Studio. - Build both the Debug and Release versions. - Select the top level Solution in the Solution Explorer - Build- Batch Build - Click Select All - Click Build - FLTK should now build cleanly. - After FLTK is built, add FLTK to Visual Studio s list of directories. - Tools- Options- Projects And Solutions- VC++ Directories - Show directories for Library Files - Click the New Line Icon (the folder with the spark on its top right) - Browse to C \fltk\lib, Click Open then OK - Using the black arrows, move this directory to the bottom of the list - Next, choose Show directories for Include Files - As done for the lib directory, make a new directory listing, browse to C \fltk, click Open then OK, and move it to the bottom of the list - note that to do this in a "cleaner" manner, create an include directory in C \fltk, copy the C \fltk\FL directory into include , and then in the above step add C \fltk\include instead of C \fltk, this will keep Visual Studio from inadvertently compiling against some of the other headers that FLTK has in its root directory. 5.) Compile zlib - unzip the zlib package, for the purposes of these instructions we ll assume C \zlib. - Open the C \zlib\projects\visualc6\zlib.dsw and allow Visual Studio to convert it to 2005 format as necessary. - Build both the Debug and Release versions, but not the ASM versions! - Select the top level Solution in the Solution Explorer - Build- Batch Build - Select all those Projects without ASM in the Configuration string - Click Build - After zlib is built, add zlib to Visual Studio s list of directories - To do this in the cleanest manner, create an include and lib subdirectory in the C \zlib root directory. - Copy zconf.h, zlib.h, and zutil.h from C \zlib into C \zlib\include - Copy C \zlib\projects\visualc6\Win32_DLL_Debug\zlib1d.lib, C \zlib\projects\visualc6\Win32_DLL_Release\zlib1.lib, C \zlib\projects\visualc6\Win32_LIB_Debug\zlibd.lib, and C \zlib\projects\visualc6\Win32_DLL_Debug\zlib.lib all into C \zlib\lib - As in the last instruction for FLTK, add C \zlib\include to the list of Include directories, and C \zlib\lib to the list of Lib directories. - Add the the zlib dll s to the system path. - Create a bin directory in C \zlib - Copy C \zlib\projects\visualc6\Win32_DLL_Debug\zlib1.dll and C \zlib\projects\visualc6\Win32_DLL_Release\zlib.dll both into C \zlib\bin - Open System Properties (Win+Break, or right-click My Computer and click Properties) - Click the Advanced tab. - Click the Environment Variables button. - In the User Variables for username , select "Path", and click Edit. - At the end of the entry, add "C \zlib\bin", making sure that this new entry is separated from the current string by a semicolon, e.g. "C \Progra~1\Foo;C \zlib\bin" 6.) Compile OpenEXR - untar the OpenEXR package, for the purposes of these instructions we ll assume C \OpenEXR. - Open the C \OpenEXR\vc\vc7\OpenEXR.sln solution file in Visual Studio, allowing it convert as necessary. - Note that if you want to compile exrdisplay with fragment shader support, this is the point where you will need to tell Visual Studio where the Nvidia SDK headers and libraries are. The include directory (assuming a default install) is C \Program Files\NVIDIA Corporation\SDK 9.5\inc and the library directories are under C \Program Files\NVIDIA Corporation\SDK 9.5\LIBS, of which you ll have to add at least the lib\Release subdirectory. - Again, build both the OpenEXR Debug and Release solutions, using the same instructions as in zlib and FLTK. - You ll probably see some errors like the following LINK fatal error LNK1181 cannot open input file Iex_dll_d.lib don t worry too much about these, they are only if you want to use OpenEXR in dll format, which PBRT doesn t. - Building OpenEXR can take a little while as it compiles and runs tests for each of its sub-libraries. If you see that a test is hung or otherwise taking too long, you can kill it with ctrl+break and rebuild and it will be skipped on the second pass. - As for the previous libraries, you will now need to tell Visual Studio where to look for the OpenEXR headers and libs. The include directories you will need are C \OpenEXR\Half, C \OpenEXR\Iex, C \OpenEXR\IlmImf and C \OpenEXR\Imath. The library directory is C \OpenEXR\vc\vc7\lib. Add them to Visual Studio in the same manner as before. - You ll probably also want to add C \OpenEXR\vc\vc7\bin to your Path so you can easily run the OpenEXR utilities from the command line. To do so follow the same steps as for C \zlib\bin as given above. 7.) Compile PBRT (finally!) - unzip the PBRT package, for the purposes of these instructions we ll assume C \pbrt - Open the C \pbrt\win32\pbrt.sln solution file, allowing Visual Studio to convert as necessary. - Before compiling, there are a few project changes you will need to make. - Select the "core" project, and expand the "Parser Files" directory. - Right-click pbrtlex.l and click Properties - Select Custom Build Step and then General - Change the Command Line to reflect the directory into which you installed Cygwin in Step 1. Furthermore, if you have spaces in either the Cygwin directory name or the pbrt directory you created, you will have to appropriately quote the offending part of the command line. See http //www.pbrt.org/faq.php#faqs_build-win32_win32cygwin for more info. - Do the same as the above for pbrtparse.y. - Next, right-click the core project and select Properties - Go to Configuration Properties- Linker- Input and change the zlib library reference to zlib1.lib. Do the same for both Release and Debug versions of the core project. - Next, go to Linker- General and erase the entire string in Additional Library Directories (again, for both Release and Debug) - Lastly, go to C/C++- General and erase the string in Additional Include Directories for OpenEXR (after you re done it should read only "../../core;../..", and again, do the same for both Release and Debug) - As before, now you should be able to build both the Release and Debug versions of PBRT using Batch Build. - To facilitate running PBRT, you will probably want to add C \pbrt\win32\Projects\Release to your Path environment variable and you ll want to also add the same directory to a new environment variable named PBRT_SEARCHPATH (so that PBRT can find all the plug-ins). Substitute ..\Projects\Debug if you want to run the debug build. Alternatively, you can copy ..\Projects\Debug\pbrt.exe (as pbrtd.exe) and ..\Projects\Release\pbrt.exe both into a new directory, C \pbrt\bin, and add that to your Path and then specify the searchPath directive in your scene files for added flexibility in switching between Debug and Release versions.
https://w.atwiki.jp/vmlinuz/pages/35.html
Linuxに関するあれこれ TOP linux OS CentOS Server サーバ、デーモン系 apache nginx samba mysql mongodb vsftpd 言語、プログラム系 php perl アプリケーション p7zip セキュリティ SSH システムライブラリ系 pcre curl zlib openssl cmake bison libxml2