jump to navigation

วารสารส่งเสริมเทคโนโลยี ฉบับที่ 223 May 31, 2012

Posted by viboon in : Manufacturing technologies , add a comment

แนะนำ…การใช้ของเหลวช่วยในกระบวนการตัดด้วยเลเซอร์ (ตอนจบ), วารสารส่งเสริมเทคโนโลยี ฉบับที่ 223 ประจำเดือน มิถุนายน-กรกฎาคม 2555


Tags: , , ,

Related posts:

Configuring Dev-Cpp for compiling C programs using the OpenCV May 8, 2012

Posted by viboon in : C , add a comment

Before configuring the Dev-Cpp, we need:
- Dev-Cpp
- MinGW
- CMake
- OpenCV

1. Download and extract or install Dev-Cpp, MinGW, CMake and OpenCV; also add C:\Dev-Cpp\bin\;C:\MinGW\bin\ into the system path.

2. Use CMake to build OpenCV binaries from the source code.

In CMake, fill in the source code and the binary generated directories.

Where is the source code: C:/OpenCVSource
Where to build the binaries: C:/OpenCV

Click “Configure” and select “MinGW Makefiles” as the generator.

Select “Specify native compilers”.

The C and C++ compilers are specified as follows:

C: C:/MinGW/bin/gcc.exe
C++: C:/MinGW/bin/g++.exe

Click “Finish”.

In the configuration screen type in “RELEASE” (or “DEBUG” if you want to build a debug version) for “CMAKE_BUILD_TYPE”.

Click “Configure” and “Generate”, respectively.

Go to the command prompt and inside the directory “C:\OpenCV” type:

mingw32-make

and

mingw32-make install

3. Configure the Dev-Cpp so it knows where to find OpenCV for your projects.

Go to “Tools -> Compiler Options”

Click “+” sign to add a new compiler named here, OpenCV.

On the section “Add these commands to the linker command line”
-lopencv_core231 -lopencv_highgui231 -lopencv_imgproc231 -lopencv_features2d231 -lopencv_calib3d231

In “Directories” tap, add the following into “Binaries”, “Libraries”, “C Includes” and “C++ Includes”.
*** Binaries ***
C:\mingw\bin
C:\OpenCV\bin
*** Libraries ***
C:\mingw\lib
C:\OpenCV\lib
*** C Includes ***
C:\mingw\include
C:\OpenCV\include
*** C++ Includes ***
C:\mingw\include
C:\OpenCV\include

Ref:
- http://opencv.willowgarage.com/wiki/InstallGuide
- http://opencv.willowgarage.com/wiki/MinGW
- http://opencv.willowgarage.com/wiki/DevCpp


Tags: , , , , ,

Related posts: