Thursday, March 8, 2012

OpenMP Continue...;)

다시 새로운 빛 등장.. 두둥...
안드로이드에 보면

LOCAL_CCIf you want to use a different C compiler for this module, set LOCAL_CC to the path to the compiler. If LOCAL_CC is blank, the appropriate default compiler is used.
라는 놈이 있다.. 컴파일러를 바꿔 주는것이다.
4.6 을 쓰기 위한 처절한 노력 끝에 이놈을 쓰기로 결정
지금 내가 하고 있는 프래임 워크 단에서


 # SJIT: Enabling openMP Using different toolchain -Sean2.kim@lge.com
 23 # =================================================================
 24 LOCAL_CC := prebuilt/linux-x86/toolchain/android-toolchain-eabi-4.6.3/bin/arm-linux-androideabi-gcc
 25 LOCAL_LDLIBS := -lpthread -fopenmp
 26 LOCAL_C_INCLUDE := prebuilt/linux-x86/toolchain/android-toolchain-eabi-4.6.3/arm-linux-and    roideabi/lib
 27 # =================================================================

이런식으로 넣어 주고 내가 빌드한 컴파일러 연결
라이브러리 연결
빌드중..
되었으면 좋겠다..
되었으면 좋겠다... 한국 가자 ㅠ

1 comment:

  1. 2가지 LOCAL_CC가 아니라 LOCAL_CXX 로 C++이나 g++ 컴파일러를 사용해야 한다는거
    -fopenmp 는 LOCAL_CFLAGS 에 들어 가야 한다는거
    나머지는 필요 없다..

    ReplyDelete