[Galaxy 3 Android Development] twinky444:
OK, after trying to build CM from source (and following instructions by marcellusbe in post #7328, #7329, #7330), I got this:

Install: out/target/product/galaxy3/system/lib/egl/libGLES_fimg.so
target SharedLib: libRS (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libRS_intermediates/LINKED/libRS.so)
target Non-prelinked: angeles (out/target/product/galaxy3/symbols/system/bin/angeles)
target Non-prelinked: test-opengl-fillrate (out/target/product/galaxy3/symbols/system/bin/test-opengl-fillrate)
target Non-prelinked: test-opengl-filter (out/target/product/galaxy3/symbols/system/bin/test-opengl-filter)
target Non-prelinked: test-opengl-finish (out/target/product/galaxy3/symbols/system/bin/test-opengl-finish)
target Non-prelinked: test-opengl-gl2_basic (out/target/product/galaxy3/symbols/system/bin/test-opengl-gl2_basic)
target Non-prelinked: test-opengl-gl_basic (out/target/product/galaxy3/symbols/system/bin/test-opengl-gl_basic)
target Non-prelinked: test-opengl-gralloc (out/target/product/galaxy3/symbols/system/bin/test-opengl-gralloc)
target Non-prelinked: test-opengl-linetex (out/target/product/galaxy3/symbols/system/bin/test-opengl-linetex)
target Non-prelinked: test-opengl-swapinterval (out/target/product/galaxy3/symbols/system/bin/test-opengl-swapinterval)
target Non-prelinked: test-opengl-textures (out/target/product/galaxy3/symbols/system/bin/test-opengl-textures)
target Non-prelinked: test-opengl-tritex (out/target/product/galaxy3/symbols/system/bin/test-opengl-tritex)
target Strip: libmock_ril (out/target/product/galaxy3/obj/lib/libmock_ril.so)
target Prelink: libsurfaceflinger_client (out/target/product/galaxy3/symbols/system/lib/libsurfaceflinger_client.so)
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: Location lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0x1f0
target Non-prelinked: InputChannel_test (out/target/product/galaxy3/symbols/system/bin/InputChannel_test)
target Non-prelinked: InputDispatcher_test (out/target/product/galaxy3/symbols/system/bin/InputDispatcher_test)
target Non-prelinked: InputPublisherAndConsumer_test (out/target/product/galaxy3/symbols/system/bin/InputPublisherAndConsumer_test)
target Non-prelinked: InputReader_test (out/target/product/galaxy3/symbols/system/bin/InputReader_test)
target Non-prelinked: libsensorservice (out/target/product/galaxy3/symbols/system/lib/libsensorservice.so)
target Prelink: libGLES_android (out/target/product/galaxy3/symbols/system/lib/egl/libGLES_android.so)
target Prelink: libRS (out/target/product/galaxy3/symbols/system/lib/libRS.so)
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: Location lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0xd68
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-supportlib_intermediates/classes-jarjar.jar
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0x1d0
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-support_intermediates/classes-jarjar.jar
target Strip: angeles (out/target/product/galaxy3/obj/EXECUTABLES/angeles_intermediates/angeles)
target Strip: test-opengl-fillrate (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-fillrate_intermediates/test-opengl-fillrate)
target Strip: test-opengl-filter (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-filter_intermediates/test-opengl-filter)
target Strip: test-opengl-finish (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-finish_intermediates/test-opengl-finish)
target Strip: test-opengl-gl2_basic (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-gl2_basic_intermediates/test-opengl-gl2_basic)
target Strip: test-opengl-gl_basic (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-gl_basic_intermediates/test-opengl-gl_basic)
target Strip: test-opengl-gralloc (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-gralloc_intermediates/test-opengl-gralloc)
target Strip: test-opengl-linetex (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-linetex_intermediates/test-opengl-linetex)
target Strip: test-opengl-swapinterval (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-swapinterval_intermediates/test-opengl-swapinterval)
target Strip: test-opengl-textures (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-textures_intermediates/test-opengl-textures)
target Strip: test-opengl-tritex (out/target/product/galaxy3/obj/EXECUTABLES/test-opengl-tritex_intermediates/test-opengl-tritex)
target Strip: libsurfaceflinger_client (out/target/product/galaxy3/obj/lib/libsurfaceflinger_client.so)
target Strip: InputChannel_test (out/target/product/galaxy3/obj/EXECUTABLES/InputChannel_test_intermediates/InputChannel_test)
target Strip: InputDispatcher_test (out/target/product/galaxy3/obj/EXECUTABLES/InputDispatcher_test_intermediates/InputDispatcher_test)
target Strip: InputPublisherAndConsumer_test (out/target/product/galaxy3/obj/EXECUTABLES/InputPublisherAndConsumer_test_intermediates/InputPublisherAndConsumer_test)
target Strip: InputReader_test (out/target/product/galaxy3/obj/EXECUTABLES/InputReader_test_intermediates/InputReader_test)
target Strip: libsensorservice (out/target/product/galaxy3/obj/lib/libsensorservice.so)
target Strip: libGLES_android (out/target/product/galaxy3/obj/lib/libGLES_android.so)
target Strip: libRS (out/target/product/galaxy3/obj/lib/libRS.so)
target SharedLib: libstagefrighthw (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libstagefrighthw_intermediates/LINKED/libstagefrighthw.so)
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-supportlib_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-support_intermediates/emma_out/lib/classes-jarjar.jar
target SharedLib: libcamera_client (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcamera_client_intermediates/LINKED/libcamera_client.so)
Install: out/target/product/galaxy3/system/bin/InputChannel_test
Install: out/target/product/galaxy3/system/bin/InputDispatcher_test
Install: out/target/product/galaxy3/system/bin/InputPublisherAndConsumer_test
Install: out/target/product/galaxy3/system/bin/InputReader_test
Install: out/target/product/galaxy3/system/lib/libsurfaceflinger_client.so
target Executable: bootanimation (out/target/product/galaxy3/obj/EXECUTABLES/bootanimation_intermediates/LINKED/bootanimation)
target Executable: screencap (out/target/product/galaxy3/obj/EXECUTABLES/screencap_intermediates/LINKED/screencap)
target Executable: screenshot (out/target/product/galaxy3/obj/EXECUTABLES/screenshot_intermediates/LINKED/screenshot)
target SharedLib: libsurfaceflinger (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/LINKED/libsurfaceflinger.so)
Install: out/target/product/galaxy3/system/lib/libsensorservice.so
target Prelink: libstagefrighthw (out/target/product/galaxy3/symbols/system/lib/libstagefrighthw.so)
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0x80
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-supportlib_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-support_intermediates/classes.jar
target Prelink: libcamera_client (out/target/product/galaxy3/symbols/system/lib/libcamera_client.so)
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: Location lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0x6b0
target Non-prelinked: bootanimation (out/target/product/galaxy3/symbols/system/bin/bootanimation)
target Non-prelinked: screencap (out/target/product/galaxy3/symbols/system/bin/screencap)
target Non-prelinked: screenshot (out/target/product/galaxy3/symbols/system/bin/screenshot)
target Prelink: libsurfaceflinger (out/target/product/galaxy3/symbols/system/lib/libsurfaceflinger.so)
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: Location lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
target Strip: libstagefrighthw (out/target/product/galaxy3/obj/lib/libstagefrighthw.so)
target Static Jar: core-tests-supportlib (out/target/common/obj/JAVA_LIBRARIES/core-tests-supportlib_intermediates/javalib.jar)
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-support_intermediates/noproguard.classes.jar
target Strip: libcamera_client (out/target/product/galaxy3/obj/lib/libcamera_client.so)
target Strip: bootanimation (out/target/product/galaxy3/obj/EXECUTABLES/bootanimation_intermediates/bootanimation)
target Strip: screencap (out/target/product/galaxy3/obj/EXECUTABLES/screencap_intermediates/screencap)
target Strip: screenshot (out/target/product/galaxy3/obj/EXECUTABLES/screenshot_intermediates/screenshot)
target Strip: libsurfaceflinger (out/target/product/galaxy3/obj/lib/libsurfaceflinger.so)
Install: out/target/product/galaxy3/system/lib/egl/libGLES_android.so
Install: out/target/product/galaxy3/system/lib/libRS.so
Install: out/target/product/galaxy3/system/lib/libstagefrighthw.so
target Dex: core-tests-support
target SharedLib: libcamera (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcamera_intermediates/LINKED/libcamera.so)
target SharedLib: libmedia (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libmedia_intermediates/LINKED/libmedia.so)
Install: out/target/product/galaxy3/system/lib/libcamera_client.so
Install: out/target/product/galaxy3/system/bin/bootanimation
Install: out/target/product/galaxy3/system/bin/screencap
Install: out/target/product/galaxy3/system/bin/screenshot
target Non-prelinked: libcamera (out/target/product/galaxy3/symbols/system/lib/libcamera.so)
target Prelink: libmedia (out/target/product/galaxy3/symbols/system/lib/libmedia.so)
Copy: out/target/product/galaxy3/obj/lib/libcamera.so
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: Location lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: target Executable: surfaceflinger (out/target/product/galaxy3/obj/EXECUTABLES/surfaceflinger_intermediates/LINKED/surfaceflinger)
Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0x228
Install: out/target/product/galaxy3/system/lib/libsurfaceflinger.so
target Strip: libmedia (out/target/product/galaxy3/obj/lib/libmedia.so)
Copy: out/target/product/galaxy3/system/lib/libcamera.so
target Non-prelinked: surfaceflinger (out/target/product/galaxy3/symbols/system/bin/surfaceflinger)
target Strip: surfaceflinger (out/target/product/galaxy3/obj/EXECUTABLES/surfaceflinger_intermediates/surfaceflinger)
target SharedLib: libandroid_runtime (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so)
Install: out/target/product/galaxy3/system/lib/libmedia.so
target SharedLib: libstagefright_foundation (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libstagefright_foundation_intermediates/LINKED/libstagefright_foundation.so)
target SharedLib: libstagefright_color_conversion (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libstagefright_color_conversion_intermediates/LINKED/libstagefright_color_conversion.so)
target SharedLib: libaudio (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libaudio_intermediates/LINKED/libaudio.so)
target SharedLib: libaudiopolicy (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libaudiopolicy_intermediates/LINKED/libaudiopolicy.so)
target SharedLib: libcameraservice (out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::getCameraInfo(int, android::CameraInfo*):frameworks/base/services/camera/libcameraservice/CameraService.cpp:185: error: undefined reference to 'HAL_getCameraInfo'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:130: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:130: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:228: error: undefined reference to 'HAL_openCameraHardware'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:258: error: undefined reference to 'HAL_getCameraInfo'
collect2: ld returned 1 exit status
make: *** [out/target/product/galaxy3/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so] Error 1
make: *** Waiting for unfinished jobs....

I synced CM repo (branch gingerbread) and downloaded theese repositories:

https://github.com/sdadier/android_device_samsung_apollo-common

https://github.com/sdadier/android_device_samsung_galaxy3

https://github.com/sdadier/android_kernel_samsung_s5p6442

https://github.com/sg3/android_vendor_samsung_apollo

Do I have to include openfimg somewhere?

Anyone have an idea what's causing it?