About using sdk

classic Classic list List threaded Threaded
5 messages Options
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|

About using sdk

Hello,

Reading https://bugs.freedesktop.org/show_bug.cgi?id=77028, I haven't found the way to launch sdk from the built sources.

I added --enable-odk in autogen.input and run "make" (without a "make clean" before).

ls instdir/sdk/bin gives this:
cppumaker  idlc  javamaker  regcompare  ucpp  unoapploader  uno-skeletonmaker

Then in a console, I launched <libreoffice root source>/instdir/program/soffice --nofirststartwizard --nologo --headless --norestore --invisible "--accept=socket,host=localhost,port=2083,tcpNoDelay=1;urp;"

But what to put in the other console to launch the test?

Julien
sberg sberg
Reply | Threaded
Open this post in threaded view
|

Re: About using sdk

On 04/05/2014 10:03 AM, julien2412 wrote:

> Reading https://bugs.freedesktop.org/show_bug.cgi?id=77028, I haven't found
> the way to launch sdk from the built sources.
>
> I added --enable-odk in autogen.input and run "make" (without a "make clean"
> before).
>
> ls instdir/sdk/bin gives this:
> cppumaker  idlc  javamaker  regcompare  ucpp  unoapploader
> uno-skeletonmaker
>
> Then in a console, I launched <libreoffice root
> source>/instdir/program/soffice --nofirststartwizard --nologo --headless
> --norestore --invisible
> "--accept=socket,host=localhost,port=2083,tcpNoDelay=1;urp;"
>
> But what to put in the other console to launch the test?

You first need to configure the SDK,

cd instdir/sdk && ./setsdkenv_unix

(which will leave you in a sub-shell with various env vars set), then cd
into the relevant examples/ sub-dir and call make there.

Stephan
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|

Re: About using sdk

Thank you Stephan for your feedback.

But then  I don't know how to launch the example of fdo#77028. I mean I don't know where I must put test.pptx from the fdo and what  I should change to load pptx + ask pdf conversion.
Indeed, if I run "make DocumentLoader.run", it'll load test.ods not test.pptx.

I'll let this one for people more accustomed to sdk.

Julien
sberg sberg
Reply | Threaded
Open this post in threaded view
|

Re: About using sdk

On 04/07/2014 10:01 PM, julien2412 wrote:
> But then  I don't know how to launch the example of fdo#77028. I mean I
> don't know where I must put test.pptx from the fdo and what  I should change
> to load pptx + ask pdf conversion.
> Indeed, if I run "make DocumentLoader.run", it'll load test.ods not
> test.pptx.

As <https://bugs.freedesktop.org/show_bug.cgi?id=77028#c0> says, first
modify the SDK's

> --- examples/cpp/DocumentLoader/Makefile~ 2013-04-19 14:02:18.769514698 +0200
> +++ examples/cpp/DocumentLoader/Makefile 2014-04-08 10:53:49.030078240 +0200
> @@ -97,7 +97,7 @@
>   @echo --------------------------------------------------------------------------------
>
>  %.run: $(OUT_BIN)/DocumentLoader$(EXE_EXT)
> - cd $(subst /,$(PS),$(OUT_BIN)) && $(basename $@) $(ENV_OFFICE_TYPES) $(subst \\,/,$(subst /,$(PS),"$(OO_SDK_HOME)/examples/cpp/DocumentLoader/test.odt"))
> + cd $(subst /,$(PS),$(OUT_BIN)) && $(basename $@) $(ENV_OFFICE_TYPES) ~/Downloads/test.pptx
>
>  .PHONY: clean
>  clean :

(or wherever you downloaded the test.pptx to).

Stephan
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
julien2412 julien2412
Reply | Threaded
Open this post in threaded view
|

Re: About using sdk

Ok I finally gave a new try and I put result here:
https://bugs.freedesktop.org/show_bug.cgi?id=77028#c2

I could "open the pptx then export to PDF manually" but not "open pptx + export pdf automatically, ie without opening LO"

With soffice --nofirststartwizard --nologo --headless --norestore --invisible "--accept=socket,host=localhost,port=2083,tcpNoDelay=1;urp;"
I got:
warn:binaryurp:30232:6:binaryurp/source/reader.cxx:126: caught UNO exception 'acc_socket.cxx:SocketConnection::read: error - Succᅢᄄs'
warn:binaryurp:30232:6:binaryurp/source/bridge.cxx:866: undisposed bridge, potential deadlock ahead

Julien