gbuildtojson

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Mon Dec 5 18:18:51 UTC 2016


Hi Jan,

On Mon, Dec 05, 2016 at 06:40:30PM +0100, Jan Iversen wrote:
> If you want I can put this on the dev mailing list as well, but I thought it
> better to keep the noise down.
> 
> OSX Sierra, newest master, I do:
> 
> make
> …. (to control it can build)
> make clean
> and then 
> make gbuildtojson
> 
> that gives me a strange error:
> make gbuildtojson
> make  -rs -f /Volumes/LIBREOFFICE/play/core/Makefile.gbuild gbuildtojson
> ld: warning: directory not found for option '-L/Volumes/LIBREOFFICE/play/testNoMake/workdir/LinkTarget/StaticLibrary'
> ld: warning: directory not found for option '-L/Volumes/LIBREOFFICE/play/testNoMake/workdir/LinkTarget/Library'
> ld: warning: directory not found for option '-L/Volumes/LIBREOFFICE/play/testNoMake/instdir/LibreOfficeDev.app/Contents/Frameworks'
> ld: warning: directory not found for option '-L/Volumes/LIBREOFFICE/play/testNoMake/instdir/LibreOfficeDev.app/Contents/Frameworks'
> ld: warning: directory not found for option '-L/Volumes/LIBREOFFICE/play/testNoMake/workdir/LinkTarget/Library'
> [OCX] jvmfwk/plugins/sunmajor/pluginlib/util_cocoa.mm
> [OCX] vcl/osx/a11yactionwrapper.mm
> In file included from /Volumes/LIBREOFFICE/play/core/vcl/osx/a11yactionwrapper.mm:21:
> In file included from /Volumes/LIBREOFFICE/play/core/vcl/inc/osx/salinst.h:33:
> In file included from /Volumes/LIBREOFFICE/play/core/vcl/inc/salinst.hxx:29:
> /Volumes/LIBREOFFICE/play/core/vcl/inc/displayconnectiondispatch.hxx:24:10: fatal error: 'com/sun/star/awt/XDisplayConnection.hpp' file not found
> #include <com/sun/star/awt/XDisplayConnection.hpp>
>          ^
> 1 error generated.
> /Volumes/LIBREOFFICE/play/core/solenv/gbuild/LinkTarget.mk:323: recipe for target '/Volumes/LIBREOFFICE/play/testNoMake/workdir/ObjCxxObject/vcl/osx/a11yactionwrapper.o' failed
> make[1]: *** [/Volumes/LIBREOFFICE/play/testNoMake/workdir/ObjCxxObject/vcl/osx/a11yactionwrapper.o] Error 1
> Makefile:266: recipe for target 'gbuildtojson' failed
> make: *** [gbuildtojson] Error 2
> 
> 
> It is as if it tries to compile something ??
> 
> any advice/patch is appreciated.

seems like you need to disable compiling of ObjectiveC sources in
https://cgit.freedesktop.org/libreoffice/core/tree/solenv/gbuild/extensions/post_GbuildToJson.mk#n75
like it was done for C/C++/generated C/C++ (lines 75-78 and 94-101).

Likely you need something like:

 gb_LinkTarget_add_objcobject = 
 gb_LinkTarget_add_objcxxobject = 
 gb_Library_add_objcobject = 
 gb_Library_add_objcxxobject = 
 gb_Executable_add_objcobject = 
 gb_Executable_add_objcxxobject = 

added there, to keep this from failing on OSX. More sophistication might be
needed to export the info about Objective C/C++ files to json too, if that is
wanted for e.g. IDEs.

HTH,

Bjoern


More information about the LibreOffice mailing list