Hi,
I want to change my CCSV5.1 project build directory /Debug from just under project directory to /build/Debug or /build/Release under my project directory. Can some experts tell me how to do that?
Thanks,
Zhao
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.
Hi,
I want to change my CCSV5.1 project build directory /Debug from just under project directory to /build/Debug or /build/Release under my project directory. Can some experts tell me how to do that?
Thanks,
Zhao
Hi Zhao,
You can control where generated files like *.obj go in the project properties and in the properties dialog go to 'Build -> <ISA> Compiler -> Advanced Options -> Directory Specifier'. Change the Mode to 'manual' and you can then add choose custom locations for the compiler output.
You can also do this for the linker so you *.out file goes to the location you wish: 'Build -> <ISA> Linker -> Basic Options'
Thanks
ki
Thanks Ki,
What is <ISA>? I could change all the options manually in "Directory Specifier" to Project_Dir/build/Debug, but I still get the Porject_Dir/Debug created since /configPkg and /lib will still be directed to under Project_Dir/Debug directory. I need to direct everything from Project_Dir/Debug to Porject_Dir/build/Debug. And I would like to do the same for/Release directory to go under Project_Dir/build. This way my directory tree looks nice for version control.
Under property page, there is a C/C++ Build sub page, it has "Build location" grayed out. If I uncheck "Generate Makefiles automatically", then I could change this Build location, but the build will fail for some reason and it complains there is no rules to make "all".
Can we get a simple solution on this? I look forward to hearing from you.
Zhao
Zhao Li said:What is <ISA>?
Instruction Set Architecture. Like C2000, C6000, MSP430, etc. You didn't specify what device you are using so I just left it variable.
Zhao Li said:I need to direct everything from Project_Dir/Debug to Porject_Dir/build/Debug.
As far as i know, there will always be some files generated in the Project_Dir/Debug folder that you can't control. Like the generated makefiles. configPkg I think is from BIOS and you may be able to configure that through the BIOS settings.
Zhao Li said:Under property page, there is a C/C++ Build sub page, it has "Build location" grayed out. If I uncheck "Generate Makefiles automatically", then I could change this Build location, but the build will fail for some reason and it complains there is no rules to make "all".
If you are using a CCS Project, you should leave that option alone. CCS needs to generate makefiles that are used for the build.
ki
Zhao Li said:Maybe next CCS release will allow users to change this directories.
Your request is one that i have seen before. I thought there were plans to address this so perhaps it is coming in a future release. I'll try to get an update for you.
This is a problem I faced a few months ago. Has anyone heard anything back about using the auto makefile feature and allowing the user to specify their own output directories? One work around is to create a post build step that copies the contents of the Debug directory to the directory of your choosing, then deletes the original Debug directory.
I have just the same now... It is very nasty that we can't control the "trash" directory for the compilation... Now it makes Release / Debug directories in the root of my repository... I will cry soon... TI please make this for us... Or just let us know how to do it. I think that coping is not a good idea, as the CCS will always regenerate the directory...