This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

some problems when building the rpwboat project(begleboard).

hello,everyone!
    i have the  following problems when building the rowboat project.
    the steps are as following:
PART1:
    1.download the rowboat project with dvsdk and gstreamer supported.
    2.build the entire project with the command:
          "make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dvsdk"
       and it really build successfully!

    3.but when i changed the Makefile in the directory "~/rowboat-android/external/ti-dsp",some errors are out .the following is what i have done with the Makefile:
      replace the line
 "all: dsplink_config dsplink_build dsplink_dsp cmem_build sdma_build ce_build fc_build cs_build dmai_build lpm_build ti_gst ti_omx overlay_dmai install"
      with the line
  "all: dsplink_config dsplink_build dsplink_dsp cmem_build sdma_build ce_build ce_examples_build fc_build cs_build dmai_build lpm_build ti_gst ti_omx overlay_dmai install"
    4.build the project with the following command:
         "make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dvsdk"
    5.it also build successfully,but the oupput include a lot msgs blow(ijust list some related msgs):
"...
gmake[1]: `.dlls' is up to date.
======== .dlls [/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/examples/ti/sdo/ce/examples/codecs/videnc_copy] ========
#
# making package.mak (because of package.bld) ...
/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/tconf  -Dxdc.path="/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdais_6_25_02_11/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/bios_5_41_00_06/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/dsplink_linux_1_65_00_02/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/biosutils_1_02_02/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/local_power_manager_linux_1_24_02_09/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/packages;../../../../../.." -Dxdc.root=/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdais_6_25_02_11/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/bios_5_41_00_06/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/dsplink_linux_1_65_00_02/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/biosutils_1_02_02/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/local_power_manager_linux_1_24_02_09/packages;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/packages;../../../../../..;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27;/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/etc" -Dxdc.bld.targets="" -DTOOLS=   /home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/packages/xdc/bld/bld.js /home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/config.bld package.bld package.mak prod
building for target C64P ...
building for target GCArmv7A ...
js: "/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/packages/gnu/targets/ITarget.xs", line 261: Error: /home/hjhua/rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-/bin/arm-eabi-gcc cannot be found. Ensure that rootDir for the GCArmv7A target is set correctly in /home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/config.bld
gmake[1]: *** Deleting file `package.mak'
======== .dlls [/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/examples/ti/sdo/ce/examples/codecs/vidtranscode_copy] ========
..."
    6.just have a look at the msgs above,it seems as if the file"/home/hjhua/rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-/bin/arm-eabi-gcc" can not be found.so i find the config.bld file in the directory "/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16" and make the following changes:
-- replace the line:
    "GCArmv7A.rootDir = "" +  java.lang.System.getenv("ANDROID_TOOLCHAIN");"
-- with the line:
    "GCArmv7A.rootDir = "" +  java.lang.System.getenv("ANDROID_TOOLCHAIN_PATH");"
    8.build the entire rowboat project with the command "make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dvsdk" again
    9.the output messages i just list above does not exist,but some error msgs blow is out:
"...
#
# clv7A package/package_ti.sdo.ce.examples.codecs.audenc_copy.c ...
/home/hjhua/rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc -c -MD -MF package/lib/lib/audenc_copy/package/package_ti.sdo.ce.examples.codecs.audenc_copy.ov7A.dep -x c  -fPIC -Wunused -Wall -fno-strict-aliasing null -march=armv7-a -Dfar=  -D__xdc_bld_pkg_c__=package.bld.c -Dxdc_target_name__=GCArmv7A -Dxdc_target_types__=gnu/targets/arm/std.h -Dxdc_bld__profile_release -Dxdc_bld__vers_1_0_4_4_0 -O2  -I. -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10 -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdais_6_25_02_11/packages -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/bios_5_41_00_06/packages -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/dsplink_linux_1_65_00_02/packages -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/packages -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/biosutils_1_02_02/packages -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/local_power_manager_linux_1_24_02_09/packages -I/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/xdctools_3_16_01_27/packages -I../../../../../..  -o package/lib/lib/audenc_copy/package/package_ti.sdo.ce.examples.codecs.audenc_copy.ov7A package/package_ti.sdo.ce.examples.codecs.audenc_copy.c
arm-eabi-gcc: null: No such file or directory
gmake[1]: *** [package/lib/lib/audenc_copy/package/package_ti.sdo.ce.examples.codecs.audenc_copy.ov7A] Error 1
gmake[1]: *** Deleting file `package/lib/lib/audenc_copy/package/package_ti.sdo.ce.examples.codecs.audenc_copy.ov7A'
gmake: *** [/home/hjhua/rowboat-android/external/ti-dsp/dvsdk_3_01_00_10/codec_engine_2_25_05_16/examples/ti/sdo/ce/examples/codecs/audenc_copy,.libraries] Error 2
make[1]: *** [ce_examples_build] Error 2
make[1]: Leaving directory `/home/hjhua/rowboat-android/external/ti-dsp'
make: *** [dvsdk] Error 2
root@hjhua-desktop:~/rowboat-android#
"
    10.just have a look at the msg above,the line "arm-eabi-gcc: null: No such file or directory" is the key.but the file"/home/hjhua/rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc" does really exist.I do not why.can anybody help me out?


