Configure on OSX for iOS does not work anymore from rev 7683 (Bug #1730)


Added by Mats Berggrund almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-03-29
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:build/install
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Checking out rev 7682 and the iOS configure works fine. 7683 does not work.

It fails on line 134:
math(EXPR SIZEOF_VOID_P_BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
in cmake/OpenCVGenConfig.cmake


configDevice.log - --trace added in opencv/ios/configure-device_xcode.sh (1.7 MB) Mats Berggrund, 2012-04-04 05:42 pm


Related issues

duplicated by Bug #1757: OpenCV 2.4 beta cannot build for iOS Cancelled 2012-04-04

Associated revisions

Revision 5a93b275
Added by Andrey Kamaev almost 13 years ago

Fix for #1730

Revision a9a39a3a
Added by Roman Donchenko over 11 years ago

Merge pull request #1730 from ilya-lavrenov:ocl_kern_warn

History

Updated by Andrey Kamaev almost 13 years ago

Thanks for report!

It happens because of incorrectly forced compiler in the iOS cmake toolchain.
I've fixed the toolchain. Could you please verify that it works now?

  • Status changed from Open to Done
  • Target version set to 2.4.0
  • Assignee changed from Alexander Shishkov to Andrey Kamaev

Updated by Mats Berggrund almost 13 years ago

Hmm no I dont think it works. I updated to rev 7836 and then did the command ../opencv/ios/configure-device_xcode.sh
The error output I get is:

CMake Error at cmake/OpenCVGenConfig.cmake:134 (math):
math cannot parse the expression: "8 * ": syntax error, unexpected $end,
expecting exp_OPENPARENT or exp_NUMBER (4)
Call Stack (most recent call first):
CMakeLists.txt:614 (include)

Updated by Andrey Kamaev almost 13 years ago

Have you removed your old build directory before the command?

Updated by Mats Berggrund almost 13 years ago

Yes. I tried it again now on a completely clean place. Checking out the latest (this time 7838) and then did the command
../opencv/ios/configure-device_xcode.sh from an empty build dir. It also btw complains about a missing PythonInterp but that it did also when the config was working.

/MB

Updated by Andrey Kamaev almost 13 years ago

Could you please add a --trace parameter to the CMake arguments inside the sh script and attach the complete output to this ticket?

  • Status changed from Done to Open

Updated by Mats Berggrund almost 13 years ago

Ok here we go...

  • File configDevice.log added

Updated by Andrey Kamaev almost 13 years ago

Oh.. Well, the latest bugfixes are now committed to the 2.4 svn branch: http://code.opencv.org/svn/opencv/branches/2.4
And they will be merged to trunk after the 2.4 release. Until the release trunk is preserved for new functionality which will not be included in 2.4.

Sorry for this messy branching.

  • Status changed from Open to Done

Updated by Mats Berggrund almost 13 years ago

Ok, I now checked out http://code.opencv.org/svn/opencv/branches/2.4 instead and then the configuration script went through without and errors :)

Updated by Mats Berggrund almost 13 years ago

... without ANY errors ...

Also available in: Atom PDF