OpenCV4Android Windows build instruction has mistake (Bug #3463)


Added by Yue Fei about 11 years ago. Updated over 10 years ago.


Status:Done Start date:2013-12-28
Priority:Normal Due date:
Assignee:Yue Fei % Done:

0%

Category:build/install
Target version:2.4.10
Affected version:2.4.9 (latest release) Operating System:Windows
Difficulty:Easy HW Platform:x64
Pull request:

Description

Page:
http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk

OpenCV build -> Windows (native) section, the example command is 'cmake -DCMAKE_TOOLCHAIN_FILE=..\android\android.toolchain.cmake ..\..'

However if there is Visual Studio installed, this command will tell cmake to generate Visual Studio sln file instead of Makefile.
And during configuration time it will show errors on almost all Test HAVE_C???? tests. E.g. 'Performing Test HAVE_CXX_FSIGNED_CHAR - Failed'

To solve this problem, I found can simply add '-G "Unix Makefiles"' flag to cmake.

So it becomes:
cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\android\android.toolchain.cmake ..\..

And it will successfully generate Makefile, and then make is successful.


Associated revisions

Revision 46858c43
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #3463 from Dikay900:fix_sample_video_writer

History

Updated by Alexander Smorkalov about 11 years ago

  • Target version changed from 2.4.8 to 2.4.9

Updated by Daniil Osokin about 11 years ago

Hi, Yue! Please, post here updated instruction for building OpenCV for Android on Windows, it will really help!

  • Affected version changed from 2.4.7 (latest release) to 2.4.8 (latest release)

Updated by Andrew Senin about 11 years ago

Hello Yue,

If you could post a fixing pull request to the opencv repo (http://code.opencv.org/projects/opencv/wiki/How_to_contribute) your help would be greatly appreciated!

Thank you

  • Assignee changed from Roman Donchenko to Yue Fei

Updated by Andrew Senin about 11 years ago

  • Status changed from New to Open

Updated by Alexander Smorkalov almost 11 years ago

  • Target version changed from 2.4.9 to 2.4.10

Updated by Alexander Smorkalov over 10 years ago

  • Status changed from Open to Done
  • Affected version changed from 2.4.8 (latest release) to 2.4.9 (latest release)

Also available in: Atom PDF