I created "plugin_loader.cmake" file with the following content, add_external_plugin(/Users/xxx/.gvm/pkgsets/go1.5/heka-input/src/github.com/<company>/heka-input :local)
source build.sh gave the following error. CMake Error at cmake/plugin_loader.cmake:1 (add_external_plugin): add_external_plugin Function invoked with incorrect arguments for function named: add_external_plugin Please help, thanks! Emily On Wed, Jan 6, 2016 at 1:53 PM, Emily Gu <77.e...@gmail.com> wrote: > Thanks Rob for your quick response. > > I used "git clone..." to clone the Mozilla Heka under my gvm pkgset > src/github/mozilla-service directory. Then ran "source build.sh" and "make > install". In my own project, when I reference > > "github.com/mozilla-services/heka/pipeline" > > It gave the error. > > Were you saying that I need to register my project in Heka in order for me > to reference its libs? Is it in this file? > > "heka/cmake/externals.cmake" > > There is no "plugin_loader.cmake". As my project is not checked into > github yet, can I do this: > > add_external_plugin(<path to my project> :local) > > Thanks, > > Emily > > > On Wed, Jan 6, 2016 at 11:34 AM, Rob Miller <rmil...@mozilla.com> wrote: > >> Not sure how you're trying to compile Heka. The recommended way, as noted >> in the docs ( >> http://hekad.readthedocs.org/en/v0.10.0/installing.html#building-hekad-with-external-plugins), >> is to put your code in an `externals` folder and add a >> `cmake/plugin_loader.cmake` file that uses the special `:local` tag to >> specify that your package is on your local hard drive. Then `. build.sh` >> (and `make`, after the environment is sourced) will work. >> >> If you know what you're doing the go tools can be used, but you have to >> make sure the GOPATH environment is set up correctly, which you can do by >> running `. env.sh` from the Heka repo root directory. >> >> -r >> >> >> On 01/06/2016 11:14 AM, Emily Gu wrote: >> >>> Dear Hekas, >>> >>> I'm writing a Heka plugin for our project. After clone Heka master and >>> follow the installation instruction to build it, I got the following >>> compilation error when import "github.com/mozilla-services/heka/pipeline >>> <http://github.com/mozilla-services/heka/pipeline>" in myplugin.go file. >>> >>> # github.com/mozilla-services/heka/message >>> <http://github.com/mozilla-services/heka/message> >>> >>> ../../../mozilla-services/heka/message/message_matcher.go:21: undefined: >>> tree >>> >>> It blocks my work. Your timely help is greatly appreciated. >>> >>> Thanks, >>> >>> Emily >>> >>> >>> >>> _______________________________________________ >>> Heka mailing list >>> Heka@mozilla.org >>> https://mail.mozilla.org/listinfo/heka >>> >>> >> >
_______________________________________________ Heka mailing list Heka@mozilla.org https://mail.mozilla.org/listinfo/heka