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.

CCSV4 project with external makefile

Hi,

 

Is it possible to create a new project under CCSv4.2 and use an existing makefile provided by 3rd party?

1) In case the makefile is based on TI gmake (that comes with CCSv4)?

2) in case it is based on gnu make?

 

thanks and regards

  • Claudio,

    Yes, it is possible if you create a Standard Make project (menu File --> New --> Standard Make). Please check the links below that contain additional details on how to use cross compilers with CCS:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/CCSv4/Demos/ccs4-std_make.htm

    http://processors.wiki.ti.com/index.php/GCC_-_Create_a_project

    Hope this helps,

    Rafael

  • thanks rafael,

     

    Following steps given in

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/CCSv4/Demos/ccs4-std_make.htm

    I am not able to build since in the makefile the project root dir is relative

    defined as

    ROOT_DIR = ..\..\..\..

    and all source / libraries path are given regarded with macro.

    But it seems it is not seen from CCS.Even if I defined a environment macro to define root directory.

    Is there another way to do so?

     

  • Claudio,

    Depending on the environment where the original project was designed for, the makefile utility will use specific syntax to expand the environment variable.

    For example, my makefile was designed to be built in a DOS/Windows environment and the variable ROOT_DIR was expanded perfectly when my makefile used it as %ROOT_DIR%. Also, any paths with spaces must be enclosed between double-quotes. This is all DOS/Windows command-line syntax.

    Do you have a snipped of the makefile and the output that is causing the issue?

    Cheers,

    Rafael

     

  • rafael,

     

    the malefile has been designeed to work with ccsv4.2 under win32.

    I have tried it with the command line and it is ok.

    Here I attach the makefile and the build log

    In this case the makefile is in one rpository but source are in another.

    I have tried to used a macro defining the ROOT_DIR env variable, and import it as for ccsv4 project but in vain.

    I have also tried to  manually  force the definition bit it is not ok.

    I have also try to manuallay assign the build directory value but without effect.

    It sounds from the build console that the directory seen by ccs is the one for the workspace

    8132.build.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    gmake all
    echo Compiling
    Compiling
    "%CG_TOOL_DIR%/bin/cl470" -mv7M3 --define="xdc_target_types__= ti/targets/std.h" --define="xdc_target_name__= TMS470" --define=HOSTCORTEXM3_OMAP4 --define=_ENABLE_BOOTING_ --define="xdc_target_types__= ti/targets/std.h" --diag_warning=225 --display_error_number -me --enum_type=packed --elf --gen_func_subsections --abi=eabi --signed_chars --diag_warning=225 --diag_warning=167 --diag_warning=14 --diag_warning=48 --diag_warning=69 --diag_warning=77 --diag_warning=97 --diag_warning=112 --diag_warning=129 --diag_warning=169 --diag_warning=172 --diag_warning=173 --diag_warning=174 --diag_warning=188 --diag_warning=190 --diag_warning=232 --diag_warning=239 --diag_warning=303 --diag_warning=383 --diag_warning=452 --diag_warning=515 --diag_warning=551 --diag_warning=552 --diag_warning=682 --diag_warning=1107 --diag_warning=1116 --diag_warning=1311 --obj_directory="..\..\..\..\client\build\TestAppOmap4\obj" --symdebug:none -O3 --include_path="%CG_TOOL_DIR%\include" --include_path="%HDVICP2_INSTALL_DIR%\inc" --include_path="%XDCROOT%\packages" --include_path="%FC_INSTALL_DIR%\fctools\packages\ti\xdais" --include_path="%FC_INSTALL_DIR%\fctools\packages" --include_path="%FC_INSTALL_DIR%\packages\ti\xdais" --include_path="%FC_INSTALL_DIR%\packages" --include_path="..\..\..\..\client\test\inc" --include_path="..\..\..\..\inc" --include_path="%CSP_INSTALL_DIR%\" --include_path="%CSP_INSTALL_DIR%\csl_soc" --include_path="%CSP_INSTALL_DIR%\csl_ivahd"
    >> ERROR: no source files, nothing to do
    echo Finished
    Finished
    echo Compiling
    Compiling
    "%CG_TOOL_DIR%/bin/cl470" -mv7M3 --define="xdc_target_types__= ti/targets/std.h" --define="xdc_target_name__= TMS470" --define=HOSTCORTEXM3_OMAP4 --define=_ENABLE_BOOTING_ --define="xdc_target_types__= ti/targets/std.h" --diag_warning=225 --display_error_number -me --enum_type=packed --elf --gen_func_subsections --abi=eabi --signed_chars --diag_warning=225 --diag_warning=167 --diag_warning=14 --diag_warning=48 --diag_warning=69 --diag_warning=77 --diag_warning=97 --diag_warning=112 --diag_warning=129 --diag_warning=169 --diag_warning=172 --diag_warning=173 --diag_warning=174 --diag_warning=188 --diag_warning=190 --diag_warning=232 --diag_warning=239 --diag_warning=303 --diag_warning=383 --diag_warning=452 --diag_warning=515 --diag_warning=551 --diag_warning=552 --diag_warning=682 --diag_warning=1107 --diag_warning=1116 --diag_warning=1311 --obj_directory="..\..\..\..\client\build\TestAppOmap4\obj" --symdebug:none -O3 --include_path="%CG_TOOL_DIR%\include" --include_path="%HDVICP2_INSTALL_DIR%\inc" --include_path="%XDCROOT%\packages" --include_path="%FC_INSTALL_DIR%\fctools\packages\ti\xdais" --include_path="%FC_INSTALL_DIR%\fctools\packages" --include_path="%FC_INSTALL_DIR%\packages\ti\xdais" --include_path="%FC_INSTALL_DIR%\packages" --include_path="..\..\..\..\client\test\inc" --include_path="..\..\..\..\inc" --include_path="%CSP_INSTALL_DIR%\" --include_path="%CSP_INSTALL_DIR%\csl_soc" --include_path="%CSP_INSTALL_DIR%\csl_ivahd"
    >> ERROR: no source files, nothing to do
    echo Finished
    Finished
    echo Compiling
    Compiling
    "%CG_TOOL_DIR%/bin/cl470" -mv7M3 --define="xdc_target_types__= ti/targets/std.h" --define="xdc_target_name__= TMS470" --define=HOSTCORTEXM3_OMAP4 --define=_ENABLE_BOOTING_ --define="xdc_target_types__= ti/targets/std.h" --diag_warning=225 --display_error_number -me --enum_type=packed --elf --gen_func_subsections --abi=eabi --signed_chars --diag_warning=225 --diag_warning=167 --diag_warning=14 --diag_warning=48 --diag_warning=69 --diag_warning=77 --diag_warning=97 --diag_warning=112 --diag_warning=129 --diag_warning=169 --diag_warning=172 --diag_warning=173 --diag_warning=174 --diag_warning=188 --diag_warning=190 --diag_warning=232 --diag_warning=239 --diag_warning=303 --diag_warning=383 --diag_warning=452 --diag_warning=515 --diag_warning=551 --diag_warning=552 --diag_warning=682 --diag_warning=1107 --diag_warning=1116 --diag_warning=1311 --obj_directory="..\..\..\..\client\build\TestAppOmap4\obj" --symdebug:none -O3 --include_path="%CG_TOOL_DIR%\include" --include_path="%HDVICP2_INSTALL_DIR%\inc" --include_path="%XDCROOT%\packages" --include_path="%FC_INSTALL_DIR%\fctools\packages\ti\xdais" --include_path="%FC_INSTALL_DIR%\fctools\packages" --include_path="%FC_INSTALL_DIR%\packages\ti\xdais" --include_path="%FC_INSTALL_DIR%\packages" --include_path="..\..\..\..\client\test\inc" --include_path="..\..\..\..\inc" --include_path="%CSP_INSTALL_DIR%\" --include_path="%CSP_INSTALL_DIR%\csl_soc" --include_path="%CSP_INSTALL_DIR%\csl_ivahd"
    >> ERROR: no source files, nothing to do
    echo Finished
    Finished
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

     

    makefile:

    8611.makefile.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    #
    #*******************************************************************************
    # HDVICP2.0 Based JPEG Encoder
    #
    # "HDVICP2.0 Based JPEG Encoder" is software module developed for
    # TI's HDVICP2 based SoCs. This module is capable of encoding a raw image
    # by compressing it into a JPEG bitstream compliant with ISO/IEC IS 10918-1.
    # Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
    # ALL RIGHTS RESERVED
    #*******************************************************************************
    #
    #
    #******************************************************************************
    # @file makefile
    #
    # @brief This file contains all make rules required for compiling/building
    # test application
    #
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    regards

  • hi,

     I reopen this thread since it sounds it is no more supported to open a standard makefile on CCSV5.1.

    Clickingthe File/New menu the Option to create a project with standard makefile is not shown.

    What is the new procedure to do so?

    regards

  • Claudio,

    You can use the option Makefile project with Existing Code (if you already has a Makefile created) or create a new one from scratch. Check:

    http://processors.wiki.ti.com/index.php/How_to_create_GCC_projects_in_CCSv5

    Hope this helps,

    Rafael

  • rafael,

     yes  I have tried the solution with New Makefile project with Existing Code. (this option is in fact under the "Other" sub-menu. I didn't see it.

    But which tools to select if the makefile is refering to the TI gmake (the one that comes with ccsv5 installation)?

    I ve got following  include dir file by default. they are refering to a CYGWIN install.


    When trying to build  Ihave following error:

    C:\TI\CCS\ccsv5\utils\bin\gmake all
    echo Compiling 
    Compiling
    %CG_TOOL_DIR%\bin\cl470  -g -mv7M3 --define="xdc_target_types__= ti/targets/std.h" --diag_warning=225 -me --enum_type=packed --elf --gen_func_subsections --abi=eabi --signed_chars --obj_directory="..\..\..\utils\fileio\build\Obj" --define="FILEIO_RTSC" --include_path="%CG_TOOL_DIR%\include" --include_path="%FC_INSTALL_DIR%\fctools\packages" --include_path="..\..\..\utils\fileio\inc" --include_path="%XDCROOT%\packages"
    /cygdrive/c/DOCUME~1/a0919458/LOCALS~1/Temp/make168-1.sh: line 1: fg: no job control
    gmake: *** [..\..\..\utils\fileio\build\Obj\h264enc_ti_file_io.obj] Error 1


    any clue?

     

    rgds

  • Claudio,

    Not quite sure if I understand what is going on. Did you create a project for MingW GCC Project (menu File --> New --> Project --> Makefile) so these include directories show up? 

    The reason of my question is that I could create a Makefile project with Existing code by going to menu File --> New --> Project --> C/C++.

    The only issue I had is that by default it tries to use "make". You can change it to gmake or any other make tool you want by opening the project properties and changing the build behaviour. Check the screenshot below:

    Can you try to create the project this way and see if you built it successfully?

    Cheers,

    Rafael

  • hi rafael,

     I want to compile a project  Ireceived from a 3rd party: this project is composed of a makefile (using gmake) and some source files.and run on omap4 plateform

    So I want to use the gmake tools as described in the tutorial.

    So as I understand, If I do a File /New/Others/c c++/Makefile project with Existing code

    than  I have the erorr reported above.It sounds the gmake from TI is not used even if I explicitly select this one with the full path

    That is true I have installed MinGW under eclipse sometimes ago, but It was for an independant eclipse environement.

    I will try to desinstall it .to see is some environement variable are not correctly set

    rgds

     


  • Claudio,

    From the output you sent, gmake is clearly running. The issue seems to be either inside the third party's makefile or, as you said, in an alias set in the environment - the script error in the temp directory under /cygdrive. 

    output said:

    C:\TI\CCS\ccsv5\utils\bin\gmake all
    echo Compiling
    Compiling
    %CG_TOOL_DIR%\bin\cl470 -g -mv7M3 --define="xdc_target_types__= ti/targets/std.h" --diag_warning=225 -me --enum_type=packed --elf --gen_func_subsections --abi=eabi --signed_chars --obj_directory="..\..\..\utils\fileio\build\Obj" --define="FILEIO_RTSC" --include_path="%CG_TOOL_DIR%\include" --include_path="%FC_INSTALL_DIR%\fctools\packages" --include_path="..\..\..\utils\fileio\inc" --include_path="%XDCROOT%\packages"
    /cygdrive/c/DOCUME~1/a0919458/LOCALS~1/Temp/make168-1.sh: line 1: fg: no job control
    gmake: *** [..\..\..\utils\fileio\build\Obj\h264enc_ti_file_io.obj] Error 1

    One detail, though: when I create a project for Makefile with existing code, no include directories show up in the project Explorer view (check my screen capture), therefore I wonder if there is something wrong during the project creation or even with the CCS version. Which one are you using? I am using M7 (CCSv5.1.0.07000).

    Regards,

    Rafael

  • rafael,

    Yes I have ccsv5.1 M7.

    I have desintalled MinGW but issue is persisting..

    rgds