文章

Install OpenCV to Eclipse for Window (with built OpenCV2.4.9)

圖片
Environment Eclipse - Luna MinGW - 4 Dec 2013 (x86 compiler) OpenCV - 3.0 CMake - 3.4 / Update 31/05/17 / Here  is the built OpenCV 2.4.9 with MinGW. Using Eclipse - MinGW insert of visual studio for programming. The following is remarking on compiling OpenCV from source. Follow the step [ Building the Library ] below YouTube. About 3,4 TortoiseGit needs Git for windows to clone from the internet, so install both. Skip 6. MinGW is x86 compiler, if you want to install other library, choose 32-bits. About 7 Select Eclipse - MinGW insert of VisualStudio. To install OpenNI2 Because environment variable mismatch, insert OPEN_NI_INSTALL_PATH, OPENNI2_INCLUDE_DIR and OPENNI2_LIB_DIR manually. Config CMake (Run as admin, otherwise errors occurs). After Generate, Open Eclipse Project Explorer-> Exsting Projects into Workspace->Finish Then Open make target, build install, all. Error while compiling OpenNI2, so I made these modification, ef

About format of Technical Writing | 關於技術文章的格式

All the technical thing I will try to write in English and Chinese. I am not so good at human language, welcome to leave any message if you don't understand. 我會盡量用中文和英文去寫每篇技術文章。如果有甚麼不明白,歡迎留言。如果發現有些錯誤關鍵詞也歡迎指出。

Install Eclipse CDT

圖片
Environment Eclipse CDT - Luna MinGW -  4 Dec 2013 (x86 compiler) Install and Create C\C++ project      Eclipse CDT with MinGW  1. Install JRE , Eclipse CDT  and MinGW 2. Add c:\MinGW\bin to Path in environment variable 3. Copy mingw32-make . ex eand name as make.exe 4. Run Eclipse Window->Peferences->C/C++ -> New C\C++ Project Wizard -> Makefile Project 5. Choose PE Windows Parser,  Apply,  OK Create C\C++ Project 1. File -> New -> Project -> -> C\C++ -> Choose C Project of C++ Project 2. Empty Project, MinGW GCC After Created a Project 3. Window -> Show View -> Make Target 4. Right Click Project -> New 5. type target name 6. Build and Run ! Reference (Chinese) http://nknush.kh.edu.tw/~johnsirhp/Eclipse+CDT+MinGW.htm http://www.dotblogs.com.tw/shunnien/archive/2013/12/19/135202.aspx http://shaocian.blogspot.hk/2012/11/eclipse-cc-cdt-mingw.html

[Error Log|Solved] strcpy clear source

圖片
eclipse CDE MinGW From Lab sample code. answer_word is clear although it is const char*. Reason:  const  char answer_word [ ] =  {  's', 'e', 'm', 'e', 's', 't', 'e', ' r '  } ; // the secret word without  '\0' at the end of string. Solution  : add '\0' at the end when initializing string const  char answer_word [ ] =  {  's', 'e', 'm', 'e', 's', 't', 'e', ' r ', '\0'  } ; #include " stdio . h" #include < iostream > #include < cstdlib > #include < ctime > #include "string . h" using namespace std ; /* * The word guessing game */ /* * display ( const char [ ], int): Print out the character array in a single line. */ void display_word ( const char word [ ], int size) {  // TODO 1: print the word   for ( i