mercredi 1 août 2018

Introspection in C++

 

A useful beginner video from handmade hero which implements a quick way to start adding reflection to your c++ project.

You parse the C++ structure with you custom parser. This means it is a add hoc solution (you don't want to support everything c++ syntax can throw at you) but it is sufficient in 99% of the case where you need reflection in your project.

See: https://www.youtube.com/watch?v=1IwYEJsvdcs

 Using private Github repos with Yocto

 Really useful for bitbake builds !

Make sure you have SSH keys for Github setup so that you can do this from a command line on the build machine
git clone git@github.com:scottellis/private-repo.git
You should run that clone command at least once. If the github server keys are new you’ll need to answer the prompt from ssh to accept the new key. If this happens when running bitbake the process will hang on the fetch stage.
The SRC_URI to use in the bitbake recipe is
SRC_URI="git://git@github.com/scottellis/private-repo.git;protocol=ssh" 

Sources:
This comes in its entirety from http://www.jumpnowtek.com/yocto/Yocto-and-Github-private-repos.html