the sequence for creating one project

Message boards : API : the sequence for creating one project
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Ghabel83
Avatar

Send message
Joined: 20 Feb 13
Posts: 8
Germany
Message 50462 - Posted: 12 Sep 2013, 10:41:55 UTC

Hi ,

I want to program a normal application.
Then in the Boinc server to use to perform some work units.
I've successfully Uppercase compiliren program but when I run it on the server I get no right Reusult and credit points.
Can you please tell me how I create a different program code as Uppercase example with Boinc without error.
If you want to create a normal app yourself what you would do.
My language is German so sorry for mistakes.

thank you
Ahmad
Human beings are members of a whole,In creation of one essence and soul.
If one member is afflicted with pain,Other members uneasy will remain.
If you've no sympathy for human pain,The name of human you cannot retain!
(@Saadi Shirazi)
ID: 50462 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 14684
Netherlands
Message 50466 - Posted: 12 Sep 2013, 13:11:08 UTC - in response to Message 50462.  

You did read lots of http://boinc.berkeley.edu/trac/wiki/ProjectMain?
What is your application supposed to do? Have you thought about that>
What language do you want to make it in?
Which platform are you using to run the BOINC server on, and make the applications in?
Are you using a BOINC client to run the Upperclass application?
ID: 50466 · Report as offensive
Profile Ghabel83
Avatar

Send message
Joined: 20 Feb 13
Posts: 8
Germany
Message 50468 - Posted: 12 Sep 2013, 13:35:59 UTC - in response to Message 50466.  

First thanks for the reply.

I use Boinc VM for Server, Visual Studio 2010 for programming, Boinc Cilent for test my Projects and my apps.
I have compiled the example uppercase on my Win7 with VS2010.
I have a project in my server created with a few work units ... I used the compiled app for Uppercase. But when I connect my Boinc client to server I see the work units but after a long time come error and no result and no credit points ...
which is important when creating a project and what is important in Programmirung.
I have read many pages in WiKi and elsewhere but I do not understand whether I have done all the steps correctly. (?)
Human beings are members of a whole,In creation of one essence and soul.
If one member is afflicted with pain,Other members uneasy will remain.
If you've no sympathy for human pain,The name of human you cannot retain!
(@Saadi Shirazi)
ID: 50468 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 14684
Netherlands
Message 50469 - Posted: 12 Sep 2013, 13:37:18 UTC - in response to Message 50468.  

I have read many pages in WiKi and elsewhere but I do not understand whether I have done all the steps correctly. (?)

We don't know either, until you tell what you did.
ID: 50469 · Report as offensive
Profile Ghabel83
Avatar

Send message
Joined: 20 Feb 13
Posts: 8
Germany
Message 50473 - Posted: 12 Sep 2013, 14:12:05 UTC - in response to Message 50469.  

So I'll tell you, I have BOINC_VERSION "7.2.4" downloaded.
Boinc_Sampel solution I've opened with VS2010 and compiled once the UpperCase and once I have the Uppercase class changed and compiled.
In server I have a test project with 2 apps ersteltt (Uppercase and mynewApp).
After that I work units definiert.to here there was no problem.
Of course, I've created in my download folder in server input files.
I use PuTTY and WinSCP for communication with server.
My problem is the work units take a long time and I see no end result.
My Profile status is the work units were not processed correctly.
ID: 50473 · Report as offensive
Profile Ghabel83
Avatar

Send message
Joined: 20 Feb 13
Posts: 8
Germany
Message 50475 - Posted: 12 Sep 2013, 14:22:53 UTC - in response to Message 50469.  
Last modified: 12 Sep 2013, 14:40:18 UTC

I really want to learn this thing first:

how can I create a simple application such as Uppercase for windows platform with boinc librarys so I can later create a complicated application.
ID: 50475 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 14684
Netherlands
Message 50481 - Posted: 13 Sep 2013, 10:19:49 UTC

My knowledge of making applications is limited at best. I did ask Christian to come take a look, but it appears he's too busy with his own project(s).

Therefore, I advise you to register at and then email the BOINC Projects email list. That way other project admins on the same list will be able to help you out, and a lot quicker than that you have to wait here.
ID: 50481 · Report as offensive
Profile Ghabel83
Avatar

Send message
Joined: 20 Feb 13
Posts: 8
Germany
Message 50483 - Posted: 13 Sep 2013, 12:44:46 UTC - in response to Message 50481.  
Last modified: 13 Sep 2013, 12:46:12 UTC

These are the steps I´ve written down to create a new project (with the name "Ark").
-----10 steps---------
1:touch ~/.Ark.conf
2:chmod 600 ~/.Ark.conf
3:
cat >> ~/.bashrc <<EOBASHRC
if [ -r ~/.Ark.conf ]; then
echo "Sourcing ~/.Ark.conf"
. ~/.Ark.conf
fi
EOBASHRC
4:
cat << EODBCONFIG >> ~/.Ark.conf
pw=mysqlrootpw
dbprojectname= Ark
EODBCONFIG
5:
[ -r ~/.Ark.conf ] && . ~/.Ark.conf
6:
if ! echo "DROP USER 'boincadm'@'localhost'" | mysql -u root -p; then
echo "If the removal of the previous user fails because the user is not existing, then this does not matter. Other errors would be required a manual removal."
fi
7:
if [ -z "$dbprojectname" ]; then echo "Variable 'db' not set";
elif [ -z "$pw" ]; then echo "Variable 'pw' not set";
else
cat <<EOMYSQL | mysql -u root -pmysqlrootpw
DROP DATABASE IF EXISTS $dbprojectname;
CREATE USER 'boincadm' IDENTIFIED BY '$pw';
GRANT ALL PRIVILEGES ON $dbprojectname.* TO 'root';
EOMYSQL
fi
8:
cat <<EOCONF >> ~/.Ark.conf
hosturl=http://xxx.xxx.xxx.112:8080
fileprojectname=$dbprojectname
niceprojectname="My_PRJ"
installroot=/home/boincadm/projects/$fileprojectname
EOCONF
9:
if [ ! -r ~/.Ark.conf ]; then
echo "Configuration file '~/.newproject' not existing."
Else
chmod 777 ~/.Ark.conf
. ~/.Ark.conf
if [ -z "$installroot" -o -z "$hosturl" -o -z "$dbprojectname" -o -z "$pw" \
-o -z "$niceprojectname" -o -z "$fileprojectname" ] ; then
echo "Missing configuration parameter."
fi
fi
10:
[ -d "$installroot" ] || sudo mkdir -p "$installroot"
sudo ./tools/make_project \
--url_base "$hosturl" \
--db_name "$dbprojectname" \
--db_user root \
--db_passwd "$pw" \
--drop_db_first \
--delete_prev_inst \
--project_root /home/boincadm/projects/$fileprojectname \
"$fileprojectname" "$niceprojectname"
ID: 50483 · Report as offensive
Profile Ghabel83
Avatar

Send message
Joined: 20 Feb 13
Posts: 8
Germany
Message 50484 - Posted: 13 Sep 2013, 12:56:53 UTC - in response to Message 50481.  

This is how I create my workunit:

./bin/create_work –appname convert –wu_name Convertor_Wu_01 –wu_template templates/input_template.xml –result_template templates/output_template.xml –min_quorum 1 –target_nresults 1 Add_inp

*Add_inp is my Input File,I am copiing my Input File into the Download Folder.
--------------------

My question is: are the steps I've made correct? Because if i want to create a project I sometimes get error messages.
ID: 50484 · Report as offensive

Message boards : API : the sequence for creating one project

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