multi_thread problem

Message boards : Server programs : multi_thread problem
Message board moderation

To post messages, you must log in.

AuthorMessage
VThompson

Send message
Joined: 16 Feb 16
Posts: 11
United States
Message 70162 - Posted: 13 Jun 2016, 18:20:53 UTC

Still being new to BOINC and able to get the example_app to work properly, I was going to remove example_app and activate the multi_thread app. initially the server engineer had some problems, so he ended up redoing a lot of my work which included getting example_app to work. So I may have missed a step in getting the application to function properly.

So I have edited the project.xml and included the necessary lines for the multi_thread. I used appmgr to remove example_app. I created the folder structure under PROJECT/apps for multi_thread and a subfolder for version number. When i run xadd it sees the addition to the project.xml file, and when I run update_versions it seems to run fine.

The problem is that when I look in /apps/example_app I see a generated folder for the windows platform and an .exe file. However nothing like that is generated in the /apps/multi_thread folder. I'm assuming I'm missing a step here, although all the docs i can find only talk about project.xml, xadd, and update_versions. Can someone tell me what I'm missing?
Many thanks!
ID: 70162 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 700
Finland
Message 70164 - Posted: 13 Jun 2016, 19:07:42 UTC - in response to Message 70162.  

When you create the project with --test_app, the make_project script adds the example_app program files for Windows and Linux and maybe OSX too. This is so that you have a working BOINC project almost out-of-box.

When you add your own application you need to create the directories yourself for the platforms you intend to support. The cookbook tutorial skips over details, you should check Adding application versions for better explanation of how the apps directory hierarchy works.
ID: 70164 · Report as offensive
VThompson

Send message
Joined: 16 Feb 16
Posts: 11
United States
Message 70179 - Posted: 14 Jun 2016, 13:08:22 UTC - in response to Message 70164.  

Juha,
thanks for the reply. The link you sent helps some. I have the folder structure as outlined now.

However i guess my bigger question is - what's the easiest/best way to compile the multi_thread source files? I know I need the executable files in place before i run the update_versions command, so I haven't done that yet. Where's Make or the C++ compiler or proper procedure?

thanks for the help
ID: 70179 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 700
Finland
Message 70189 - Posted: 14 Jun 2016, 17:55:19 UTC - in response to Message 70179.  

The source directory has a makefile for Linux and win_build directory has solution/project files for Visual Studio 2010 and 2013. I couldn't find a makefile or Xcode project file for Mac. It's probably easy to do one yourself; just use the example_app project or makefile as a sample.

Building BOINC applications has more instructions.
ID: 70189 · Report as offensive
VThompson

Send message
Joined: 16 Feb 16
Posts: 11
United States
Message 70192 - Posted: 14 Jun 2016, 18:37:14 UTC - in response to Message 70189.  

Thanks again for the help Juha. Much appreciated.
ID: 70192 · Report as offensive

Message boards : Server programs : multi_thread problem

Copyright © 2017 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.