Giter Site home page Giter Site logo

Comments (6)

billmccord avatar billmccord commented on July 29, 2024

Having OpenCV 2.2. installed and in PATH is irrelevant. We use OpenCV 1.1 pre for this project and the source is already included and built when you build. Someone else has also reported the same problem you are running into, but unfortunately I don't have a Windows machine to debug this. The other person eventually gave up and used Linux to build. If that isn't an option for you, then I would appreciate your help investigating. Here are the instructions I gave to the other person:

Everything built except for the opencv module which requires linking to all of the other libraries. The only thing I can guess is that one of two things is happening:

* On your machine TARGET_OUT is not pointing to [ROOT OF OPENCV PRJ]/obj/local/armeabi
      o You might try hard-coding the path in there and removing -L$(TARGET_OUT).  See if that works.  If it doesn't then the other problem might be...
* ld.exe isn't respecting that -lcxcore is a reference to libcxcore.a
      o You might try reading the documentation for ld.exe and see if there are some rules that are different about the Windows implementation from the Linux / Mac implementation.

Let me know if you make any progress as I would like to warn others.

from opencv-android.

brnhffmnn avatar brnhffmnn commented on July 29, 2024

I struggled with this for way to long now and finally it worked. Setting the search path with -L to an absolute path instead of TARGET_OUT helped.

LOCAL_LDLIBS := -L $(SYSROOT)/usr/lib -l dl -l log \
        -L "D:\OpenCV-Android\obj\local\armeabi" \
        -l cxcore -l cv -l cvaux -l cvml -l cvhighgui

from opencv-android.

Xirus avatar Xirus commented on July 29, 2024

Hello
I had the same problem and this solution helped me out...
I just wonder if is there a neater way to do it...
thanks

from opencv-android.

billmccord avatar billmccord commented on July 29, 2024

Xirus,

I'm stuck on Android 1.6 platform because the project I am working on requires it for now. You might want to look at the official OpenCV project by Willow Garage if you are able to use newer versions of Android.
http://opencv.willowgarage.com/wiki/Android

from opencv-android.

Xirus avatar Xirus commented on July 29, 2024

Thanks - I will have a look.
Another problem:
I am trying the open the OpenCVSample project with eclipse.
I just started with Android so perhaps I am doing something wrong.
Thanks
Jay

-----Original Message-----
From: billmccord [mailto:[email protected]]
Sent: Sunday, August 07, 2011 1:49 AM
To: [email protected]
Subject: Re: [OpenCV-Android] Unable to build on Windows (#18)

Xirus,

I'm stuck on Android 1.6 platform because the project I am working on requires it for now. You might want to look at the official OpenCV project by Willow Garage if you are able to use newer versions of Android.
http://opencv.willowgarage.com/wiki/Android

Reply to this email directly or view it on GitHub:
#18 (comment)

from opencv-android.

billmccord avatar billmccord commented on July 29, 2024

You haven't described the problem you are seeing? You are trying to open the OpenCVSample and ... what?

from opencv-android.

Related Issues (20)

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.