Re: [dev] XStorable and copy/pasting text containing Microsoft Equation objects
Hi Martin, The problem looks strange, the UI-source code that is used in case of dispatch saving does not really do anything special regarding the arguments if I remember correctly. And the arguments you send look correct. The error you have mentioned looks to be writer error ERRCODE_IO_RECURSIVE if I am not wrong. It seems to be related to the internal filter logic. Regards, Mikhail. On 02/10/09 15:03, Martin Dvořák wrote: Hi all, We've got a .NET application which automates OpenOffice v2.4.1 by means of UNO CLI interface. It's been in use for some time already, tested by many users on many different computers and proved to work above expectations. Thousands of documents have already been created and saved using the application, again, all without a problem, but a few days ago we've identified special circumstances under which XStorable.storeToURL() refuses to work, returning unoidl.com.sun.star.task.ErrorCodeIOException with ErrCode = 461854. XStorable.storeToURL() fails for us if a user copy/pastes some Microsoft Equation OLE object _together_ with some surrounding text from another _ODT_ document opened in _another_ OOo Writer instance. Please, let me emphasize: 1. the problem does not happen if the user copies only the Microsoft Equation object itself - he/she has to copy it together with some surrounding text to reproduce the problem 2. the problem does not happen if the document opened in another OOo Writer instance is for example Microsoft Word document - the problem seem to happen only if source for copying is ODT document 3. the problem does not happen if our automated OOo Writer and OOo Writer which is the source for copying share the same instance (same soffice.bin process, same user data directory). One final observation - even though XStorable.storeToURL() (and also both other methods - store and storeAsURL) fail, it is still possible to save without a problem for example by dispatching .uno:SaveAs command or by clicking on Save or Save As in menu. It seems to us like OOo is doing in its Save implementation something we don't and probably should before calling XStorable.storeToURL(). What could it be? Some kind of commiting of pasted data? Some additional MediaDescriptor properties? Currently, we pass only FilterName=writer8 and Overwrite=true. I'd appreciate any help on this one. We usually managed to solve most of the problems by debugging, reading OOo source code a writing test cases, but this one seems to be immune to everything we tried. Thanks, Martin - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Patch is waiting review for 6 motnh - Issue 35579 (Calc).
On 02/10/09 20:17, Kirill Palagin wrote: Niklas Nebel пишет: That one should find its way into 3.2. Thanks. Maybe this one http://qa.openoffice.org/issues/show_bug.cgi?id=8302 too? Maoyg is working on issue 8302. I don't know if it will be finished in time for 3.2. Niklas - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Runtime issues, if OOo Basic invokes Java, which bootstraps its own connection to OOo ? (Hangs OOo hard, OOo Basic macro enclosed)
Hi there, not being sure which e-mail list would be appropriate, I send it to those two that may help the most, but setting the reply-to field to d...@api.openoffice.org to avoid spamming multiple lists. If this is not appropriate please advise. Following use-case: * OOo Basic subroutine using the dispatch interface to dispatch an ooRexx macro/script, supplying it arguments (an UNO object to be documented explicitly and for which a writer document will be created which will receive formatted text with underlying links to the OOo UNO documentation), * the bridge to ooRexx (itself written in C++) is realized via Java as a bridge, using the OOo Java based scripting interface for communication; all communication between OOo and ooRexx is carried out via the Java bridge from the perspective of OOo. The problem: * The ooRexx script is invoked, but at the moment where on its side the Java com.sun.star.comp.helper.Bootstrap.bootstrap() is executed, in order to get an independent xContext, which then is used to create a com.sun.star.frame.Desktop UNO object, which then is used to get the xComponentLoader to use its loadComponentFromUrl(...) to load an empty swriter document, then there OOo hangs hard (need a task manager to kill it). * Doing the same with Java (i.e. invoking the very same ooRexx script/macro from a Java OOo app) works! Can someone shed some light on interdependencies between OOo Basic and invoked non-OOo-Basic code via Java that bootstraps independently to OOo in order to get a xContext? TIA, ---rony P.S.: Here's the OOo Basic code-snippet to invoke the ooRexx script via dispatch: -- cut here - Sub TestDispatchCreateApiInfoWithRexx Dim oDispHelper, oProvider as object Dim macroUrl as string dim args0(0) as new com.sun.star.beans.PropertyValue oProvider=ThisComponent.CurrentController.Frame oDispHelper=createUnoService(com.sun.star.frame.DispatchHelper) macroUrl=vnd.sun.star.script:wu_tools.createApiInfo.rex?language=ooRexxlocation=user args0(0).Name=arg1 args0(0).Value=oDispHelper ' some UNO object/IDL string r=oDispHelper.executeDispatch(oProvider, macroUrl, , 0, args0()) msgbox r.Result, 0, result from dispatching createApiInfo.rex End Sub -- cut here -
Re: [dev] Java API differences between 2.4 and 3.x
Grover Blue wrote: What are the Java API differences between 2.4 and 3.x? I wrote software using the 2.4 sdk, and it uses the 2.4 runtime. Should I expect problems compiling/running my 2.4 designed programs against v3? Thanks If there had been changes they would apply only to APIs that are not published. You can look that up in the IDL files by yourself. Even most unpublished APIs haven't changes, but that needs to be checked one by one. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to nospamfor...@gmx.de. I use it for the OOo lists and only rarely read other mails sent to it. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
2009/2/12 tora - Takamichi Akiyama t...@openoffice.org: Hi, Nguyen Vu Hung wrote: I've rm -rf my $HOME/lib/{libcairo*,libpango*}, $HOME/include/{cairo*,pango*} and the build is running again. I have a lot of libraries installed to my $HOME so I think in the next try, I will create a new user and build OOO m40 with that user. The libraries 'cairo' and 'pango' seems to be part of Gnome system. It implies that you would not need to manually install them if you install Gnome desktop in your machine. Mozilla depends on it. I've tried to disable Mozilla. I am not sure, but what I feel about differences between CentOS and Fedora is: CentOS -- Primarily for server use. Fedora -- Primarily for desktop use. My home server is all-in-one. I install everything on it and in my opinion, there is no different between a server and a client *gr* :) You currently use CentOS to build OpenOffice.org, that could be one of the reasons why you need to manually install lots of tools and libraries. Don't you think so? This is the test server that I use for servering aoc replays, building softwares. I do care about security but I am willing to sacrifice it for ease of use. This is the next error. And I am trying to to add --disable-qadevooo and --disable-mozilla to configure. http://aoclife.ddo.jp/~vuhung/foss/src/ooo.src/DEV300_m40/vh-config.8.sh /var/www/home/ooo.src/DEV300_m40/qadevOOo/runner - jar cfm ../unxlngi6.pro/class/OOoRunnerLight.jar manifest -C ../unxlngi6.pro/class util -C ../unxlngi6.pro/class share -C ../unxlngi6.pro/class stats -C ../unxlngi6.pro/class lib -C ../unxlngi6.pro/class complexlib -C ../unxlngi6.pro/class helper -C ../unxlngi6.pro/class basicrunner -C ../unxlngi6.pro/class base -C ../unxlngi6.pro/class org/openoffice -C ../unxlngi6.pro/class convwatch -C ../unxlngi6.pro/class graphical ../unxlngi6.pro/class/util : no such file or directory ../unxlngi6.pro/class/share : no such file or directory ../unxlngi6.pro/class/stats : no such file or directory ../unxlngi6.pro/class/lib : no such file or directory ../unxlngi6.pro/class/complexlib : no such file or directory ../unxlngi6.pro/class/helper : no such file or directory ../unxlngi6.pro/class/basicrunner : no such file or directory ../unxlngi6.pro/class/base : no such file or directory ../unxlngi6.pro/class/org/openoffice : no such file or directory ../unxlngi6.pro/class/convwatch : no such file or directory ../unxlngi6.pro/class/graphical : no such file or directory dmake: Error code 1, while making 'LIGHT' ERROR: Error 65280 occurred while making /var/www/home/ooo.src/DEV300_m40/qadevOOo/runner rmdir /tmp/16141 dmake: Error code 1, while making 'build_instsetoo_native' -- Best Regards, Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng ) vuhung16plus{remo...@gmail.dot.com , YIM: vuhung16 , Skype: vuhung16dg A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] XStorable and copy/pasting text containing Microsoft Equation objects
This very strange; can you check if saving via storeToURL() fails also if you call it from OOo Basic? This would allow to verify your problem what we otherwise couldn't do easily, as we don't have your application. The error code looks strange, if I decoded it correctly it could point to a problem with recursive OLE objects, but then I don't understand why saving via GUI works. So the best thing would be if your problem could be reproduced. Calling storeToURL() via OOo Basic macro works. Does it mean it is a CLI-UNO-specific problem? I verified that the output file gets created before the exception is thrown, so I guess that the save operation must fail during the save process, which would indicate it is called properly. In case you are still interested in debugging ;-), you could try to catch an IOException after the call to the SwXMLWriter. This should show you the place where it is thrown and perhaps give us a clue what the root cause may be. You could also pass an InteractionHandler instance in your MediaDescriptor that will catch the exception for you and - if we are lucky! - will give a better error message. Of course then catching the naughty exception would be easiert also as you don't need to catch all C++ exceptions in the debugger but instead of that set a breakpoint in the InteractionHandler code (module uui). I've tried to pass the InteractionHandler but it does not get called. I suppose I passed it correctly because it gets called for other errors (like if I try to save to a location without write permissions). I guess the last thing I can try is to catch the exception in OOo process in SwXMLWriter like you say. I'll try that, it will just take me some time because I have to prepare OOo build environment and build it. Is there by any chance an OOo debug-build with debugging symbols (preferrably for Visual Studio) available for download somewhere? Thanks, Martin - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
Nguyen Vu Hung wrote: ... And I am trying to to add --disable-qadevooo and --disable-mozilla to configure. The page, http://wiki.services.openoffice.org/wiki/Building_OOo_with_Cygwin_on_Windows#Setting_up_the_build_environment states that --disable-mozilla fails with dependency problems. It recommends using --disable-build-mozilla \ in configure, instead. I'm too new at building to know if this might help. /tj/ -- T. J. Frazier Melbourne, FL (TJFrazier on OO.o) - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
2009/2/13 T. J. Frazier tjfraz...@cfl.rr.com Nguyen Vu Hung wrote: ... And I am trying to to add --disable-qadevooo and --disable-mozilla to configure. The page, http://wiki.services.openoffice.org/wiki/Building_OOo_with_Cygwin_on_Windows#Setting_up_the_build_environment states that --disable-mozilla fails with dependency problems. It recommends using --disable-build-mozilla \ in configure, instead. I'm too new at building to know if this might help. /tj/ I am building under Linux x86, not WIndows. -- Best Regards, Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng ) vuhung16plus{remo...@gmail.dot.com vuhung16plus%7bremove...@gmail.dot.com, YIM: vuhung16 , Skype: vuhung16dg A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html
[dev] Now with OOo Basic called from pure Java ... (Re: [dev] More infos, request for help/hints ... (Re: [api-dev] XDispatchHelper.executeDisptatch(...) - Boolean argument appended by OOo ?
Hi there, still wanting to make sure that this is an error/issue with OOo, hence trying to get at an example that uses only genuine OOo Basic and plain Java. The following two little programs demonstrate, that invoking an OOo Basic function via the XDispatchHelper.executeDispatch(...) method unexplainably adds a Boolean value (true) to the list of arguments meant for the script function. -- cut here -- import com.sun.star.beans.PropertyValue; import com.sun.star.frame.XComponentLoader; import com.sun.star.frame.XDesktop; import com.sun.star.frame.XDispatchHelper; import com.sun.star.frame.XDispatchProvider; import com.sun.star.lang.XMultiComponentFactory; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.frame.DispatchResultEvent; class TestBasic { public static void main (String args[]) { // excerpted from HardFormatting.java from the OOo development package XDesktop xDesktop = null; XMultiComponentFactory xMCF = null; XMultiServiceFactory xMSF = null; try { XComponentContext xContext = null; // bootstrap the UNO runtime environment xContext = com.sun.star.comp.helper.Bootstrap.bootstrap(); // get the service manager xMCF = xContext.getServiceManager(); xMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xMCF); if (xMSF!=null) { System.out.println(Connected to a running office ...); // get XDispatchProvider from XDesktop Object oDesktop = xMSF.createInstance(com.sun.star.frame.Desktop); xDesktop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, oDesktop); XDispatchProvider xDispatchProvider=(XDispatchProvider) UnoRuntime.queryInterface(XDispatchProvider.class, xDesktop); Object sDispatchHelper= xMSF.createInstance(com.sun.star.frame.DispatchHelper); XDispatchHelper xDispatchHelper=(XDispatchHelper) UnoRuntime.queryInterface(XDispatchHelper.class, sDispatchHelper); // define arguments PropertyValue propValue=new PropertyValue(); propValue.Name=arg1; // not used, but what the heck propValue.Value=sDispatchHelper;// an UNO object (could be an UNO IDL string instead *PropertyValue parameters[]={propValue}; // ONE argument only for the Basic function!* // invoke the ooRexx script to document the UNO object/IDL // Bug in OOo? Location should be user, however one must use application instead String location=application; // user or share or application String macroUrl=vnd.sun.star.script:Standard.Module1.RgfFuncTest?language=Basiclocation= +location; // dispatch, supplying arguments DispatchResultEvent dre=(DispatchResultEvent) xDispatchHelper.executeDispatch( xDispatchProvider, // XDispatchProvider macroUrl, // URL , // TargetFrameName 0, // SearchFlags parameters);// Arguments System.out.println(Returned from executing dispatch, Result=[+dre.Result+], State=[+dre.State+]); } } catch( Exception e) { e.printStackTrace(System.err); System.exit(1); } System.err.println(Successful run.); System.exit(0); } } -- cut here -- Just add the following Basic code to the user area (My Macros) to the library Standard and there in the module named Module1: -- cut here -- function RgfFuncTest (arg1 as variant, optional arg2, optional arg3) dim str as string vblf=chr$(10) str=(some Basic datatypes: 0=Empty, 2=Integer, 8=String, 9=Object, 11=Boolean) vblf str=str vblf isMissing(arg1)= isMissing(arg1) if not isMissing(arg1) then str=str , value= if isObject(arg1) then str=str some typeName(arg1) else str=str arg1 end if str=str , datatype= varType(arg1) end if str=str vblf isMissing(arg2)= isMissing(arg2) if not isMissing(arg2) then str=str , value= arg2 , datatype= varType(arg2) end if str=str vblf isMissing(arg3)= isMissing(arg3) if not isMissing(arg3) then str=str , value= arg3 , datatype= varType(arg3) end if MsgBox str,
[dev] Operating System
Hi. Do you guys perhaps have an operating system equivalent to Windows XP or Vista so we are hot reliant on Microsoft??? I'm In South Africa Cedric Mew Cel 082 374 6472 Fax 086 663 5142
Re: [dev] Operating System
Hi Cedric, Am Thu, 12 Feb 2009 09:59:36 -0800 (PST) schrieb Cedric Mew cedric...@yahoo.com: Hi. Do you guys perhaps have an operating system equivalent to Windows XP or Vista so we are hot reliant on Microsoft??? I'm In South Africa Cedric Mew No, OpenOffice.org is only an office software. If you want to use a different operating system than Windows, try Linux or BSD. Ubuntu Linux might be a good choice for you. The operating system can be downloaded for free or you can even ask for a free CD. Hope this helps. Sigrid - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
Nguyen Vu Hung wrote: 2009/2/13 T. J. Frazier tjfraz...@cfl.rr.com Nguyen Vu Hung wrote: ... And I am trying to to add --disable-qadevooo and --disable-mozilla to configure. The page, http://wiki.services.openoffice.org/wiki/Building_OOo_with_Cygwin_on_Windows#Setting_up_the_build_environment states that --disable-mozilla fails with dependency problems. It recommends using --disable-build-mozilla \ in configure, instead. I'm too new at building to know if this might help. /tj/ I am building under Linux x86, not WIndows. Understand, but Cygwin creates an artificial Linux environment under Windows. A problem in such an artificial environment might be a problem in a real Linux environment, too. Or not. Best of luck. /tj/ -- T. J. Frazier Melbourne, FL (TJFrazier on OO.o) - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Detailed build deps
I have not been able to find a complete and authoritative list of build dependencies, both required and optional. Does such a list exist, preferably one that will allow for an informed choice by showing what functionality is gained by which optional deps? Thank you very much! -- Jeff My other computer is an abacus. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Java extension works directly after installation, but not after Office restart - how to debug?
Hi *, Java extension on my machine works only when run out of the soffice, directly after installing it via Extension Manager. After restarting OOo, the extension/Java just hangs (no cpu usage, but also no progress whatsoever) I use OOo 3.0.1 (Sun-provided build) and JDK 1.6u11 (also Sun's version) The extension I'm trying to use is OpenCards 1.0.1 ( http://opencards.info http://extensions.services.openoffice.org/project/OpenCards ) The extension works fine with OOo 2.4, and apparently also works fine on other machines. Since it doesn't crash, and doesn't print anything to the console, I have no idea where to look for the cause of the problem. Could you give some hints? ciao Christian - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Patch is waiting review for 6 motnh - Issue 35579 (Calc).
Niklas Nebel пишет: Maoyg is working on issue 8302. I don't know if it will be finished in time for 3.2. Good to know, thanks. Do you think that patch for http://www.openoffice.org/issues/show_bug.cgi?id=70320 will make into 3.2? Regards, KP. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
Nguyen Vu Hung wrote: I've rm -rf my $HOME/lib/{libcairo*,libpango*}, $HOME/include/{cairo*,pango*} and the build is running again. I have a lot of libraries installed to my $HOME so I think in the next try, I will create a new user and build OOO m40 with that user. The libraries 'cairo' and 'pango' seems to be part of Gnome system. It implies that you would not need to manually install them if you install Gnome desktop in your machine. Mozilla depends on it. I've tried to disable Mozilla. Visual Class Library (vcl)'s gtk plugin also depends on cairo and pango. You would face another error upon building vcl module sooner or later, however you disable Mozilla at the very beginning of build process. If you are not quite familiar with such libraries, cairo, pango, ... what I can help you is to stop install libraries under your $HOME directory and look for pre-compiled RPM packages delivered by the distribution vendor and install them in order to put them in the default directory such as /usr/lib. # yum search cairo # yum install cairo-devel I cannot look into individual errors that you currently see because your build environment is somewhat strange. Most errors that you get come from the settings of your build environment, not OpenOffice.org's source code. Additionally, try set up your build environment again following the information given by the release engineering team. http://wiki.services.openoffice.org/wiki/Compiler_versions_used_by_port_maintainers_and_release_engineers For example, use Java 1.5 to build OpenOffice.org 3.x, instead of the latest version Java 1.6. JDK 5.0 Update 6 http://java.sun.com/products/archive/j2se/5.0_06/index.html Regards, Tora - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] DEV300_m40(unxmacxi.pro): Build breaks in instsetoo_native, while registering writer2latex.oxt
Hi Henning, did you solve this problem? I now have the same issue building OOO310 m1 non-pro on Mac OS, 10.5, Intel. Regards Max - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
tora - Takamichi Akiyama wrote: Additionally, try set up your build environment again following the information given by the release engineering team. http://wiki.services.openoffice.org/wiki/Compiler_versions_used_by_port_maintainers_and_release_engineers The easiest way might be to prepare another machine beside your internet server machine, using Fedora or such a Gnome desktop purpose machine on which OpenOffice.org 3.0 runs without any additional software manually installed. If you want to publish your build directory in the back-end machine, consider reverse proxy of Apache web server. Internet --- server machine - desktop machine. (Apache, reverse proxy) (Apache) http://httpd.apache.org/docs/2.0/mod/mod_proxy.html Regards, Tora - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
2009/2/13 tora - Takamichi Akiyama t...@openoffice.org tora - Takamichi Akiyama wrote: Additionally, try set up your build environment again following the information given by the release engineering team. http://wiki.services.openoffice.org/wiki/Compiler_versions_used_by_port_maintainers_and_release_engineers I have glibc 2.5, gcc 4.1.2, jdk1.5.0_17 (I will try to downgrade if needed). That last build was finished and rpms are made! The easiest way might be to prepare another machine beside your internet server machine, using Fedora or such a Gnome desktop purpose machine on which OpenOffice.org 3.0 runs without any additional software manually installed. The problem at my side is that: I don't have spare hardware. If anyone can provide me a shell account on such kind of desktops, I really appreciate (really, I need a Linux x86 shell account now, better in Japan!) If you want to publish your build directory in the back-end machine, consider reverse proxy of Apache web server. Internet --- server machine - desktop machine. (Apache, reverse proxy) (Apache) http://httpd.apache.org/docs/2.0/mod/mod_proxy.html I don't know why I need this kind of security enhancement. Can you explain? -- Best Regards, Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng ) vuhung16plus{remo...@gmail.dot.com , YIM: vuhung16 , Skype: vuhung16dg A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
2009/2/13 tora - Takamichi Akiyama t...@openoffice.org: Nguyen Vu Hung wrote: I've rm -rf my $HOME/lib/{libcairo*,libpango*}, $HOME/include/{cairo*,pango*} and the build is running again. I have a lot of libraries installed to my $HOME so I think in the next try, I will create a new user and build OOO m40 with that user. The libraries 'cairo' and 'pango' seems to be part of Gnome system. It implies that you would not need to manually install them if you install Gnome desktop in your machine. Mozilla depends on it. I've tried to disable Mozilla. Visual Class Library (vcl)'s gtk plugin also depends on cairo and pango. You would face another error upon building vcl module sooner or later, however you disable Mozilla at the very beginning of build process. If you are not quite familiar with such libraries, cairo, pango, ... what I can help you is to stop install libraries under your $HOME directory and look for pre-compiled RPM packages delivered by the distribution vendor and install them in order to put them in the default directory such as /usr/lib. # yum search cairo # yum install cairo-devel On CentOS 5.2: $ rpm -qa | grep cairo pycairo-devel-1.2.0-1.1 cairo-1.2.4-5.el5 cairo-devel-1.2.4-5.el5 pycairo-1.2.0-1.1 As you can see, they are too old, and some libraries (gtk specific in this case), are linked to them. OOo 3.x requires a newer version of cairo and pango, so I have to install it *somewhere*, and $HOME is a place I thought of. Because I don't have another machine so the next time, I will create another account in my Linux box, and only use it for building OOo. In this way, I will not mess up with libraries, headers, bin, etc... in my $HOME. I cannot look into individual errors that you currently see because your build environment is somewhat strange. Most errors that you get come from the settings of your build environment, not OpenOffice.org's source code. I've built m40 successfully and I attach the build script at the end of this email. http://aoclife.ddo.jp/~vuhung/foss/src/ooo.src/DEV300_m40/vh-config.8.sh [1] And RPMS http://aoclife.ddo.jp/~vuhung/foss/src/ooo.src/DEV300_m40/instsetoo_native/unxlngi6.pro/OpenOffice/rpm/install/ The next time I will try to enable the followings options: --disable-mozilla --disable-qadevooo --disable-build-mozilla --disable-gtk Additionally, try set up your build environment again following the information given by the release engineering team. http://wiki.services.openoffice.org/wiki/Compiler_versions_used_by_port_maintainers_and_release_engineers For example, use Java 1.5 to build OpenOffice.org 3.x, instead of the latest version Java 1.6. JDK 5.0 Update 6 http://java.sun.com/products/archive/j2se/5.0_06/index.html It doesn't seem that JDK matter so much. Thanks for your nice help, Tora. [1] http://aoclife.ddo.jp/~vuhung/foss/src/ooo.src/DEV300_m40/vh-config.8.sh #!/bin/bash cd external/unowinreg if [ -f unowinreg.dll ] then echo unowinred.dll is there else wget http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll fi cd - cd external/gpc if [ -f gpc.h ] then echo gpc.h is there else wget ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc232-release.zip unzip gpc232-release.zip fi cd - cd moz/download if [ -f mozilla-source-1.7.5.tar.bz2 ] then echo Mozilla source code is there else wget http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/mozilla-source-1.7.5.tar.bz2 tar xvjf mozilla-source-1.7.5.tar.bz2 fi cd - export PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin export SRC_ROOT=/var/www/home/ooo.src/DEV300_m41 #export JAVA_HOME=$HOME/opt/j2sdk1.4.2_18 export JAVA_HOME=$HOME/opt/jdk1.5.0_17 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=$CLASSPATH:/usr/local/junit4.5/junit-4.5.jar export ANT_HOME=/usr/local/ant export ANT_LIB=$ANT_HOME/lib export PATH=$PATH:$ANT_HOME/bin export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig/ export CCACHE_DIR=/tmp/DEV300_m40.ccache ccache -M 6G -F 10 export CC=ccache gcc export CXX=ccache g++ #export CC=gcc #export CXX=g++ date; echo Starting configure...; echo; echo ./configure --prefix=$HOME \ --with-jdk-home=$JAVA_HOME \ --with-use-shell=bash \ --with-ant-home=$ANT_HOME \ --with-system-stdlibs \ --with-perl-home=/opt/perl \ --disable-mozilla \ --disable-qadevooo \ --disable-build-mozilla \ --disable-gtk \ --with-lang=en vi echo Setting LinuxX86Env.Set.sh ... source LinuxX86Env.Set.sh sleep 6 echo Running bootstrap.. ./bootstrap sleep 6 echo Running dmake clean dmake clean echo Running dmake. dmake 21 | tee make_`date +%Y%m%d_%H%M`.log echo Finished dmake; echo; echo; date -- Best Regards, Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng ) vuhung16plus{remo...@gmail.dot.com , YIM: vuhung16 , Skype:
Re: [dev] Detailed build deps
2009/2/13 Jeff j...@kconline.com: I have not been able to find a complete and authoritative list of build dependencies, both required and optional. Does such a list exist, preferably one that will allow for an informed choice by showing what functionality is gained by which optional deps? I think no. The complete list will be very long and it depends on your environement. This[1] is a good place to get started. [1] http://wiki.services.openoffice.org/wiki/Building_OpenOffice.org -- Best Regards, Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng ) vuhung16plus{remo...@gmail.dot.com , YIM: vuhung16 , Skype: vuhung16dg A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Detailed build deps
On Fri, Feb 13, 2009 at 10:52:35AM +0900, Nguyen Vu Hung wrote: I think no. The complete list will be very long and it depends on your environement. How would it depend on environment? A shell is a requirement, tcsh and or bash are optional. Of course a shell is a bad example, like saying you need a kernel or a c library. But as far as environment, it doesn't matter if you use Linux, FreeBSD, Solaris, etc., dependencies are still dependencies, either required or optional. This[1] is a good place to get started. [1] http://wiki.services.openoffice.org/wiki/Building_OpenOffice.org Several links away from that page and you start to get something resembling useful, but that page doesn't make an attempt to answer my question. The best page I've found is http://tools.openoffice.org/build_env.html, but search for python and you see only --with-system-python. The questions are thus: - Is package truly required or is it optional? - If package can be left out what function would be missing? This kind of information enables system developers/integrators to make more informed choices. Thanks for your reply! -- Jeff My other computer is an abacus. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Detailed build deps
2009/2/13 Jeff j...@kconline.com: On Fri, Feb 13, 2009 at 10:52:35AM +0900, Nguyen Vu Hung wrote: I think no. The complete list will be very long and it depends on your environement. How would it depend on environment? A shell is a requirement, tcsh and or bash are optional. Of course a shell is a bad example, like saying you need a kernel or a c library. But as far as environment, it doesn't matter if you use Linux, FreeBSD, Solaris, etc., dependencies are still dependencies, either required or optional. OOo build is not platform independent unfortunately. So you make to build it for Linux, Windows, Solaris,... separately. This[1] is a good place to get started. [1] http://wiki.services.openoffice.org/wiki/Building_OpenOffice.org Several links away from that page and you start to get something resembling useful, but that page doesn't make an attempt to answer my question. I think the simple approach is: follows that link, build, and post errors to think mailing list you have encounter. The best page I've found is http://tools.openoffice.org/build_env.html, but search for python and you see only --with-system-python. The questions are thus: As far as I can tell, tool.openoffice.org has almost nothing to do with building OOo. - Is package truly required or is it optional? - If package can be left out what function would be missing? This kind of information enables system developers/integrators to make more informed choices. As I said in the previous email: The list will be quite long and system dependent. Therefore, noone care making it. Trail-and-error and until we get the thing done. -- Best Regards, Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng ) vuhung16plus{remo...@gmail.dot.com , YIM: vuhung16 , Skype: vuhung16dg A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] cvs co -r DEV300_m2 swext
Nguyen Vu Hung wrote: I've built m40 successfully and I attach the build script at the end of this email. That is good news. # yum search cairo # yum install cairo-devel On CentOS 5.2: $ rpm -qa | grep cairo pycairo-devel-1.2.0-1.1 cairo-1.2.4-5.el5 cairo-devel-1.2.4-5.el5 pycairo-1.2.0-1.1 As you can see, they are too old, and some libraries (gtk specific in this case), That is because you have chosen CentOS 5.2. Because I don't have another machine so the next time, I will create another account in my Linux box, and only use it for building OOo. In this way, I will not mess up with libraries, headers, bin, etc... in my $HOME. One idea that I have been using to build and debug OpenOffice.org for years is VMware Workstation. You could choose VirtualBox, or similar software as an alternative to such a priced software product. It is said that they have some drawbacks in performance, ... However, its benefits might be greater than the drawbacks. I have the following virtual machines: - OpenOffice.org 2.x build environment using Fedora Core 4, - a test machine using Fedora Core 6 - 3.x build environment (being prepared; I mainly use Solaris x86) - CentOS 5.2 machine to mimic customer's environment - others on a single Fedora 8 host machine backed a Solaris ZFS file server. The Fedora 8 host machine had been Fedora 6 with VMware 5.x some years ago and was upgraded to Fedora 8 with VMware 6.0 last year, now VMware 6.5. You know I did not loose any virtual machines even I reinstalled the host machine. Tora - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Detailed build deps
This kind of information enables system developers/integrators to make more informed choices. Are you a system developer/integrator yourself? For some entirely new Linux distro with an entirely new package format, or other platform for which there exist no OOo build earlier? If no, then just start by looking at what dependencies the official build for your platform uses. Check the spec file in the source rpm or whatever corresponding file it is that your platform uses to direct builds starting from upstream OOo sources and dependencies. That should help get you started. If yes, then I still recommend you check how OOo is built for some version of some Linux distro that most closely resembles your platform. --tml - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Detailed build deps
2009/2/13 Tor Lillqvist tlillqv...@novell.com: This kind of information enables system developers/integrators to make more informed choices. If no, then just start by looking at what dependencies the official build for your platform uses. Check the spec file in the source rpm or whatever corresponding file it is that your platform uses to direct builds starting from pstream OOo sources and dependencies. That should help get you started. I don't recommend using SRPMS to *RE*build OOo. You will fall into the so-called RPM dependency hell and we need to pay more attention to spec files, more build time is needed because we can't use ccache. If yes, then I still recommend you check how OOo is built for some version of some Linux distro that most closely resembles your platform. Tora says he has VMware images for those builds. You can ask him for a copy. -- Best Regards, Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng ) vuhung16plus{remo...@gmail.dot.com , YIM: vuhung16 , Skype: vuhung16dg A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org