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.

codec engine: compile app.out failed

Hi,
I failed to build app.out in codec engine example $(CE_INSTALL_DIR)/examples/ti/sdo/ce/examples/apps/video_copy with DVSDK_4_01_00_09 on rowboat android.

The reason for me to do this is I need to develop android applications with codec engine.

Here is my steps:
(1) go to directory configuro/evm3530

(2) modify config.bld with android toolchain gcc, cflags and ldflags.

(3) modify makefile with android toolchain gcc, cflags and ldflags.
Because Android toolchain dosen't support -lpthread and it implements thread functions in libc,
so I changed
"app.out: app.o main_native.o $(LINKER_FILE)
        $(CC) -o $@ $^ -lpthread "
to
"app.out: app.o main_native.o $(LINKER_FILE)
        $(CC) -o $@ $^ $(ANDROID_LD_FLAGS) "

(4) modify xdcpaths.mak

(5) execute "make"
It complainted "collect2: ld terminated with signal 11
[segmentation fault]" simply beacause I delete "-lpthread". But when I
added it back it just complainted "-lpthread not found"

Is there a way for toolchains like android to get away from "-lpthread" ?

I posted to rowboat google group but. Hope someone could help me. Thanks in advance.

Cooper Lz

  • please refer to project in hardware/ti/omx/, which is a app component based on codec engine and DMAI.

  • Hi, Bin Liu
    Thanks for your reply. Now I can compile the video_copy app.out(or app_remote.xv5T) sucessfully. But When I load app.out and all.x64P on my beagleboard, it shows
    "App-> ERROR: can't open codec viddec_copy"
    Seems like it couldn't connect to codec.
    And I tried to rebuild codecs in examples/ti/sdo/ce/examples/codec and sucessed. but it still remains the same.


    After that I build DVSDK_04_01_00_09 alone with arm-none-linux-gnu- to compile elsewhere. The app.out or app_remote.xv5T here can sucessfully run with all.x64P built from rowboat-android on linux, so it means all.x64P is fine.


    So there is something wrong with the app. I'm new with Codec Engine, I don't know what went wrong.
    Thanks.
    Attach with CE_DEBUG=3 debuginfo.
     7181.debuginfo.TXT

     

    Cooper Lz

  • Hi, Bin Liu

    I solved my problem. I added viddec and videnc codec to cs.x64P server, and it worked.

    Thank you for your help!

    Cooper Lz

  • Hi Cooper L,

    I'm facing similar problems while trying to compile and run the codec engine examples in a Rowboat Android (FroYo) environment.

    I'd really appreciate if you could send me the makefile you used to compile the video_copy example.

    Thanks in advance!

    Nuria P