차근차근/이것저것

이클립스 | C/C++ | opeCV | Tesseract OCR => 2

예쁜꽃이피었으면 2015. 3. 17. 15:53

참고했던 글들.



http://stackoverflow.com/questions/15693361/failure-android-library-projects-cannot-be-launched

Android library projects cannot be launched 에러


In project properties, under "Android", there's a checkbox "Is Library". It's probably checked now. That means the project is a library.

Sometimes, library projects can be used as standalone apps - they have a manifest, launchable activities and everything. Sometimes they're not. Anyway, uncheck and give it a try.



http://hanburn.tistory.com/92

The builder launch configuration could not be found.  

해당 Project를 선택한뒤 -> Properties -> Builders를 살펴보자 
그럼 거기에 빨간 엑스표시가 있는게 있다. 그걸 Remove 시키면 된다. 


http://stackoverflow.com/questions/18096261/android-no-such-file-or-directory-error

after I install the ADT and add the CDT and NDK and add the OpenCV library this error appears

**** Build of configuration Default for project OpenCV Tutorial 2 - Mixed Processing     ****

C:\android-ndk-r9\ndk-build.cmd 
jni/Android.mk:5: ../../sdk/native/jni/OpenCV.mk: No such file or directory
make: *** No rule to make target `../../sdk/native/jni/OpenCV.mk'.  Stop.

=>

Change the Android.mk so that include refers to absolute path of OpenCV.mk. Ex:

WIN: include d:\dev\OpenCV-2.4.6-android-sdk\sdk\native\jni\OpenCV.mk
Linux: include ~/mydevdir/OpenCV-2.4.6-android-sdk/sdk/native/jni/OpenCV.mk


[안드로이드] Eclipse에서 NDK-build 하기



http://stackoverflow.com/questions/11825534/set-build-path-in-eclipse-for-ndk-program/11825963#11825963

Cannot run program "ndk-build": Unknown reason

Error: Program "ndk-build" not found in PATH
PATH=[/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games]

=>

//goto Preference → Android → NDK and choose your ndk location

enter image description here

or

in your hidden .bashrc file add this below line

export NDK_PATH=/home/padmakumar/android-ndk-r7b




http://stackoverflow.com/questions/16328637/building-opencv-2-4-5-in-android-adt-ndk-build-not-found-in-path

Building OpenCV 2.4.5 in android ADT: “ndk-build” not found in PATH




http://m.todayhumor.co.kr/view.php?table=programmer&no=7502

Android.mk 8째 줄에 include ../../sdk/native/jni/OpenCV.mk 이런식으로 sdk의 make file을 참조하는데 해당 경로에 그 파일이 없기 때문에 에러가 발생한 것 인데요, 아마도 프로젝트들을 import 하실때 copy projects into workspace에 체크하셔서 sdk/java 프로젝트만 workspace 폴더에 복사되고 sdk/native는 압축 푼 경로에 남아 있어서 그런 것 같습니다.
OpenCV 라이브러리가 내부는 C/C++로 짜여져 있고, jni로 java 인터페이스를 제공하는 거라서, sdk/java 프로젝트만 import하면 껍데기만 있는 셈이거든요.
따라서 압축 푼 경로/sdk/native 하위에 있는 jni, libs 폴더를 OpenCV library 2.4.10 프로젝트 폴더로 복사해준 다음에 face-detection의 Android.mk의 include ../../sdk/native/jni/OpenCV.mk 이 부분을 include "OpenCV library 2.4.10 프로젝트 경로"/jni/OpenCV.mk 이런식으로 수정하시면 될겁니다.




http://stackoverflow.com/questions/15278900/what-does-it-mean-no-launcher-activity-found-and-the-launch-will-only-sync-the?rq=1

http://stackoverflow.com/questions/4801371/what-does-it-mean-no-launcher-activity-found



What does it mean “No Launcher activity found!”

Here's an example from AndroidManifest.xml. You need to specify the MAIN and LAUNCHER in the the intent filter for the activity you want to start on launch

<application android:label="@string/app_name" android:icon="@drawable/icon">
    <activity android:name="ExampleActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>










반응형