Message boards : Server programs : Compile server daemon
Message board moderation
Author | Message |
---|---|
Send message Joined: 18 Apr 08 Posts: 3 |
Hi everybody, i have written work generator daemon, but I can't link it with boinc's library. Who can help me write makefile to compile it? I use sample_work_generator.C is the template to write. Tks! |
Send message Joined: 12 Feb 06 Posts: 232 |
mumble wrote: Hi everybody, i have written work generator daemon, but I can't link it with boinc's library. Who can help me write makefile to compile it? I use sample_work_generator.C is the template to write. The easiest thing to do would be to edit the Makefile in that directory and make a copy of the entry for sample_work_generator. That will take care of all the BOINC library linkages. If it still won't build, work from there. -- Eric Myers "Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats |
Send message Joined: 18 Apr 08 Posts: 3 |
mumble wrote:Hi everybody, i have written work generator daemon, but I can't link it with boinc's library. Who can help me write makefile to compile it? I use sample_work_generator.C is the template to write. The makefile of sched folder is very complex so i can't understand what sample_work_generator must link to. Besides link to boinc's library, my work_generator daemon also link my application's library. I don't know how to edit the available makefile in sched folder to compile it. |
Send message Joined: 19 Jan 07 Posts: 1179 |
The makefile of sched folder is very complex Edit Makefile.am, then re-run _autosetup and configure which will re-generate the (complex) makefile from the .am. |
Send message Joined: 12 Feb 06 Posts: 232 |
Eric Myers wrote:
to which mumble wrote:
All you would have to do for this approach is a global search/replace, changing "sample_work_generator" to "my_work_generator", and add your own library to the link step. Then Nicolas wrote:
This is a good idea. And probably better if your work generator is more complex than a single file replacement for sample_work_generator.C, because it will be easier to see where (and how) to put in the other file dependencies. -- Eric Myers "Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats |
Send message Joined: 18 Apr 08 Posts: 3 |
The makefile of sched folder is very complex I have read some tutorials about automake and autoconf, and now i understand how to create makefile (very complex) on boinc. Thank all of you :D |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.