#contents

*Download (ダウンロード) [#v7926dd2]
#ref(VisualStudioでOpenCVを使う/vcProjectAddingOpenCV.zip, ダウロード/Download (Version1.00)) 

*What is this? (これは何?) [#vd63e670]
-プリセットのXMLを突っ込むことでvcprojファイルを自動的に編集するプログラム~
This program adds build settings to vcproj file.
#ref(VisualStudioでOpenCVを使う/vcProjectAddingOpenCV.zip, ダウロード/Download (Version1.00)) 
-Visual Studio 2010ではプロパティシートのテンプレートが作れるらしい~
Visual Studio 2010 can add settings using property sheet
--が,Visual Studio 2003,2005,2008ではその恩恵を受けられない~
Unfortunately, Visual Studio 2003, 2005 and 2008 can not use property sheet.
-vcprojファイルにOpenCV用の設定を毎回毎回追加するのが面倒なので,それ用のプログラムを作った~
I had to manually add settings for OpenCV ''every'' time, so I decided to make a program which adds the settings automatically.
--簡易的にプロパティシートのテンプレートを模したプログラム~
This program provides basic function of property sheet
-ターゲットとするvcprojファイルに,xmlで記述したプロパティを追記する~
Specify the vcproj file and the xml file to add.  The program will add the settings to the vcproj file.
-バージョン1.00に同梱しているファイルは以下のバージョンのOpenCVのプリセット達~
These are the preset files included in Version 1.00
:OpenCV1_0.xml|OpenCV 1.0
:OpenCV1_1.xml|OpenCV 1.1(中身はOpenCV1_0.xmlと同じ)(Identical to OpenCV1_0.xml)
:OpenCV2_0.xml|OpenCV 2.0
:OpenCV2_1.xml|OpenCV 2.1
:OpenCV2_2.xml|OpenCV 2.2
:OpenCV2_3.xml|OpenCV 2.3.1
:OpenCV2_4.xml|OpenCV 2.4.2
-プリセットたちは割りと最低限の機能しかついてません~
The presets have only basic settings
--基本的にopencv_core,opencv_imgproc,opencv_highgui の3種類のライブラリとしかリンクしません~
Basic means opencv_core, opencv_imgproc and opencv_highgui.
--必要に応じてプリセットファイル(*.xml)を書き換えたり追加したりして下さい.~
Rewrite or make a new preset file if needed.
--プリセットファイルはプログラムファイルと同じディレクトリにある必要があります~
The preset files have to be at the same directory as the program.
-書き出す際,プロジェクトファイルは上書きしますが,元のプロジェクトファイルを.bak拡張子付きで保存します.~
The program overwrites the original file, but preserve the original version in another file with '.bak' appended on the end of the filename.
--TinyXMLの仕様で,書きだされたファイルは改行が詰められてしまいます.~
Though no change maded, the saved files format is different from the original file.  This is due to the TinyXML.
--Visual Studio で変更を加えれば,改行が再び整形されます~
When you modify using Visual Studio, the format will be clean again.
-まだbuggyです.It's still buggy.  Use at your own risk.
--俺様実装のXMLなので,VS2010のプロパティシートを流用できません~
It only accepts XML file defined by me.  You can ''NOT'' use the property sheet made by Visual Studio 2010.
-要TinyXML~
If you wish to build from source code, you need to download TinyXML.

*How do I use? (使い方) [#v6672062]
+起動すると,以下の画面が現れます~
If you start the program, you'll see the following window.
#ref(addSettings01.png)
+赤色のテキストボックスにvcprojファイルの位置を絶対パスで指定します.~
もしくは青いボタンでダイアログから指定することもできます.またプログラムにファイルをドラッグアンドドロップすると,フルパスのファイル名が赤いテキストボックスに入ります~
Specify the full path of vcproj file in the red text box.~
You may specify the file using the blue button or you can directly drag&drop the vcproj file to specify the full path of it.
#ref(addSettings02.png)
+緑色のコンボボックスから,どのバージョンの設定を追加したいか選択して下さい.~
各ファイルの説明については[[上記>VisualStudioでOpenCVを使う#vd63e670]]参照~
Choose which version of OpenCV you want to add from the green combo box.~
The detail of each choice is written [[previously>VisualStudioでOpenCVを使う#vd63e670]] in this page.
#ref(addSettings03.png)
+vcprojファイルと追加する設定を両方選択したら,黄色いボタンを押して編集を施して下さい~
処理が終了するとボタンの右側に小さく''Done''と表示されます~
ただし,エラーチェックらしきエラーチェックは何も行なっていないので,例え処理に失敗してもDoneと表示します~
If both vcproj file and the XML file are specified, push the yellow button shown below.~
The vcproj file is now modified and the program shows ''Done''.~
Unfortunately, no error check is done, so even the program fails, it just shows Done.
#ref(addSettings04.png)
*編集履歴 [#g948b1bc]
-2011-10-18 Ver 0.01 とりあえず公開
-2011-11-07 Ver 1.00 バイナリファイルとともに公開
-2011-11-09          説明文を追記.和英両方を書いた
-2012-06-22          プリセットにOpenCV2_4.xml を追加.バイナリファイルは違いなし
-2012-07-05          プリセットファイルOpenCV2_4.xml を2.4.2に対応.includeパスもbuild/install以下に修正.バイナリファイルは変更なし

[[:OpenCV]][[:OpenCV 1.0]][[:OpenCV 1.1]][[:OpenCV 2.0]][[:OpenCV 2.1]][[:OpenCV 2.2]][[:OpenCV 2.3]][[:OpenCV 2.4]]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS