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.

An erro occurred when I compile the dsp-link in Android environment

Other Parts Discussed in Thread: OMAP3530

Hi:

I want to transplant the DSP to my devkit8500 board with Android. I download the dvsdk_dm3730-evm_4_01_00_09_setuplinux, and put it in the "rowboat-android-froyo-devkit8500/external/ti-dsp" path. Also I add the rowboat.mk to my android source code, and edit some other codes to make it run.

when I run "make" in the rowboat-android-froyo-devkit8500 path, it began to compile the android souce code, compile the linux kernal, and it  also installed  dvsdk_dm3730-evm_4_01_00_09_setuplinux in the ti-dsp path, then it showed :

make[2]: Entering directory `/home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09'
DSPLINK=/home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09/dsplink_1_65_00_02/dsplink \
perl /home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09/dsplink_1_65_00_02/dsplink/config/bin/dsplinkcfg.pl \
--platform=OMAP3530 --nodsp=1 --dspcfg_0=OMAP3530SHMEM \
--dspos_0=DSPBIOS5XX --gppos=OMAPLSP --comps=ponslrmc

Welcome to DSP/BIOS(TM) Link Configuration Utility
------------------------------------------------------

!!DSPLINK will be configured for Build OS: LINUX!!

!!DSPLINK Directory : /home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09/dsplink

...........

.............

...........

Then I think I come into a step to compile the dvsdk. After many messege I got an erro:

-I/home/embest/work/rowboat-android-froyo-devkit8500/bionic/libm/arch/arm/include -I/home/embest/work/rowboat-android-froyo-devkit8500/bionic/libthread_db/include -D_REENTRANT -DTRACE_USER -DDDSP_DEBUG -DKBUILD_BASENAME=_sync_usr -o/home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09/dsplink_1_65_00_02/dsplink/gpp/BUILD/API/OBJ/DEBUG/_sync_usr.o _sync_usr.c
_sync_usr.c:51:21: error: sys/sem.h: No such file or directory
_sync_usr.c: In function '_SYNC_USR_init':
_sync_usr.c:245: warning: implicit declaration of function 'semget'
_sync_usr.c:258: warning: implicit declaration of function 'semctl'
_sync_usr.c:258: error: 'SETVAL' undeclared (first use in this function)
_sync_usr.c:258: error: (Each undeclared identifier is reported only once
_sync_usr.c:258: error: for each function it appears in.)

...........

...........

.........

_sync_usr.c:572: warning: (near initialization for 'sb')
_sync_usr.c:572: error: storage size of 'sb' isn't known
make[5]: *** [_sync_usr.c.deb] Error 1
make[5]: Leaving directory `/home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09/dsplink_1_65_00_02/dsplink/gpp/src/api/Linux'
make[4]: *** [objdeb] Error 2
make[4]: Leaving directory `/home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09/dsplink_1_65_00_02/dsplink/gpp/src/api'
make[3]: *** [api.objdeb] Error 2
make[3]: Leaving directory `/home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09/dsplink_1_65_00_02/dsplink/gpp/src'
make[2]: *** [dsplink_arm] Error 2
make[2]: Leaving directory `/home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp/ti-dvsdk_dm3730-evm_4_01_00_09'
make[1]: *** [dvsdk] Error 2
make[1]: Leaving directory `/home/embest/work/rowboat-android-froyo-devkit8500/external/ti-dsp'
make: *** [dvsdk] Error 2

I don't kown why it can not find sem.h. In the head of _sync_usr.c there are other .h, but it have no erro ,why sem.h??

Can someone give me some help? If you need more info to help me fix the problem ,please let me konw ,I'll give you as soon as possible .