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.

RTOS/TDA2: Build eve host emulation failed

Part Number: TDA2


Tool/software: TI-RTOS

Hi,

I met error when I build eve host emulation with command "gmake TARGET_BUILD=PC". The error information is as below,

...

--> error: cannot open archive: 'lib/PC/libeveprivkernels.eve.lib'

..

I build successfully when I build target version with command "gmake TARGET_BUILD=debug".

If anyone can help?

Thanks!

BRs

Yang Derek

 

  • Hi
    For host emulation you have to build using following command :

    gmake TARGET_PLATFORM=PC

    Regards,
    Anshu
  • Hi Anshu,

    Sorry for making you confused. I built with the command "gmake TARGET_PLATFORM=PC". It was typo error in the question.

    Thanks!

    Best Regards,

    Derek Yang 

  • Hi Derek, 

       Are you trying to build EVE SW delivered by TI or have you made any modifications. The host emulation libraries are available at following location :

    <EVESW>\kernels\lib\release\libevekernels.eve.lib_pc.lib 

       But the error message you are sharing a different path:

    'lib/PC/libeveprivkernels.eve.lib

      
      Can you check why it is looking at different path?

    Regards,

    Anshu

      

  • Hi Derek,
    Were you able to make progress on this? If not then do let us know.

    Regards,
    Anshu
  • Hi Anshu,

    Thanks for your reply.

    I still don't enable the emulation successfully. When I build with "gmake TARGET_PLATFORM=PC" in my windows laptop, I meet error "LINK : fatal error LNK1104: cannot open file 'D:\PROCESSOR_SDK_VISION_03_05_00_00\ti_components\algorithms\REL.DMAUTILS.00.08.00.02\dmautils/libs/PC/eve/debug/dmautils.lib'". I checked my installing dir. There is no this dir. Would you please help to share the "PC/eve/debug/dmautils.lib'"?

    Thanks!

    BRs

    Yang Derek

  • Hi Anshu,
    The error happens when I build in my Linux develop machine. I build under directory "ti_components\algorithms\eve_sw_01_19_00_00". I only change a filter kernel. And don't change others. If the emulation is only supported in Windows?
    Thanks!

    BRs
    Yang Derek
  • Hi Anshu,
    Actually, I want to check what is the output when I compare two vectors. For example, if I set vector a = [0xfff0, 0xfff1, 0xfff2, 0xfff3, 0xfff4, 0xfff5, 0xfff6, 0xfff7]; vector b = [0xfff1, 0xff01, 0xff02, 0xffff, 0xff01, 0xff02, 0xffff, 0xffff ], what is the result c = a > b ? If it is [0, 1, 1,0, 1, 1, 0, 0 ] ?
    Thanks a lot!

    BRs
    Yang Derek
  • Hi Derek,
    I am a bit confused whether you are facing issue in windows build or linux build. In previous response you mentioned that you are building in windows and getting following error :

    D:\PROCESSOR_SDK_VISION_03_05_00_00\ti_components\algorithms\REL.DMAUTILS.00.08.00.02\dmautils/libs/PC/eve/debug/dmautils.lib'". I checked my installing dir. There is no this dir. Would you please help to share the "PC/eve/debug/dmautils.lib'"?

    If the above library is not already present then you might have to re-build it.
    For host emulation you will need to build DMA Utils in host emulation using Visual Studio compiler. Please refer docs/DMAUtilsLibrary_UserGuide section 3.3.3 for the same.

    Currently we don't support host emulation build on Linux.

    Regards,
    Anshu
  • Hi Derek,
    Please create new threads for different queries.
    Comparison operation does an element wise comparison of all the 8 elements of the vectors and returns a vector holding the comparison for each elements of the vector.

    Regards,
    ANshu
  • Hi Anshu,

    Thanks for your reply.

    I tried in Linux first and failed. In eve guide, I find guide eve_sw_getting_started mentions the emulation is supported with Visual Studio. Then I tried it in Windows.

    I will try to rebuild DMA Utils.

    Thanks!

    Best Regards,

    Derek Yang  

  • Hi Anshu,
    Thanks for your reply. I have created a new question to follow the compare question.

    Best Regards,
    Derek Yang
  • Hi Anshu,
    I rebuild DMA Utils and algframework. The build comes to next step. There is one test app build successfully, apps/morphology/test. But the other apps build fail. The error information is as following.
    ...
    ======== Integral Image TEST =================
    gmake -C ./integralImage/test -f makefile
    gmake[2]: Entering directory `D:/PROCESSOR_SDK_VISION_03_05_00_00/ti_components/algorithms/eve_sw_01_19_00_00/apps/integralImage/test'
    algframework.lib(bam_utils.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in integral_image_test.obj
    algframework.lib(bam_utils.obj) : error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP110D.dll)
    algframework.lib(bam_utils.obj) : error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP110D.dll)
    ...

    Here is the path configure of my algframework.
    ...
    DSP_TOOLS ?="D:\ti\ccsv5\tools\compiler\c6000_7.4.4"
    ARP32_TOOLS ?="D:\PROCESSOR_SDK_VISION_03_05_00_00\ti_components\cg_tools\windows\arp32_1.0.7"
    TIARM_TOOLS ?="D:\PROCESSOR_SDK_VISION_03_05_00_00\ti_components\cg_tools\windows\ti-cgt-arm_16.9.2.LTS"
    XDAIS_PATH ?="D:\ti\xdais_7_21_01_07"
    UTILS_PATH ?="D:\ti\ccsv5\utils\cygwin"
    VXLIB_PATH ?="D:\work\DSP\vxlib"
    DMAUTILS_PATH ?=$(ALGBASE_PATH)/dmautils
    ALGFRAMEWORK_PATH ?=$(ALGBASE_PATH)/algframework
    ...
    Path configure of eve.
    ...
    ARP32_TOOLS ?= "D:\PROCESSOR_SDK_VISION_03_05_00_00\ti_components\cg_tools\windows\arp32_1.0.7"
    xdais_PATH ?= "D:\ti\xdais_7_21_01_07"
    DMAUTILS_PATH ?= "D:\PROCESSOR_SDK_VISION_03_05_00_00\ti_components\algorithms\REL.DMAUTILS.00.08.00.02\dmautils"
    ...

    Do you have any suggestion?

    Best Regards,
    Yang Derek
  • Derek,
    Which version of visual studio you are using? Building host emulation for these modules requires Microsoft Visual Studio 11.0 (2012).

    Regards,
    Anshu
  • Hi Anshu,
    I use "Microsoft Team Explorer for Visual Studio 2012". In my installing directory, PROCESSOR_SDK_VISION_03_05_00_00, there are three tools,
    arp32_1.0.7, C6000_7.4.2, ti-cgt-arm_16.9.2.LTS in D:\PROCESSOR_SDK_VISION_03_05_00_00\ti_components\cg_tools\windows. There other tools, XDAIS_PATH, UTILS_PATH, are installed separately.
    Do you have any other suggestion?

    Best Regards,
    Derek Yang
  • Derek,
    As asked earlier, can you tell which version of Microsoft visual studio compiler you are using?

    Regards,
    Anshu
  • Derek,
    Can you share the following file present inside algframework : (makesrules/rules.mk)?

    Regards,
    Anshu
  • Hi Anshu,
    I use "Microsoft Visual Studio Express 2012 for Windows Desktop version 11.0.50727.42"
  • Hi Anshu,

    Here is the rules.mk under algframework directory.

    Thanks!

    BRs

    Derek Yangrules.mk.123

  • Hi Derek,
    What is the version of algframework which you are using? For now can you just change the following two lines in algframework and rebuild it again?

    Change Line 156 :
    COMPILER_FLAGS += /EHsc /TP /W0 /DHOST_EMULATION /c /nologo /Ox /D_NDEBUG /MT /Gm /Zi /D_HOST_BUILD /D_HAS_ITERATOR_DEBUGGING=0 /D_ITERATOR_DEBUG_LEVEL=0

    to

    COMPILER_FLAGS += /EHsc /TP /W0 /DHOST_EMULATION /c /nologo /Ox /D_NDEBUG /MD /Gm /Zi /D_HOST_BUILD /D_HAS_ITERATOR_DEBUGGING=0 /D_ITERATOR_DEBUG_LEVEL=0

    Change Line 160 :
    COMPILER_FLAGS += /EHsc /TP /W0 /DHOST_EMULATION /c /nologo /Od /D_DEBUG /MTd /Gm /Zi /RTC1 /D_HOST_BUILD

    to

    COMPILER_FLAGS += /EHsc /TP /W0 /DHOST_EMULATION /c /nologo /Od /D_DEBUG /MDd /Gm /Zi /RTC1 /D_HOST_BUILD


    Regards,
    Anshu
  • Hi Anshu,
    My algframework is "REL.ALGFRAMEWORK.02.08.00.00". It is installed when I install sdk "PROCESSOR_SDK_VISION_03_05_00_00". I will try your suggestion later.
    Thanks!

    Best Regards,
    Derek Yang
  • Hi Anshu,

    I build successfully after changing rules.mk according to your suggestion. Why change this?

    Thanks a lot!

    Best Regards,

    Derek Yang

  • Hi Derek,

       The release number of algframework which you mentioned is expected to use /Md and /MDd flags. The change to /MT flag was done in a later release. So I need to check the two are different.

    Regards,

    Anshu