Compiling boinc-python API in Windows

Message boards : API : Compiling boinc-python API in Windows
Message board moderation

To post messages, you must log in.

AuthorMessage
Pratik Desai

Send message
Joined: 8 Nov 09
Posts: 2
United States
Message 28566 - Posted: 8 Nov 2009, 5:37:51 UTC
Last modified: 8 Nov 2009, 6:02:19 UTC

Hi,

I am having some issues compiling BOINC API 'boinc-python' in windows.
I downloaded the source of this API from:
http://plato.tp.ph.ic.ac.uk/~djw03/boinc-python/

I'm trying to compile using MingW32 in Win Vista.

output of :
python setup.py build

is:
running build
running build_ext
building 'boinc' extension
writing build\temp.win32-2.6\Release\boinc.def
C:\MinGW\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\boincmo
dule.o libboinc.a libboinc_api.a build\temp.win32-2.6\Release\boinc.def -LC:\Pyt
hon26\Lib -LC:\mingw\lib -LC:\Python26\libs -LC:\Python26\PCbuild -Wl,-RC:\Pytho
n26\Lib -Wl,-RC:\MinGW\lib -lstdc++ -lboinc -lboinc_api -ldl -lcrypto -lssl -lpy
thon26 -lmsvcr90 -o build\lib.win32-2.6\boinc.pyd -fPIC
gcc: libboinc.a: No such file or directory
gcc: libboinc_api.a: No such file or directory
error: command 'gcc' failed with exit status 1


setup.py file is as:
from distutils.core import setup, Extension

# May need to adjust these to suit your system, but a standard installation of the BOINC client from source will put things in these places
pyboinc = Extension('boinc', runtime_library_dirs=['C:\Python26\Lib', 'C:\MinGW\lib'],
	extra_objects=['libboinc.a', 'libboinc_api.a'],
	sources = ['boincmodule.C'],
	libraries=['stdc++', 'boinc', 'boinc_api', 'dl','crypto','ssl'],
	library_dirs=['C:\Python26\Lib', 'C:\mingw\lib'],
	include_dirs=['C:\Python26\include'],
	extra_compile_args=['-fPIC'],extra_link_args=['-fPIC'])

setup (name = 'PyBoinc',
       version = '0.3.2',
       description = 'Basic python bindings for BOINC network computing package',
       ext_modules = [pyboinc])


Problem is that the files libboinc.a and libboinc_api.a are missing.
Please me help with this.
ID: 28566 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15492
Netherlands
Message 28573 - Posted: 8 Nov 2009, 13:59:06 UTC - in response to Message 28566.  

ID: 28573 · Report as offensive
Pratik Desai

Send message
Joined: 8 Nov 09
Posts: 2
United States
Message 28669 - Posted: 11 Nov 2009, 7:57:49 UTC - in response to Message 28573.  

Yes, I'd seen it before.
I am willing to try out basic BOINC API operations in python, and then try the VMwrapper.py. So I want to use boinc-python API.

I think the BOINC source must be compiled in Windows to get libboinc.a and libboinc_api.a files
Then try to install boinc-python

I tried to build v6.11.0 using VS2008 (guess it is the latest one in the trunk).
as per: http://boinc.berkeley.edu/trac/wiki/CompileClient#BuildingtheclientwithVisualStudio2008andVisualStudio2008ExpressEdition.
Got about 15 errors.

Please let me know the BOINC version that can be successfully built using VS2008.

Thanks & Regards,
Pratik Desai
ID: 28669 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 28953 - Posted: 23 Nov 2009, 22:35:38 UTC - in response to Message 28669.  

as per: http://boinc.berkeley.edu/trac/wiki/CompileClient#BuildingtheclientwithVisualStudio2008andVisualStudio2008ExpressEdition.
Got about 15 errors.

You don't need to build the client, only the libraries.

ID: 28953 · Report as offensive

Message boards : API : Compiling boinc-python API in Windows

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.