Preconditions: Installation of CCA, rci and rcirst. Currently this how-to is quite AMARSi-specific and you need credentials for the AMARSi Redmine.
Use git to check out the component repository.
git clone https://USERNAME@redmine.amarsi-project.eu/git/components.gitwhere USERNAME is your AMARSi Redmine credential.
Copy the component template
cd components cp -R cca-component YOURNAME cd YOURNAMEwhere YOURNAME is your component name (avoid white-spaces).
and COMPONENTDESCRIPTION of the file CMakeList.txt of your component folder.
The component template should be working out of the box. Try to build it and check the example.
cd build cmake .. make
After the project is build you should be able to execute the component example.
build/pingpong
- Adapt cmake for dependencies
- Implement component in its src/ folder
- Implement example in its bin/ folder
TODO: Dependency handling
To initially add your component to the component repository (this has to be done once), do:
git add YOURNAME git commit -m "Added component COMPONENTNAME"
where YOURNAME is your component folder and COMPONENTNAME is the name of your component.
If your component is added to the repository, you can later on push changes of your component via:
git pull origin master git add CHANGEDFILES git commit git push origin masterwhere CHANGEDFILES are all the files you changed and want to push to the repository.