GithubHelp home page GithubHelp logo

marmaladecv's Introduction

This project shows how to use OpenCV within Marmalade. It uses OpenCV 2.3.1 so you might need to re-import the OpenCV files. All license conditions are the same as in OpenCV.

This is what we did:

1. add all OpenCV source file to the mkb file. Add also package and subproject zlib to mkb file

2. add options {enable-exeptions } to mkb file

3. change cstdlib file (the one from marmalade installation!) to add abs definition for int and short
add the following (XXX) after
# if !defined ( _STLP_LABS )
inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); }
//XXXXXXXXXXXX
inline int abs(int __x) { return _STLP_VENDOR_CSTD::labs((long)__x); }
inline long abs(short __x) { return _STLP_VENDOR_CSTD::labs((long)__x); }
//XXXXXXXXXXXX
we then copied cstdlib file into include folder

4. change operations.hpp so that GNU_C will be considered undefined. you can do this, for example, by changing the #ifdef _GNUC_ to #ifdef __GNUC_Lior_

5. enlarge stack (preferably memory, too) in the icf file: 
[S3E]
MemSize=50485760
SysStackSize=4000000 # almost 4mb stack size

6. for x86 compilations remark __cpuid at system.cpp (search for Lior)

that's it - enjoy!

--
Lior

www.lgorithms.com

marmaladecv's People

Contributors

lmessinger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.