Hi, On Wed, Sep 18, 2013 at 05:37:36PM +0800, Wei Min Teo wrote: > Hi, I'm writing in C++ and testing on OpenOffice 4.0.0. I encountered > a problem where cppu::bootstrap() throws a cppu::BootstrapException > with the message "no soffice installation found!". Prior to this, > I have started the soffice process and passed in the -accept flag to > open up a listening port. Running netstat has confirmed this. However, > bootstrap still fails. This code was previously working with OO 3.x. > It'll be great if anyone can give me some advice on this. Thanks.
You need to start the office in listening mode only if you are using the com.sun.star.bridge.UnoUrlResolver or a connection-aware client [1], but the simple bootstrap mechanism does not require a running office listening for interprocess connections. The simple bootstrap mechanism was broken due to changes in the office installation structure (the so called 3-layer removal), this was reported for Linux in https://issues.apache.org/ooo/show_bug.cgi?id=122483 At that time I couldn't test it on Windows, because C++ examples could not even be compiled. What is your OS? On Linux, running client applications from outside the SDK environment works fine (didn't try on Windows yet). [1] http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Establishing_Interprocess_Connections http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/UNO_Interprocess_Connections Regards -- Ariel Constenla-Haile La Plata, Argentina
pgp1qmSlThioa.pgp
Description: PGP signature
