2011/7/29 Knut Olav Bųhmer <<a href="mailto:bohmer@gmail.com" target="_blank">bohmer@gmail.com</a>>:<br>> 2011/7/28 Knut Olav Bųhmer <<a href="mailto:bohmer@gmail.com" target="_blank">bohmer@gmail.com</a>>:<br>
>> 2011/7/28 Knut Olav Bųhmer <<a href="mailto:bohmer@gmail.com" target="_blank">bohmer@gmail.com</a>>:<br>
>>> 2011/7/28 Caolįn McNamara <<a href="mailto:caolanm@redhat.com" target="_blank">caolanm@redhat.com</a>>:<br>>>>> On Thu, 2011-07-28 at 15:31 +0200, Knut Olav Bųhmer wrote:<br>>>>>> On 28 July 2011 15:22, Caolįn McNamara <<a href="mailto:caolanm@redhat.com" target="_blank">caolanm@redhat.com</a>> wrote:<br>
>>>>> > On Thu, 2011-07-28 at 15:16 +0200, Knut Olav Bųhmer wrote:<br>>>>>> ><br>>>>>> >> Now make says ../../../../settingss/<a href="http://stdtarget.mk:12" target="_blank">stdtarget.mk:12</a> ** target pattern<br>
>>>>> >> contains no '%'. Stop [15:08]<br>>>>>> ><br>>>>>> > That might be the bug fixed with<br>>>>>> > <a href="http://cgit.freedesktop.org/libreoffice/sdk/commit/?h=libreoffice-3-4&id=dd0c9fdc119a991b8f08070316e86d44afac478d" target="_blank">http://cgit.freedesktop.org/libreoffice/sdk/commit/?h=libreoffice-3-4&id=dd0c9fdc119a991b8f08070316e86d44afac478d</a><br>
>>>>> > fix will be in 3.4.2, if its that, then apply that patch/replace spaces<br>>>>>> > with tabs in the makefile.<br>>>>>><br>>>>>> It's great to get responce so fast. Thank you.<br>
>>>>> But it did not help.<br>>>>><br>>>>> in which case google on "target pattern contains no '%'" suggests it<br>>>>> might be a generic make-under-cygwin issue, dump the make version, and<br>
>>>> try with some extra -d flags to get some more info<br>>>><br>>>> According to this:<br>>>><br>>>> <a href="http://cygwin.com/ml/cygwin/2006-07/msg00404.html" target="_blank">http://cygwin.com/ml/cygwin/2006-07/msg00404.html</a><br>
>>><br>>>> Looks like it should work with 3.80, but it does not :(<br>>>><br>>>> C:\PROGRA~1\LIBREO~1\Basis\sdk\examples\DEVELO~1\ProfUNO\CPPBIN~1>c:\cygwin\usr\local\bin\make.exe<br>
>>> -d<br>>>> GNU Make 3.80<br>>>> Copyright (C) 2002 Free Software Foundation, Inc.<br>>>> This is free software; see the source for copying conditions.<br>>>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<br>
>>> PARTICULAR PURPOSE.<br>>>> Reading makefiles...<br>>>> Reading makefile `Makefile'...<br>>>> Reading makefile `../../../../settings/<a href="http://settings.mk" target="_blank">settings.mk</a>' (search path) (no<br>
>>> ~ expansion)...<br>>>> Got a SIGCHLD; 1 unreaped children.<br>>>> Reading makefile `../../../../settings/<a href="http://std.mk" target="_blank">std.mk</a>' (search path) (no ~ expansion)...<br>
>>> Got a SIGCHLD; 1 unreaped children.<br>
>>> Reading makefile `../../../../settings/<a href="http://dk.mk" target="_blank">dk.mk</a>' (search path) (no ~ expansion)...<br>>>> Reading makefile `../../../../settings/<a href="http://stdtarget.mk" target="_blank">stdtarget.mk</a>' (search path) (no<br>
>>> ~ expansion)...<br>>>> ../../../../settings/<a href="http://stdtarget.mk:12" target="_blank">stdtarget.mk:12</a>: *** target pattern contains no `%'. Stop.<br>>>><br>>>> C:\PROGRA~1\LIBREO~1\Basis\sdk\examples\DEVELO~1\ProfUNO\CPPBIN~1><br>
>><br>>><br>>> Looks like I came one step closer by setting OO_SDK_OUT to a cygwin-path<br>>><br>>> Now I have seeral other error messages. I'll need to continue tomorrow.<br>><br>> I now copied the config.guess file from the SDK i have installed on<br>
> Linux to windows, and placed it in c:\program<br>> files\LibreOffice3\Basis\sdk\<br>> The fact that it is missing from the windows SDK is probably a bug.<br>> The Linux sdk installation is 3.4 and the Windows is 3.3. I hope it<br>
> does not matter.<br>><br>> Now I get the following errors (see attachment)<br>> make -d > make.log 2>&1<br>><br>> I don't know if it's able to find the right target to build.<br>> Another thing is that cppumaker gets C:/Program Files/LibreOffice<br>
> 3/Basis/programoffapi.rdb as argument. Does not look like ti exsists.<br>><br>> Any suggestions? Did I forget something?<br><br>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. <br>
<br>in my c:\User....AppData....\setsdkenv_windows.bat I added a slash:<br>REM Set office program path.<br>if defined OFFICE_BASE_HOME (<br> set OFFICE_BASE_PROGRAM_PATH=%OFFICE_BASE_HOME%\program\<br> )<br><br>in sdk/settings/<a href="http://settings.mk" target="_blank">settings.mk</a> i added a / at the end<br>
URE_MISC=$(OO_SDK_URE_HOME)/misc/<br><br><br>in sdk/settings/<a href="http://stdtarget.mk" target="_blank">stdtarget.mk</a> I changed an argument to use static output path:<br>-        $(CPPUMAKER) -Gc -BUCR -O$(OUT_INC) $(URE_TYPES) $(OFFICE_TYPES)<br>
+        $(CPPUMAKER) -Gc -BUCR -OC:/libreoffice3.4_sdk $(URE_TYPES) $(OFFICE_TYPES)<br><br><br><b>Did anyone ever compile the examples in the LibreOffice SDK on Windows?</b><br><br><br>Not I get the following errors. And, which compiler should I use? also need to set CC<br>
<br>c:\Program Files (x86)\LibreOffice 3.4\Basis\sdk\examples\DevelopersGuide\ProfUNO\SimpleBootstrap_cpp>make<br>
cygdriveclibreoffice3.4_sdkWindows_NTexample.outobjSimpleBootstrap_cpp<br>make: cygdriveclibreoffice3.4_sdkWindows_NTexample.outobjSimpleBootstrap_cpp: Command not found<br>make: [/cygdrive/c/libreoffice3.4_sdk/Windows_NTexample.out/obj/SimpleBootstrap_cpp/SimpleBootstrap_cpp.] Error 127 (ignored)<br>
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<br>Texample.out/inc/examples -I../../../../include -I/cygdrive/c/libreoffice3.4_sdk/Windows_NTexample.out/inc/SimpleBootstrap_cpp -DUNX -DGCC -DFREEBSD -<br>
DCPPU_ENV= -DGXX_INCLUDE_PATH= -DHAVE_GCC_VISIBILITY_FEATURE -ocygdriveclibreoffice3.4_sdkWindows_NTexample.outobjSimpleBootstrap_cppSimpleBootstrap_c<br>pp. SimpleBootstrap_cpp.cxx<br>cc: error trying to exec 'cc1plus': execvp: No such file or directory<br>
make: *** [/cygdrive/c/libreoffice3.4_sdk/Windows_NTexample.out/obj/SimpleBootstrap_cpp/SimpleBootstrap_cpp.] Error 1<br><br>c:\Program Files (x86)\LibreOffice 3.4\Basis\sdk\examples\DevelopersGuide\ProfUNO\SimpleBootstrap_cpp><br>
<br><br>-- <br>Knut Olav Bųhmer<br><br>