On Tue, Dec 2, 2008 at 3:15 PM, Marcus Lindblom <[EMAIL PROTECTED]> wrote:
> Ok. It came right back at me:
>
> pyopensg/src> ** the above **
> Could not determine compiler setting.
> Could not determine GCCXML_FLAGS setting.
> pyopensg/src>
>
> So, I changed it to run my compiled gccxml (pretty recent cvs head) and
> added "--gccxml-compiler cl" (I use VS9 and python 2.6) and fixed the
> include paths (pyopensg retrieves includepaths from the osg2-config python
> script, which used /I instead of /I and also had some non-escaped
> backslashes (turing 'c:\program files\boost' into 'c:\program files oost' as
> can be seen above :)
>
> Running the modified cmd-line made gccxml run and print a whole lot,
> starting with:
>
> j:/3rd/OpenSG/opensg2_trunk/build.win32.cl.9.0/instlinks/include/OpenSG/OSGConfig.h:135:2:
> error: #error Endian determination : could not guess your plattform
>
> and ending up with an ICE.
>
> It seems as I have to add a few defines and such to get the opensg-sources
> to identify the compiler correctly.
>
> I can handle the osg2-config script myself, and probably figure out what
> defines are necessary, but where do I set compiler-arg + defines that are
> used when doing the cache-step that calls the above command?

gen_bindings.py file contains the following lines:

813    mb = ModuleBuilder([main_header_filename],
814                           working_directory = ".",
815                           include_paths=inc_path,
816                           cache=cache_file+".module",
817                           define_symbols=defines,
818                           ignore_gccxml_output=True,
819                           optimize_queries=use_query_opt,
820                           #start_with_declarations=["OSG",],
821                           cflags=opensg_cflags + " " + boost_cflags)

opensg_cflags, boost_cflags variables contains the configuration flags

> Is this cache stuff in PyOpenSG or Py++? (because I can't seem to find any
> such call in gen_bindings.main() nor nearby related modules, unless I've
> missed something).

I don't understand the question, sorry :-(



-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to