PART2:
    1.help me out,and my email is "huangjianhuayin@126.com".anyway thanks!

  • I noticed you added 'ce_examples_build' into the Makefile. But I doubt 1) this has been tested by the rowboat developers or anyone else; 2) the ce examples are useful/ported to Android.

    Is there any reason you want to build the examples? You might get a better answer if you post the question to the rowboat mailing list.

  •  Thanks for your advance!

     in fact:

              1)I hava posted the problems to the rowboat mailing list,and got a reply.i did the steps as they told me,but the error msgs are the same.

              2)in our project, we want to develop my own algorithm base on the dvsdk.we want to do some changs to the "ce-examples".maybe  this is the esay way to make our goals. 

     

     

  • I am also watching that mailing list, but did not see your question got answered. Can you please post the reply you received in the mailing list? I could give it a try if I have time.

  • the letter is from Maciej Jonczyk,and the following is the contents:

    ---
    10.just have a look at the msg above,the line "arm-eabi-gcc: null: No such file or directory" is the key.but the file"/home/hjhua/rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc" does really exist.I do not why.can anybody help me out?
    <hjhua> PART2:

    just had same problem.

    there seems to be some problem in instruction at point:

    export PATH=${PWD}/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin:$PATH



    check it as I htink ther were some problems with correct path but dont remember exactly now
     hope it helps
    ---

    I guese that someone from the IRC #rowboat gave me the letter,because I also have  posted the problem to the IRC channel (#rowboat)

  • I don't think it is toolchain path problem since you could build it without Makefile modification as you said.

  •  yeath,I agree with you.maybe the line "arm-eabi-gcc: null: No such file or directory" is the key,but i do not  know how to solve this problem.

  • look at the error msg:

    line 261: Error: /home/hjhua/rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-/bin/arm-eabi-gcc cannot be found.

    '/bin/arm-eabi-' highlighted above is extra on top of the correct toolchain path.

    So I did a quick hack in external/ti-dsp/Makefile as following and am able to build some of ce exmaples. But some of them have linking errors (undefined reference). Obviously ce_examples_build is not tested in rowboat.

    diff --git a/Makefile b/Makefile
    index 293306c..b82805e 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -310,6 +312,10 @@ ce_clean:
     
     ce_examples_build:
            XDCPATH=$(XDCPATH) XDCOPTIONS=v XDCARGS="prod" XDCBUILDCFG=$(CE_INSTALL_DIR)/config.bld \
    +       ANDROID_CFLAGS="$(BIONIC_LIBC_INCS) $(ANDROID_CC_FLAGS)" \
    +       ANDROID_LDFLAGS="$(ANDROID_LD_FLAGS)" \
    +       ANDROID_TOOLCHAIN="$(ANDROID_TOOLCHAIN_PATH)" \
    +       ANDROID_TOOLCHAIN_LONGNAME=$(ANDROID_TOOLCHAIN_LONGNAME) \
            CODEGEN_INSTALL_DIR=$(CODEGEN_INSTALL_DIR) $(XDC_INSTALL_DIR)/xdc \
            -PR $(CE_INSTALL_DIR)/examples/