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.

DM368 IPNC SDK V5.0 - Appro_interface.h needed by alias.o

Hi All,

I thought I'd give the recently released SDK 5.0 a try.  I downloaded it last night.  I spent the remainder of the night getting the Web page to build, getting the dreaded "GED00" error.  It took several uninstall / reinstall cycles of GoDB to get it to compress successfully.  This morning I started a "make sysall", and got the following:

No rule to make target `/data/datalocal1_videoapps01/user/kudva/DM36x/IPNetCam_opensrc/ipnc_rdk/../ipnc_rdk/ipnc_app/interface/inc/Appro_interface.h', needed by `alias.o'.  Stop.

I looked at the makefile, and found that Appro_interface.a is required, but couldn't find where a library by that name is built.  I tried a "make clean" and repeated the "make sysall", but got the same error.  Any thoughts of getting this fixed?

Thanks in advance...

  • I kluged the broken paths just to get further, but for documentation sake, paths to ipnc_rdk/ipnc/app/interface/inc are broken in globals.h, Appro_interface.h, Msg_Def.h, sys_env_type.h, and Dmva_scheduler.h

    As I got further, I got to:

    ln -sf /tmp/localtime /home/jc3/ipnc/Source/ipnc_rdk/../ipnc_rdk/target/filesys/usr/share/info/localtime
    ln: failed to create symbolic link `/home/jc3/ipnc/Source/ipnc_rdk/../ipnc_rdk/target/filesys/usr/share/info/localtime': No such file or directory
    make[9]: *** [install] Error 1
    make[9]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk/ipnc_app/sys_server/src'
    make[8]: *** [src.install] Error 2
    make[8]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk/ipnc_app/sys_server'
    make[7]: *** [sys_server.install] Error 2
    make[7]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk/ipnc_app'
    make[6]: *** [libs] Error 2
    make[6]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk/av_capture/application/ipnc'
    make[5]: *** [install] Error 2
    make[5]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk/av_capture/application/ipnc'
    make[4]: *** [libs] Error 2
    make[4]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk'
    make[3]: *** [install] Error 2
    make[3]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk'
    make[2]: *** [app] Error 2
    make[2]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk'
    make: *** [sysall] Error 2
    root@jc3-vgn:/home/jc3/ipnc/Source/ipnc_rdk#

    Any help would be most appreciated.  I don't like to complain, but when you get to version 5.0 of an SDK, you should be able to install on a clean Ubuntu 12.04 computer according to the instructions in the User's Guide, run "make sysall" as superuser, get not have the make break with these types of errors...

  • My bad on the localtime issue above.  The un-tar failed on filesys from a typo, and I didn't scroll back and check.  The paths to ...interface/inc are still an issue though...

  • The built got to the kernel build, but this too is broken.  It can't find mkimage (even though it's there), so u-boot isn't built.  It never builds uImage, and the copy into filesys fails:

      SYSMAP  System.map
      OBJCOPY arch/arm/boot/Image
      Kernel: arch/arm/boot/Image is ready
      UIMAGE  arch/arm/boot/uImage
    "mkimage" command not found - U-Boot images will not be built
      Image arch/arm/boot/uImage is ready
    make[4]: Leaving directory `/home/jc3/ipnc/Source/dvsdk_ipnctools/ipnc_psp_03_21_00_04/kernel'
    make[3]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk'
    make lspbuild MAKE_TARGET=modules
    make[3]: Entering directory `/home/jc3/ipnc/Source/ipnc_rdk'
    make -C/home/jc3/ipnc/Source/ipnc_rdk/../dvsdk_ipnctools/ipnc_psp_03_21_00_04/kernel ARCH=arm CROSS_COMPILE=/home/jc3/ipnc/Source/ipnc_rdk/../dvsdk_ipnctools/linux-devkit//bin/arm-arago-linux-gnueabi- modules
    make[4]: Entering directory `/home/jc3/ipnc/Source/dvsdk_ipnctools/ipnc_psp_03_21_00_04/kernel'
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
    make[5]: `include/generated/mach-types.h' is up to date.
      CALL    scripts/checksyscalls.sh
      CC [M]  crypto/md5.o
      CC [M]  crypto/sha1_generic.o
      CC [M]  crypto/des_generic.o
      CC [M]  crypto/crc32c.o
      CC [M]  drivers/block/loop.o
      CC [M]  drivers/mmc/card/block.o
      CC [M]  drivers/mmc/card/queue.o
      LD [M]  drivers/mmc/card/mmc_block.o
      CC [M]  drivers/mmc/core/core.o
      CC [M]  drivers/mmc/core/bus.o
      CC [M]  drivers/mmc/core/host.o
      CC [M]  drivers/mmc/core/mmc.o
      CC [M]  drivers/mmc/core/mmc_ops.o
      CC [M]  drivers/mmc/core/sd.o
      CC [M]  drivers/mmc/core/sd_ops.o
      CC [M]  drivers/mmc/core/sdio.o
      CC [M]  drivers/mmc/core/sdio_ops.o
      CC [M]  drivers/mmc/core/sdio_bus.o
      CC [M]  drivers/mmc/core/sdio_cis.o
      CC [M]  drivers/mmc/core/sdio_io.o
      CC [M]  drivers/mmc/core/sdio_irq.o
      CC [M]  drivers/mmc/core/debugfs.o
      LD [M]  drivers/mmc/core/mmc_core.o
      CC [M]  drivers/mmc/host/davinci_mmc.o
      CC [M]  drivers/net/ppp_generic.o
      CC [M]  drivers/net/ppp_deflate.o
      CC [M]  drivers/net/slhc.o
      CC [M]  drivers/net/tun.o
      CC [M]  drivers/net/netconsole.o
      CC [M]  drivers/scsi/scsi_transport_iscsi.o
      CC [M]  drivers/scsi/libiscsi.o
      CC [M]  drivers/scsi/libiscsi_tcp.o
      CC [M]  drivers/scsi/iscsi_tcp.o
      CC [M]  drivers/scsi/scsi_wait_scan.o
      CC [M]  drivers/usb/mon/mon_main.o
      CC [M]  drivers/usb/mon/mon_stat.o
      CC [M]  drivers/usb/mon/mon_text.o
      CC [M]  drivers/usb/mon/mon_bin.o
      LD [M]  drivers/usb/mon/usbmon.o
      CC [M]  drivers/usb/gadget/file_storage.o
      LD [M]  drivers/usb/gadget/g_file_storage.o
      CC [M]  drivers/usb/musb/musb_core.o
      CC [M]  drivers/usb/musb/musb_gadget_ep0.o
      CC [M]  drivers/usb/musb/musb_gadget.o
      CC [M]  drivers/usb/musb/musb_debugfs.o
      LD [M]  drivers/usb/musb/musb_hdrc.o
      CC [M]  drivers/usb/musb/davinci.o
      CC [M]  drivers/usb/musb/cppi_dma.o
      CC [M]  lib/crc-ccitt.o
      CC [M]  lib/libcrc32c.o
      Building modules, stage 2.
      MODPOST 25 modules
      CC      crypto/crc32c.mod.o
      LD [M]  crypto/crc32c.ko
      CC      crypto/des_generic.mod.o
      LD [M]  crypto/des_generic.ko
      CC      crypto/md5.mod.o
      LD [M]  crypto/md5.ko
      CC      crypto/sha1_generic.mod.o
      LD [M]  crypto/sha1_generic.ko
      CC      drivers/block/loop.mod.o
      LD [M]  drivers/block/loop.ko
      CC      drivers/mmc/card/mmc_block.mod.o
      LD [M]  drivers/mmc/card/mmc_block.ko
      CC      drivers/mmc/core/mmc_core.mod.o
      LD [M]  drivers/mmc/core/mmc_core.ko
      CC      drivers/mmc/host/davinci_mmc.mod.o
      LD [M]  drivers/mmc/host/davinci_mmc.ko
      CC      drivers/net/netconsole.mod.o
      LD [M]  drivers/net/netconsole.ko
      CC      drivers/net/ppp_deflate.mod.o
      LD [M]  drivers/net/ppp_deflate.ko
      CC      drivers/net/ppp_generic.mod.o
      LD [M]  drivers/net/ppp_generic.ko
      CC      drivers/net/slhc.mod.o
      LD [M]  drivers/net/slhc.ko
      CC      drivers/net/tun.mod.o
      LD [M]  drivers/net/tun.ko
      CC      drivers/scsi/iscsi_tcp.mod.o
      LD [M]  drivers/scsi/iscsi_tcp.ko
      CC      drivers/scsi/libiscsi.mod.o
      LD [M]  drivers/scsi/libiscsi.ko
      CC      drivers/scsi/libiscsi_tcp.mod.o
      LD [M]  drivers/scsi/libiscsi_tcp.ko
      CC      drivers/scsi/scsi_transport_iscsi.mod.o
      LD [M]  drivers/scsi/scsi_transport_iscsi.ko
      CC      drivers/scsi/scsi_wait_scan.mod.o
      LD [M]  drivers/scsi/scsi_wait_scan.ko
      CC      drivers/usb/gadget/g_file_storage.mod.o
      LD [M]  drivers/usb/gadget/g_file_storage.ko
      CC      drivers/usb/mon/usbmon.mod.o
      LD [M]  drivers/usb/mon/usbmon.ko
      CC      drivers/usb/musb/cppi_dma.mod.o
      LD [M]  drivers/usb/musb/cppi_dma.ko
      CC      drivers/usb/musb/davinci.mod.o
      LD [M]  drivers/usb/musb/davinci.ko
      CC      drivers/usb/musb/musb_hdrc.mod.o
      LD [M]  drivers/usb/musb/musb_hdrc.ko
      CC      lib/crc-ccitt.mod.o
      LD [M]  lib/crc-ccitt.ko
      CC      lib/libcrc32c.mod.o
      LD [M]  lib/libcrc32c.ko
    make[4]: Leaving directory `/home/jc3/ipnc/Source/dvsdk_ipnctools/ipnc_psp_03_21_00_04/kernel'
    make[3]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk'
    cp /home/jc3/ipnc/Source/ipnc_rdk/../dvsdk_ipnctools/ipnc_psp_03_21_00_04/kernel/arch/arm/boot/uImage /home/jc3/ipnc/Source/ipnc_rdk/../ipnc_rdk/tftp/DM368/uImage_ipnc_dm368
    cp: cannot stat `/home/jc3/ipnc/Source/ipnc_rdk/../dvsdk_ipnctools/ipnc_psp_03_21_00_04/kernel/arch/arm/boot/uImage': No such file or directory
    make[2]: *** [lsp] Error 1
    make[2]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk'
    make[1]: *** [lspall] Error 2
    make[1]: Leaving directory `/home/jc3/ipnc/Source/ipnc_rdk'
    make: *** [sysall] Error 2
    root@jc3-vgn:/home/jc3/ipnc/Source/ipnc_rdk#

    Again, any help would be greatly appreciated...

  • I moved mkimage to /usr/bin to solve the last problem.  Now, it appears the mail makefile has been changed.  The "make ubifsall" option has been removed.  Now, "make ubifs" WILL NOT BUILD A UBIFS IMAGE!!!

    root@jc3-vgn:/home/jc3/ipnc/Source/ipnc_rdk# make ubifs
    /home/jc3/ipnc/Source/ipnc_rdk/../ipnc_rdk/target/mtd-utils/64bit/mkfs.ubifs -r  /home/jc3/ipnc/Source/ipnc_rdk/../ipnc_rdk/target/filesys -m 2048 -e 126976 -c 313 -o ubifs.img
    /home/jc3/ipnc/Source/ipnc_rdk/../ipnc_rdk/target/mtd-utils/64bit/mkfs.ubifs: 1: /home/jc3/ipnc/Source/ipnc_rdk/../ipnc_rdk/target/mtd-utils/64bit/mkfs.ubifs: Syntax error: word unexpected (expecting ")")
    make: *** [ubifs] Error 2
    root@jc3-vgn:/home/jc3/ipnc/Source/ipnc_rdk#

    Please help...

  • Hi John,

    I also experienced build problems.
    But after i deleted all '*.depend' files from rdk (i found them 42) , everything built fine.

    Regards,
    Marko.

  • Hi Marko,

    Thanks for your help.  Late last night I tried the same thing, and deleting the .depend file worked.  I only had one.  For the benefit of those about to try SDK 5.0, here are the steps needed from a clean Linux install (I used Ubintu 12.04):

    For the benefit of those seeking help later, the following are the steps needed in addition to the User's Guide to build the SDK:

    1) Install Ubuntu 12.04 LTS 32-bit (didn't try the 64-bit version)

    2) Install Bison (needed to build SDK)

    3) Install Flex (needed to build SDK)

    4) Install acl library (needed to build file system) (sudo apt-get install libacl1-dev)

    5) Install zlib library (needed to build file system) (sudo apt-get install zlib1g-dev)

    6) Install lzo library (needed to build file system) (sudo apt-get install liblzo2-dev)

    7) Install uuid library (needed to build file system) (sudo apt-get install uuid-dev)

    8) Enable "su" (sudo passwd root)

    9) Install SDK per instructions in User's Guide

    10) Version 5.0 of the SDK includes a hidden file that will cause your build to fail.  Using whatever file manager your choose (for example, Nautilus under Ubuntu 12.04), enable viewing of hidden files (View | Show Hidden Files), navigate to <whatever your IPNC install directory>/Source/ipnc_rdk/ipnc_app/network/boa-0.94.13/src.  Locate the file .depend and delete ONLY this one file.

    10) As "su", move to your target directory, (cd <whatever your IPNC install directory>/Source/ipnc_rdk/target), and un-tar the filesystem (tar -zxvf filesys_ipnc_dm36x.tar.gz)

    11) As "su", run "make sysall" per the instructions in the User's Guide.

    11) If the make fails with uImage not being built, the mkimage file cannot be accessed. As "su", cp <whatever your IPNC install directory>/dvsdk_ipnctools/ipnc_psp_03_21_00_04/u-boot/tools/mkimage /usr/bin/mkimage  (note: the name of the ipnc_psp directory in this command may change based on version number, see Rules.make)

    12) re-run "make sysall"  (if necessary)

    13) After the "make sysall" completes, the file system needs to be built.  The User's Guide indicates this can be done with "make ubifs", however the makefile for this is broken.  "make ubifsall" was an option in Version 4.1 of the SDK, but this has been removed, as the binaries for creating the file system have been pre-built and no source is provided.  These binaries are not true Linux executables and do not accept leading path names, which breaks the makefile.  My workaround is to copy the binaries mkfs.ubifs and ubinize from <whatever your IPNC install directory>/Source/ipnc_rdk/target/mtd-utils/64bit to <whatever your IPNC install directory>/Source/ipnc_rdk, and edit the makefile located in <whatever your IPNC install directory>/Source/ipnc_rdk as follows:

    Under the label ubifs:
    Change this -

    ubifs:
    ifeq ($(HARDWARE_CFG), dm365)
        $(UBIFS_PATH)/mkfs.ubifs -r  $(TARGET_FS) -m 512 -e 15360 -c 1662 -o ubifs.img
        $(UBIFS_PATH)/ubinize -o $(SYSTEM_CFG)_$(HARDWARE_CFG)_ubifs -m 512 -p 16KiB  $(HARDWARE_CFG)_ubinize.cfg
    else
        $(UBIFS_PATH)/mkfs.ubifs -r $(TARGET_FS) -m 2048 -e 126976 -c 313 -o ubifs.img
        $(UBIFS_PATH)/ubinize -o $(SYSTEM_CFG)_$(HARDWARE_CFG)_ubifs -m 2048 -p 128KiB  $(HARDWARE_CFG)_ubinize.cfg
    endif

    To this -

    ubifs:
    ifeq ($(HARDWARE_CFG), dm365)
        mkfs.ubifs -r  $(TARGET_FS) -m 512 -e 15360 -c 1662 -o ubifs.img
        ubinize -o $(SYSTEM_CFG)_$(HARDWARE_CFG)_ubifs -m 512 -p 16KiB  $(HARDWARE_CFG)_ubinize.cfg
    else
        mkfs.ubifs -r $(TARGET_FS) -m 2048 -e 126976 -c 313 -o ubifs.img
        ubinize -o $(SYSTEM_CFG)_$(HARDWARE_CFG)_ubifs -m 2048 -p 128KiB  $(HARDWARE_CFG)_ubinize.cfg
    endif

    Saving the makefile and running "make ubifs" as "su" will now produce the file system, placing it in the proper directory based on your architecture.

    I hope this helps...

  • Hello,

    In file ipnc_app\network\boa-0.94.13\src\Makefile

     

    Please replace

    include .depend

     

    with

     

    -include .depend

     

    This should solve the issue

     

    Else please remove .depend file located at ipnc_app\network\boa-0.94.13\src

    Regards,

    Raghu

  • hi John~ At first I also encountered this problem, and my solution is as follows:

    vi ../ipnc_rdk/rules.make

    change the UBIFS mtd-utils mode from 64bit to 32bit.

    and the run make ubifs I can get the correct ubifs_ipnc.bin in the tftp directory.

    note:my virtual machine is ubuntu 12.04 LTS 32 bit.

    Meybe you can try this .

  • Hi John,

        I recently learn about the DM368 IPNC SDK ,but i can't find  the SDK package ,can you share the download link of DM368 IPNC SDK with me ?my email : shawnstone@126.com

    thanks a lot !

  • The SDK is on a password protected FTP site at Appro, the company that makes the IP camera developer's kits for T.I.  You must contact your T.I. salesperson to gain access to this site.

    I believe the current version is 5.1 based on Linux kernel 2.6.37 and released on August 13, 2013.  If there is a newer version, I hope someone from Appro or T.I. will post here (and make it available to me as well on my Appro login).

  • Hi John,

    Thank you for your helpful post ! I work on the DM368IPNC-MT5 and i have had the same issues with SDK 5.1 , it solved by following your post on "Mar 29, 2013 1:12 AM".

    I am a beginner in Linux development but i am keen to learn.

    Could you please explain as, what is the reasoning that you followed to resolve this issues, and provide us the solution in steps 10, 11,12 and 13 ?

    Regards,
    Haithem.