• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Android » Android forum » codec engine: compile app.out failed
Share
Android
  • Forum
Options
  • Subscribe via RSS

codec engine: compile app.out failed

codec engine: compile app.out failed

This question is answered
Cooper L
Posted by Cooper L
on Apr 04 2011 09:41 AM
Prodigy40 points

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

android Codec Engine "segmentation fault" DVSDK OMAP3530
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Bin Liu
    Posted by Bin Liu
    on Apr 04 2011 15:01 PM
    Verified Answer
    Verified by Cooper L
    Expert6540 points

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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Cooper L
    Posted by Cooper L
    on Apr 08 2011 23:52 PM
    Prodigy40 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Cooper L
    Posted by Cooper L
    on Apr 09 2011 22:15 PM
    Prodigy40 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • NuriaPazos
    Posted by NuriaPazos
    on May 03 2012 03:25 AM
    Prodigy140 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use