Compile server daemon

Message boards : Server programs : Compile server daemon
Message board moderation

To post messages, you must log in.

AuthorMessage
mumble

Send message
Joined: 18 Apr 08
Posts: 3
Vietnam
Message 16708 - Posted: 18 Apr 2008, 9:58:21 UTC

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!
ID: 16708 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 16710 - Posted: 18 Apr 2008, 12:30:47 UTC - in response to Message 16708.  

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.
Tks!

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
ID: 16710 · Report as offensive
mumble

Send message
Joined: 18 Apr 08
Posts: 3
Vietnam
Message 16714 - Posted: 18 Apr 2008, 16:31:16 UTC - in response to Message 16710.  

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.
Tks!

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.

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.
ID: 16714 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 16720 - Posted: 18 Apr 2008, 19:43:10 UTC - in response to Message 16714.  

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.

ID: 16720 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 16721 - Posted: 18 Apr 2008, 19:54:27 UTC - in response to Message 16714.  

Eric Myers wrote:

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.

to which mumble wrote:

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.

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:

Edit Makefile.am, then re-run _autosetup and configure which will re-generate the (complex) makefile from the .am

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
ID: 16721 · Report as offensive
mumble

Send message
Joined: 18 Apr 08
Posts: 3
Vietnam
Message 16743 - Posted: 19 Apr 2008, 22:06:43 UTC - in response to Message 16720.  

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.

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
ID: 16743 · Report as offensive

Message boards : Server programs : Compile server daemon

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.