Posts by deleteAccountPlease

InfoMessage
1) Message boards : API : Compiling the example_app on Windows
Message 48628
Posted 14 Apr 2013 by deleteAccountPlease
Everything is perfectly working now :D


The first page should be the starting point from which to start. Building a story is a little bit difficult because there are a lot of different use cases. I also thought it would be good to have a chapter-like manual with links to previous and next pages but that's hard to maintain.


Indeed, you have only that much resources to work with as a freesource project.
The pages you linked to are more of the genre index lists and without having any prior information about the different BOINC terms it's difficult to find anything back in there without reading a large chunk to find what you are looking for.
2) Message boards : API : Compiling the example_app on Windows
Message 48603
Posted 12 Apr 2013 by deleteAccountPlease

What I meant is: You don't need a FileZilla Server on your Win7 Host. You just need an FTP-Client that can SFTP into the debian6 VM. There is already an OpenSSH Server running that will accept the SFTP requests. This way you push your files into the VM, as you try to pull the files into the VM. With my approach you don't need to enter commands inside the VM.

worked perfectly :D


That is true for all the technical documentation about software, can you be more specific?

There's a red line missing, the wiki is a bunch of documents that has no overarching story. This makes it dificult to find the correct files.
3) Message boards : API : Compiling the example_app on Windows
Message 48595
Posted 11 Apr 2013 by deleteAccountPlease

No it's not.

- download the boinc source using git on Win7 (done)
- copy the Windows example files (including boinc_samples.sln) (done)
- Compile this modified version in Win7 (using visual Studio!) (works for 32-bit, but having problems with getting the version for 64-bit)
I ment visual studio, but wrote visual basic by mistake
- Connect to the server in my debian6 VM using FileZilla Client (sftp) and put the .exe file in the correct directory (filezilla server has been configured and is ready to be contacted)
- run the appropriate commands inside the debian6 VM to update the applications (I think the commands that you are referring to are 'bin/xadd' and 'bin/update_versions' if I'm correct)

And of course my usual questions:
- What's your programming / Linux experience?
Programming is okay I guess. Very decent skills in Java and halfbaked in C++.
My Linux experience is limited to this debian6 VM.

- What kind of application do you want to run?
I simply want to modify the u2.cpp to have a different function.
The classical version converts a string of characters to upper case, but
the modified application will calculate the factorial of a given number (given in the input file). I have already modified the sample_work_generator to fit my needs. (which was surprisingly easy using the make command)

- What documentation did you read before posting?
I have read the following documents before posting:
- http://boinc.berkeley.edu/trac/wiki/CompileApp (only after noticing that the wrapper didn't fit my needs)
- http://boinc.berkeley.edu/trac/wiki/WrapperApp (turned out to be useless)
- the quickstart page
- http://boinc.berkeley.edu/trac/wiki/DesktopGrid
- http://boinc.berkeley.edu/trac/wiki/ServerIntro
- http://boinc.berkeley.edu/trac/wiki/VmServer
- a whole bunch of others that were of lesser importance

- Any suggestions for improving the documentation?
It is in my opinion very noob-unfriendly, which scares newbies away. After getting a lil bit accustomed to BOINC it is a lot better, but stays unclear.
Regards
Christian


Not really sure what is different in your to-do checklist beyond the visual basic error I made.

I have suceeded in compiling the 32-bit version of the example application, but 64-bit stays bugging out. (Probably because Visual Studio 2005 has some problems with the 64-bit architecture?)

On a related note: Is the 32-bit version of the example application called windows_intelx86? And the 64-bit version windows_x86_64? (Seems logical to me)

Thanks for your precious time & I'll keep you updated,

Resk
4) Message boards : API : Compiling the example_app on Windows
Message 48590
Posted 11 Apr 2013 by deleteAccountPlease
@Ageless: I think I see what you ment now as this wiki entry: http://boinc.berkeley.edu/trac/wiki/CompileApp describes the usage of this .git utility.

Seems I need to download the boinc source on my W7 x64 to succesfully open the .sln and compile the modified version of upper_case.cpp.

I will try to do this and succesfully follow the entries described in the link above.

Updated plan of action:
- download the boinc source using git on my W7 OS
- rewrite the modified version of upper_case.cpp in my W7 OS
- Compile this modified version in my W7 OS (using visual basic) on the boinc_samples.sln file
- Put this compiled .exe in a FileZilla server in my W7 OS
- Connect to the server in my debian6 VM using sftp and get the .exe file
- Place .exe-file in the correct directory
- Working product?

(I hope this is the correct way of proceeding?)

Sorry for my confusing questions and thnx for answering to a noob like me.
5) Message boards : API : Compiling the example_app on Windows
Message 48589
Posted 11 Apr 2013 by deleteAccountPlease
In order to build your own windows executables you either need Visual Studio or mingw to cross compile.

If you already have an .exe file and want to use the wrapper feature you can use the SSH service in the debian6 VM to insert your files. Just use an FTP-Tool like Filezilla and connect using the SFTP Protocol. Username and Passwort is the same as you login with. Information is available on the page you linked to in your post.


Seems I'm misinterpreting the usage of the wrapper. After some reading I think the wrapper is just a way of making application that were never ment to be run in BOINC, work in BOINC. Which is not something I want/Am looking for.

Plan of action:
- rewrite the modified version of upper_case.cpp in my W7 OS
- Compile this modified version in my W7 OS (using visual basic)
- Put this compiled .exe in a FileZilla server in my W7 OS
- Connect to the server in my debian6 VM using sftp and get the .exe file
- Place .exe-file in the correct directory
- Working product?

