build libraries then copy them to chtc