Posts by Pratik Desai

InfoMessage
1) Message boards : API : Compiling boinc-python API in Windows
Message 28669
Posted 11 Nov 2009 by Pratik Desai
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
2) Message boards : API : Compiling boinc-python API in Windows
Message 28566
Posted 8 Nov 2009 by Pratik Desai
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.


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.