Re: [pygccxml-development] Compilation problem
Brought to you by:
mbaas,
roman_yakovenko
From: Vincent F. <vin...@gm...> - 2008-06-04 10:11:30
|
Sorry, here is the sconstruct file content : #! /usr/python # author Vincent FERRIES import os import sys from environment import settings def get_shlibsuffix(): if sys.platform == 'win32': return '.pyd' else: return '.so' def get_ccflags(): if sys.platform == 'win32': return ['/MD', '/EHsc', '/GR'] else: return [] def get_py_ferespost_files(): source_files = filter(lambda s: s.endswith('.cpp'), os.listdir(settings.generated_files_dir)) return map(lambda fname: os.path.join(settings.generated_files_dir, fname), source_files) def get_target(): return os.path.join(settings.unittests_dir, settings.module_name + get_shlibsuffix()) SharedLibrary(target=get_target(), source=[get_py_ferespost_files()], LIBS=['boost_python'], LIB_PATH=[settings.boost_libs_path, settings.python_libs_path], CPPPATH=[settings.boost_path, settings.working_dir, settings.ferespost_path, settings.python_include_path], CCFLAGS=get_ccflags(), SHLIBPREFIX='', SHLIBSUFFIX=get_shlibsuffix()) 2008/6/4, Vincent Ferries <vin...@gm...>: > After a LOT of Roman's advices, I'm able to generate the .cpp file > corresponding to a big part of the library I'm currently wrapping. > > I tried to follow the examples given in the website and choosed to use > scons as my building tool. > > Like in pyEasyBmp example, I defined my properties file > (environnement.py) and a scons file. > > Unfortunately, all that's build is a .os, I don't really understand why... > Using file command, I get the following line : > ferespost.os: ELF 64-bit LSB relocatable, AMD x86-64, version 1 > (SYSV), not stripped > > Which normally correspond to a .o file if I don't mess up. > > environnement.py mainly contains the following definitions: > boost_path = '/usr/lib' > boost_libs_path = '/usr/lib' > gccxml_path = '/usr/bin/gccxml' > pygccxml_path = '/usr/lib/python2.4/site-packages/pygccxml' > pyplusplus_path = '/usr/lib/python2.4/site-packages/pyplusplus' > ferespost_path = '/people/ferries/ferespost/SRC' > python_libs_path = '/usr/lib/python2.4' > python_include_path = '/usr/include/python2.4' > working_dir = '/people/ferries/ferespost' > generated_files_dir = '/people/ferries/ferespost/generated' > unittests_dir = '/people/ferries/ferespost/unittests' > > The sconstruct file is joined to the present e-mail. > > Thanks again for all your help. > > PS : I'm ever trying to convince my client to publish the wrapper as > an open source library. > |