On 11.04.2011 13:16, Stephan Bergmann wrote: > On 04/11/11 12:24, rony wrote: >> What I would be after would be to get this information at installation >> time without any user-interaction (most won't know what would be asked) >> in a platform independent manner. >> >> Something equivalent to a hyptohetic "uninfo bitness" returning either >> "32", "64" or "32 64" (if a universal binary). > > I don't think there is something better than inspecting the binaries > with platform specific tools right now. Internally, of course, OOo > knows what "platform" (x86 Linux, x64 Linux, x86 Mac OS X, etc.) it > is---this is at least needed when filtering out extension material > that is not appropriate for the given platform. (Also, the standard > ways to interact with an OOo installation is either via UNO, which > abstracts over those platform details, or through extensions, which > already support platform differences.) It seems that this is some sort of a chicken and egg problem.
E.g. on MacOSX: if one uses Java to query the configuration via UNO, it may be the case that 64-bit Java is used instead of a 32-bit Java when getting in touch with OOo/UNO, which may be a 32-bit (and sometimes in the future) a 64-bit implementation or both (universal binary). If using the wrong bitness combination, i.e. 64-bit Java with 32-bit OOo/UNO (or 32-bit Java with 64-bit OOo/UNO), then an error would occur? (E.g., how about trying it out and if an error comes along one can infer that the wrong bitness was used; but then, if wrong bitnesses are playing a role, is it possible that a crash occurs, which could not be intercepted? ) If no crash is to be expected, what configuration service/path should I use to figure out the architecture/memory model? (Didn't find anything in the schema "Setup.xcs" nor in "Setup-brand.cxu".) Or with other words, is there an XML-file that carries this information, and if so what is its name and element (this would be even easier to analyze without the need to directyl interact with UNO). ---rony -- ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help
