Unable to build GStreamer for Android Tutorials

后端 未结 6 1265
南旧
南旧 2021-01-05 09:14

I\'m running into a number of issues attempting to build the GStreamer Android tutorials.

My environment is:

  • Mac OS X 7
  • Android SDK version 17
6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-05 09:27

    I was facing the same problem but found nothing clear on internet. But somehow detail study of the problem led me to solve it.

    To solve it you need to do the following steps in eclipse:

    1. Go to Windows->preferences->c/c++->build->Environment
    2. Click Add button on the right most of the window
    3. In the Name field enter "GSTREAMER_SDK_ROOT_ANDROID"
    4. In the Value field enter the location of the GStreamer SDK. In my case it was "C:\GStreamer_SDK". HERE IS THE PROBLEMMMM.... you need to use forward slash "/" instead of backward "\" to make it work properly. so my Gstreamer SDK location will look like this "C:/GStreamer_SDK"

    Once you are done with it. You need to do some changes in the Android.mk file of your project.

    Go to the following line

    GSTREAMER_NDK_BUILD_PATH  := $(GSTREAMER_SDK_ROOT)/share/gst-android/ndk-build/
    

    and remove the ending forward slash from the line of code. so it like will look like this.

    GSTREAMER_NDK_BUILD_PATH  := $(GSTREAMER_SDK_ROOT)/share/gst-android/ndk-build
    

    Save it and you are done with it!

    If you don't remove the slash it will generate the path during build like this

    c:/GStreamer_SDK/share/gst-android/ndk-build//gstreamer.mk
    

    Double slashes are problem during build.

    Now right click on project->clean Project

    Now build it by right click on your project->build project.

    If eclipse hangs while building just go to task manager and kill the make.exe service two times.

    Run your project on your device or emulator. Have fun!

提交回复
热议问题