Posts by Ghabel83

1) Message boards : API : the sequence for creating one project (Message 50484)
Posted 13 Sep 2013 by Profile Ghabel83
Post:
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.
2) Message boards : API : the sequence for creating one project (Message 50483)
Posted 13 Sep 2013 by Profile Ghabel83
Post:
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"
3) Message boards : API : the sequence for creating one project (Message 50475)
Posted 12 Sep 2013 by Profile Ghabel83
Post:
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.
4) Message boards : API : the sequence for creating one project (Message 50473)
Posted 12 Sep 2013 by Profile Ghabel83
Post:
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.
5) Message boards : API : the sequence for creating one project (Message 50468)
Posted 12 Sep 2013 by Profile Ghabel83
Post:
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. (?)
6) Message boards : API : the sequence for creating one project (Message 50462)
Posted 12 Sep 2013 by Profile Ghabel83
Post:
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
7) Message boards : API : error LNK2019: unresolved external symbol für Boinc_init() , Boinc_finish() (Message 50354)
Posted 30 Aug 2013 by Profile Ghabel83
Post:
I use Boinc version 7.2.4 and 7.1.0 to compile my application.
for both version I get this error "error LNK2019: unresolved external symbol for Boinc_init .. in main ()".

someone has an idea?
8) Message boards : API : how to compile an application for windows (Message 48340)
Posted 25 Mar 2013 by Profile Ghabel83
Post:
Hello everyone,
I´ve tried to compile an application for windows 7 64-bit using VS 2008.
The instructions from http://boinc.berkeley.edu/trac/wiki/CompileApp led me to several error messages (If you need the error messages i will post it).
I´ve also downloaded the "hello world" app from http://www.spy-hill.net/myers/help/boinc/hello.html but it seems it doesn't find the right libraries.

Can someone explain me step by step how and what libraries (and maybe other dependencies) i have to include to get a running application for windows.
All solutions i found so far didn't solve my problems or they were too complicated for me to understand. I'm no professional programmer in C++ so i don't have the experience which is required to get the ideas of some answers.

regards,
Ahmad




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.