[Libreoffice] building Basis/sdk/examples/DeveloperGuide/ProfUNO/CppBinding on Windows

Knut Olav Bøhmer bohmer at gmail.com
Sun Jul 31 04:16:04 PDT 2011


2011/7/29 Knut Olav Bøhmer <bohmer at gmail.com>:
> 2011/7/28 Knut Olav Bøhmer <bohmer at gmail.com>:
>> 2011/7/28 Knut Olav Bøhmer <bohmer at gmail.com>:
>>> 2011/7/28 Caolán McNamara <caolanm at redhat.com>:
>>>> On Thu, 2011-07-28 at 15:31 +0200, Knut Olav Bøhmer wrote:
>>>>> On 28 July 2011 15:22, Caolán McNamara <caolanm at redhat.com> wrote:
>>>>> > On Thu, 2011-07-28 at 15:16 +0200, Knut Olav Bøhmer wrote:
>>>>> >
>>>>> >> Now make says ../../../../settingss/stdtarget.mk:12 ** target
pattern
>>>>> >> contains no '%'. Stop  [15:08]
>>>>> >
>>>>> > That might be the bug fixed with
>>>>> >
http://cgit.freedesktop.org/libreoffice/sdk/commit/?h=libreoffice-3-4&id=dd0c9fdc119a991b8f08070316e86d44afac478d
>>>>> > fix will be in 3.4.2, if its that, then apply that patch/replace
spaces
>>>>> > with tabs in the makefile.
>>>>>
>>>>> It's great to get responce so fast. Thank you.
>>>>> But it did not help.
>>>>
>>>> in which case google on "target pattern contains no '%'" suggests it
>>>> might be a generic make-under-cygwin issue, dump the make version, and
>>>> try with some extra -d flags to get some more info
>>>
>>> According to this:
>>>
>>> http://cygwin.com/ml/cygwin/2006-07/msg00404.html
>>>
>>> Looks like it should work with 3.80, but it does not :(
>>>
>>>
C:\PROGRA~1\LIBREO~1\Basis\sdk\examples\DEVELO~1\ProfUNO\CPPBIN~1>c:\cygwin\usr\local\bin\make.exe
>>> -d
>>> GNU Make 3.80
>>> Copyright (C) 2002  Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.
>>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>>> PARTICULAR PURPOSE.
>>> Reading makefiles...
>>> Reading makefile `Makefile'...
>>> Reading makefile `../../../../settings/settings.mk' (search path) (no
>>> ~ expansion)...
>>> Got a SIGCHLD; 1 unreaped children.
>>> Reading makefile `../../../../settings/std.mk' (search path) (no ~
expansion)...
>>> Got a SIGCHLD; 1 unreaped children.
>>> Reading makefile `../../../../settings/dk.mk' (search path) (no ~
expansion)...
>>> Reading makefile `../../../../settings/stdtarget.mk' (search path) (no
>>> ~ expansion)...
>>> ../../../../settings/stdtarget.mk:12: *** target pattern contains no
`%'.  Stop.
>>>
>>> C:\PROGRA~1\LIBREO~1\Basis\sdk\examples\DEVELO~1\ProfUNO\CPPBIN~1>
>>
>>
>> Looks like I came one step closer by setting OO_SDK_OUT to a cygwin-path
>>
>> Now I have seeral other error messages. I'll need to continue tomorrow.
>
> I now copied the config.guess file from the SDK i have installed on
> Linux to windows, and placed it in c:\program
> files\LibreOffice3\Basis\sdk\
> The fact that it is missing from the windows SDK is probably a bug.
> The Linux sdk installation is 3.4 and the Windows is 3.3. I hope it
> does not matter.
>
> Now I get the following errors (see attachment)
> make -d  > make.log  2>&1
>
> I don't know if it's able to find the right target to build.
> Another thing is that cppumaker gets C:/Program Files/LibreOffice
> 3/Basis/programoffapi.rdb as argument. Does not look like ti exsists.
>
> Any suggestions? Did I forget something?

I've come some step closer to compile the examples. I have changed some make
files to use static paths instead of environment variables, and added som
slashes "/" two different places. for example C:/Program Files/LibreOffice
3/Basis/programoffapi.rdb file does not exsist it should be
program/offapi.rdb.

in my  c:\User....AppData....\setsdkenv_windows.bat I added a slash:
REM Set office program path.
if defined OFFICE_BASE_HOME (
  set OFFICE_BASE_PROGRAM_PATH=%OFFICE_BASE_HOME%\program\
)

in sdk/settings/settings.mk i added a / at the end
URE_MISC=$(OO_SDK_URE_HOME)/misc/


in sdk/settings/stdtarget.mk I changed an argument to use static output
path:
- $(CPPUMAKER) -Gc -BUCR -O$(OUT_INC) $(URE_TYPES) $(OFFICE_TYPES)
+ $(CPPUMAKER) -Gc -BUCR -OC:/libreoffice3.4_sdk $(URE_TYPES)
$(OFFICE_TYPES)


*Did anyone ever compile the examples in the LibreOffice SDK on  Windows?*


Not I get the following errors. And, which compiler should I use? also need
to set CC

c:\Program Files (x86)\LibreOffice
3.4\Basis\sdk\examples\DevelopersGuide\ProfUNO\SimpleBootstrap_cpp>make
cygdriveclibreoffice3.4_sdkWindows_NTexample.outobjSimpleBootstrap_cpp
make:
cygdriveclibreoffice3.4_sdkWindows_NTexample.outobjSimpleBootstrap_cpp:
Command not found
make:
[/cygdrive/c/libreoffice3.4_sdk/Windows_NTexample.out/obj/SimpleBootstrap_cpp/SimpleBootstrap_cpp.]
Error 127 (ignored)
cc -c -g -fPIC -DPIC  -fvisibility=hidden -O -I.
-I/cygdrive/c/libreoffice3.4_sdk/Windows_NTexample.out/inc
-I/cygdrive/c/libreoffice3.4_sdk/Windows_N
Texample.out/inc/examples -I../../../../include
-I/cygdrive/c/libreoffice3.4_sdk/Windows_NTexample.out/inc/SimpleBootstrap_cpp
-DUNX -DGCC -DFREEBSD -
DCPPU_ENV= -DGXX_INCLUDE_PATH= -DHAVE_GCC_VISIBILITY_FEATURE
-ocygdriveclibreoffice3.4_sdkWindows_NTexample.outobjSimpleBootstrap_cppSimpleBootstrap_c
pp. SimpleBootstrap_cpp.cxx
cc: error trying to exec 'cc1plus': execvp: No such file or directory
make: ***
[/cygdrive/c/libreoffice3.4_sdk/Windows_NTexample.out/obj/SimpleBootstrap_cpp/SimpleBootstrap_cpp.]
Error 1

c:\Program Files (x86)\LibreOffice
3.4\Basis\sdk\examples\DevelopersGuide\ProfUNO\SimpleBootstrap_cpp>


-- 
Knut Olav Bøhmer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110731/c4ce92ac/attachment.html>


More information about the LibreOffice mailing list