@Ageless: I'm not quite sure what reinstalling/redownloading the entire BOINC source would change since I already have it installed on my debian6 VM? And browsing through http://boinc.berkeley.edu/trac/browser/boinc-v2?order=name does not show any major changes compared to the BOINC server I have installed now.
6) Message boards : API : Compiling the example_app on Windows
Message 48583
Posted 10 Apr 2013 by deleteAccountPlease
These sample apps come indeed preinstalled inside the debian6 VM.

Let me try to ask my question in another way: (sorry about this)
I have an application (.exe) in one of my directories and want to create a working downloadable application for it that can run on a windowsx64 client.

After some searching, might have found a way how to do this?
http://boinc.berkeley.edu/trac/wiki/WrapperApp
I have no idea though, how to get the this wrapper inside my VM (ftp command doesn't work in debian :( )

I'll keep you updated on my progress....

PS: the app I want to wrap is a modified version of the "upper_case.cpp"-file hence the confusion.
7) Message boards : API : Compiling the example_app on Windows
Message 48579
Posted 10 Apr 2013 by deleteAccountPlease
Hi,

The example_app uses "upper_case.cpp" as its foundation and I'm able to compile these .cpp files to their executables. (using the make-command)

I want to modify my application (upper_case) to a new one and thus update the files found in /boinc-trunk/samples/example_app/bin to their newer versions.

The mac and linux are of no importance to me, only the Windowsx64 application is (/22489/windows_x86_64.exe)

According to this webpage: http://boinc.berkeley.edu/trac/wiki/CompileApp
the /boinc-trunk/win_build/boinc_samples.sln should be able to recompile the "upper_case.exe"-file to the "/22489/windows_x86_64.exe"-file and thus update the application.

Am I seeing this correctly untill now? Or is there another option that is much more straight-forward and easy?

The problem is that I have no idea how to run this .sln-file in my debian6 VM?

Thnx in advance,

Resk
8) Message boards : API : Issues with supported platforms of the application?
Message 48378
Posted 28 Mar 2013 by deleteAccountPlease
After checking with the actual file I downloaded I saw that the page recently got updated...

The version I downloaded a few weeks ago was still 120720 while the new version 130327 is present now.
9) Message boards : API : Issues with supported platforms of the application?
Message 48377
Posted 28 Mar 2013 by deleteAccountPlease
I'm using the VmServer that was downloaded as indicated by this page: http://boinc.berkeley.edu/trac/wiki/VmServer

And this is the download adress:
http://boinc.berkeley.edu/dl/debian-6-boinc-server-130327.7z
10) Message boards : API : Issues with supported platforms of the application?
Message 48257
Posted 18 Mar 2013 by deleteAccountPlease
bin/status:

BOINC IS ENABLED

DAEMON pid     status     lockfile disabled commandline
 1     1298  running      locked     no     feeder -d 3
 2     1300  running      locked     no     transitioner -d 3
 3     1302  running      locked     no     file_deleter -d 3
 4     1304  NOT RUNNING UNLOCKED    no     sample_work_generator -d 3
 5     1306  running      locked     no     sample_bitwise_validator -d 3 --app example_app
 6     1308  running      locked     no     sample_assimilator -d 3 --app example_app

(Also a list of tasks)


The sample_work_generator is not running? This might be the problem I am facing...

After checking the logs for the sample_work_generator I get to see the following error:

2013-03-18 08:46:16.1530 [CRITICAL] can't read input template templates/example_app_in.xml


So I went to the templates file and found example_app_in!
Renamed it to example_app_in.xml and rebooted the server.

--> RESULT: it works now :)
11) Message boards : API : Issues with supported platforms of the application?
Message 48242
Posted 17 Mar 2013 by deleteAccountPlease
To reiterate:

Follow the quickstart guide and succesfully connected to server with client.
No work was available for the client while the quickstart tutorial does say there should be.

What could I be doing wrong?
12) Message boards : API : Issues with supported platforms of the application?
Message 48214
Posted 15 Mar 2013 by deleteAccountPlease
Thank you for these swift answers.

When bin/appmgr list is used I get the following paragraph:

example_app: example Application
---------------------------------
No homogeneous redundancy. Weight 1.
Versions:

   224.89 windows_intelx86
   224.89 windows_x86_64
   224.89 i686-pc-linux-gnu
   ... (and so on)
   242.53 windows_intelx86


Thus a version for Windows 7/Windows vista is available in the project

Homogeneous redundancy is not used and all the results from the different operating systems are considered equal in liability? (If I understand homogeneous redundancy right)

Now for the client:
The client does not tell me that platform was not found but simply says:

No work available at the moment


If I understand the BOINC client-server process right then the client is now connected to the server and asks the server for work. The server will respond by triggering a work unit that selects the correct version of the application and sends it to the client as a job? But for some reason there is no work available?

I am under the impression that "make_project --test_app test" creates a work unit for me? Or is this wrong as the quickstart guide definitely states that the client should get work.

The bottomline is that I want the client to get work...

Kind regards
13) Message boards : API : Issues with supported platforms of the application?
Message 48205
Posted 14 Mar 2013 by deleteAccountPlease
I have some very simple questions regarding the quickstart entry in the wiki for setting up a project.
http://boinc.berkeley.edu/trac/wiki/QuickStart

It is stated in this wiki entry that the created project (with the app called example_app) will only create work for linux based operating systems.

After connecting to my project using a client that runs Windows Vista this is made very clear as the client can connect to the project but does not receive any work from the server.

I find this quite strange as the folder PROJECTNAME/apps DOES have entries for windows and mac available and they are not empty!

Now the question:
- Where can I correctly see which platforms my project has work for?
- How to make the example_app work for windows? It is present in the apps folder, but the client does not notice it for some reason?

Thnx in advance,

Resk


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.