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.

K2E MCSDK image_processing demo

Genius 5785 points


Hello,

Could you tell me how to make the following application?
ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/evm66ak2e/master

I see a error message about Std.h as below when I make it with or without BUILD_LOCAL=true.

user@ubuntu:~/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/evm66ak2e/master$ make
make[1]: Entering directory `/home/user/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/master/src'
cc -Wall -I../../common/inc -I../../master/inc -D_GNU_SOURCE   -c -o mcip_bmp_utils.o mcip_bmp_utils.c
cc -Wall -I../../common/inc -I../../master/inc -D_GNU_SOURCE   -c -o mcip_master_main.o mcip_master_main.c
cc -Wall -I../../common/inc -I../../master/inc -D_GNU_SOURCE   -c -o mcip_mem_mgmt.o mcip_mem_mgmt.c
mcip_mem_mgmt.c:53:24: fatal error: ti/ipc/Std.h: No such file or directory
 #include <ti/ipc/Std.h>
                        ^
compilation terminated.
make[1]: *** [mcip_mem_mgmt.o] Error 1
make[1]: Leaving directory `/home/user/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/master/src'
make: *** [all] Error 2
user@ubuntu:~/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/evm66ak2e/master$

user@ubuntu:~/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/evm66ak2e/master$ make BUILD_LOCAL=true
make[1]: Entering directory `/home/user/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/master/src'
arm-linux-gnueabihf-gcc -Wall -I../../common/inc -I../../master/inc -I/home/user/ipc_3_35_01_07/linux/include -I/home/user/ipc_3_35_01_07/packages -D_GNU_SOURCE   -c -o mcip_bmp_utils.o mcip_bmp_utils.c
arm-linux-gnueabihf-gcc -Wall -I../../common/inc -I../../master/inc -I/home/user/ipc_3_35_01_07/linux/include -I/home/user/ipc_3_35_01_07/packages -D_GNU_SOURCE   -c -o mcip_master_main.o mcip_master_main.c
arm-linux-gnueabihf-gcc -Wall -I../../common/inc -I../../master/inc -I/home/user/ipc_3_35_01_07/linux/include -I/home/user/ipc_3_35_01_07/packages -D_GNU_SOURCE   -c -o mcip_mem_mgmt.o mcip_mem_mgmt.c
mcip_mem_mgmt.c:53:24: fatal error: ti/ipc/Std.h: No such file or directory
compilation terminated.
make[1]: *** [mcip_mem_mgmt.o] Error 1
make[1]: Leaving directory `/home/user/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/master/src'
make: *** [all] Error 2
user@ubuntu:~/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/evm66ak2e/master$

Regards,
Kazu

  • Hi Kazu,
    It seems you have not added the IPC package location correctly in the following makefile.
    mcsdk_bios_3_01_03_06\demos\image_processing\ipc\master\src\makefile
  • Hi Kazu,

    yes you are right. There is an error in the Makefile. Make file needs to be modified for including the appropriate search path for "Std.h". You will find it at "../ti/ipc_3_35_01_07/linux/include

    Open up this Makefile located at "mcsdk_bios_3_01_03_06\demos\image_processing\ipc\master\src\makefile"

    For example: -

    IPC_INSTALL_DIR := /opt/ti/ipc_3_35_01_07

    CFLAGS        := -Wall -I$(COMMON_INC) -I$(MASTER_INC) -I$(IPC_INSTALL_DIR)/linux/include -I$(IPC_INSTALL_DIR)/packages -D_GNU_SOURCE

    ---------

  • Hello Shankari,

    Thank you for your reply. The compiler is working. But the linker has some error messages. It seems it can't find some libraries about IPC. Do I need to modify LFLAGS in the Makefile?

    arm-linux-gnueabihf-gcc -Wall -I../../common/inc -I../../master/inc -I/home/user/ti/ipc_3_35_01_07/linux/include -I/home/user/ti/ipc_3_35_01_07/packages -D_GNU_SOURCE   -c -o mcip_webpage_utils.o mcip_webpage_utils.c
    arm-linux-gnueabihf-gcc mcip_bmp_utils.o mcip_master_main.o mcip_mem_mgmt.o mcip_process.o mcip_webpage.o mcip_webpage_utils.o -o ../../master/image_processing_master.out -lpthread -L/home/user/ti/ipc_3_35_01_07/linux/src/transport/\.libs -ltitransportrpmsg -L/home/user/ti/ipc_3_35_01_07/linux/src/api/\.libs -ltiipc -L/home/user/ti/ipc_3_35_01_07/linux/src/utils/\.libs -ltiipcutils
    /home/user/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -ltitransportrpmsg
    /home/user/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -ltiipc
    /home/user/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -ltiipcutils
    collect2: error: ld returned 1 exit status
    make[1]: *** [../../master/image_processing_master.out] Error 1
    make[1]: Leaving directory `/home/user/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/master/src'
    make: *** [all] Error 2
    user@ubuntu:~/ti/mcsdk_bios_3_01_03_06/demos/image_processing/ipc/evm66ak2e/master$

    Regards,
    Kazu

  • Hi kazu,

    Make sure you built the complete IPC package and generated the libraries such as ltitransportrpmsg, ltiipc. After generating those libraries, give the path of the folder where the library resides in the make file like below.

    In makefile:

    SIPC_LINUX_DIR := /opt/ti/ipc_3_35_01_07/examples/TCI6638_linux_elf/ex44_compute_bkp/lib

    CROSS_COMPILE ?= arm-linux-gnueabihf-
    CC := $(CROSS_COMPILE)gcc
    CFLAGS := -Wall -I$(COMMON_INC) -I$(MASTER_INC) -I$(IPC_INSTALL_DIR)/linux/include -I$(IPC_INSTALL_DIR)/packages -D_GNU_SOURCE

    LFLAGS := -lpthread -L$(SIPC_LINUX_DIR)/ -ltitransportrpmsg -L$(SIPC_LINUX_DIR)/ -ltiipc -L$(SIPC_LINUX_DIR)/ -ltiipcutils


    ----

    After I modified like above, able to built the master code successfully. Try and get back to me ; Curious to know how it goes for you....


    ------