Re: Build LO for Android on Mac OS 10.8
>> There are several "undefined reference" errors according to >>vcl:PDEFWriter >> and PDFWriterImpl during tail_build. > >Should be fixed since yesterday evening, git pull -r and try again. > >--tml Thanks, tml and all of you! It builds successfully. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Build LO for Android on Mac OS 10.8
There are several "undefined reference" errors according to vcl:PDEFWriter and PDFWriterImpl during tail_build. Complete log can be found at http://pastebin.com/9zhVBvf2 Any advice? Thanks. James ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Build LO for Android on Mac OS 10.8
>On 13/08/12 12:04, James Chen wrote: >> Encounter another error while building freetype >> >> log for /Users/jamchen/Developer/Android/libreoffice_core/freetype >> dmake: >> >>/Users/jamchen/Developer/Android/libreoffice_core/solenv/inc/settings.mk: >> line 55: Error: -- Include file >> >>/Users/jamchen/Developer/Android/libreoffice_core/solver/unxandr.pro/inc/ >>37 >> 0minor.mk, not found > > >this indicates freetype is missing a dependency on the "solenv" module, >have fixed that on master now, please try again Yes, thank you, it fixes the issue. James ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Build LO for Android on Mac OS 10.8
Encounter another error while building freetype log for /Users/jamchen/Developer/Android/libreoffice_core/freetype dmake: /Users/jamchen/Developer/Android/libreoffice_core/solenv/inc/settings.mk: line 55: Error: -- Include file /Users/jamchen/Developer/Android/libreoffice_core/solver/unxandr.pro/inc/37 0minor.mk, not found log for /Users/jamchen/Developer/Android/libreoffice_core/ridljar/prj [ build JVM ] CustomTarget/ridljar/javamaker/done [ build CUS ] ridljar/javamaker [ build JCS ] Jar/ridl Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/jamchen/Developer/Android/libreoffice_core/ridljar/com/sun/star/lib/ util/WeakMap.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. [ build JAR ] ridl cat: /Users/jamchen/Developer/Android/libreoffice_core/workdir/unxandr.pro/Misc/ DUMMY: No such file or directory rm: /Users/jamchen/Developer/Android/libreoffice_core/workdir/unxandr.pro/Jar/r idl.jar: No such file or directory make[2]: *** [/Users/jamchen/Developer/Android/libreoffice_core/workdir/unxandr.pro/Jar/ ridl.jar] Error 1 James ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Build LO for Android on Mac OS 10.8
Hi, Stephan, >> >> Thanks for pointing out and the hints. >> Removing /opt/local/bin from PATH does not work for me. > >Even not with a clean rebuild from scratch afterwards? I'd assume some >mis-configuration (likely caused by picking up MacPort's >/opt/local/bin/pkg-check) was still manifest in your build. Good point. Need time to figure it out. Thanks. James ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Build LO for Android on Mac OS 10.8
>>ld: warning: ignoring file /opt/local/lib/libiconv.dylib, file was built >> for unsupported file forma >> ld: warning: ignoring file /opt/local/lib/libz.dylib, file was built for >> unsupported file format >> ld: in /opt/local/lib/libiconv.2.dylib, file was built for unsupported >> file format > >Hmm, what is this /opt/local/lib? In general the LO build for MacOSX >will break if it tries to use some existing add-on builds of common >3rd-party libraries, like MacPorts etc. At least that is what >everybody says, I don't have personal experience as I don't have >MacPorts... Try to make sure this /opt/local stuff is not found when >building LibreOffice, removing /opt/local/bin from PATH (if you have >it there) probably helps. > >--tml Thanks for pointing out and the hints. Removing /opt/local/bin from PATH does not work for me. I turn out to reinstall the lib as universal binary via MacPort as others suggest to similar issue. E.g.: sudo port upgrade --enforce-variants libiconv +universal I probably should override the linker path to prevent the build to link against the MacPort version of libs? Anyway, it's on the track now. :P James ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Build LO for Android on Mac OS 10.8
>I don't think that's a good idea, it mixes up options for the build >and host platforms. (Consider the case of cross-compiling from an >Intel Mac to PowerPC-based Mac, in theory it should be possible to use >a current Xcode and SDK for the build platform code, and Xcode 3 + >10.4 SDK for the host platform. Not that there seems to be much >interest in trying out such cross-compilations.) > >There is the --with-build-platform-configure-options switch for that, >you can pass >--with-build-platform-configure-options=--with-macosx-sdk=10.6. Thanks for the advice. Learned. It encounters error for now: ld: warning: ignoring file /opt/local/lib/libiconv.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libiconv.dylib ld: warning: ignoring file /opt/local/lib/libz.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libz.dylib ld: in /opt/local/lib/libiconv.2.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libiconv.2.dylib for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[7]: *** [libgio-2.0.la] Error 1 make[6]: *** [all-recursive] Error 1 make[5]: *** [all] Error 2 make[4]: *** [all-recursive] Error 1 make[3]: *** [all] Error 2 dmake: Error code 2, while making './unxmacxi.pro/misc/build/so_built_so_glib' The complete error log is at http://pastebin.com/3PCh4yD6 James ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Build LO for Android on Mac OS 10.8
In my environment, Mac OS 10.8 and Xcode 4.4.1, without specifying Mac OS X SDK version, it picks 10.6 as Mac OS X SDK. And then it failed since it can't find gcc-4.2. So I tried to use option --with-macosx-sdk with 10.8. It's building now! During applying --with-macosx-sdk option, I found some typos (maybe?), one of them leads me to apply wrong option'--with-macox-sdk'. I list them below just in case you are interested: diff --git a/configure.in b/configure.in index e060457..7633ea7 100644 --- a/configure.in +++ b/configure.in @@ -2472,7 +2472,7 @@ dnl Check / find MacOSX SDK and compiler, version checks dnl === if test "$_os" = "Darwin"; then -# If no --with-macox-sdk option is given, first look for the 10.4u +# If no --with-macosx-sdk option is given, first look for the 10.4u # SDK (which is distributed with the obsolete Xcode 3), then the # 10.6, 10.7 and 10.8 SDKs, in that order. (Don't bother looking # for the 10.5 SDK, unlikely somebody would have that but not @@ -2513,7 +2513,7 @@ if test "$_os" = "Darwin"; then with_macosx_sdk=10.8 fi fi -if test -z "with_$macosx_sdk"; then +if test -z "$with_macosx_sdk"; then AC_MSG_ERROR([Could not figure out the location of a Mac OS X SDK and its version]) fi Fi And I also pass the --with-macosx-sdk option through to the "BUILD platform configuration" to make it work: @@ -3731,6 +3731,7 @@ if test "$cross_compiling" = "yes"; then --with-num-cpus="$with_num_cpus" \ --with-max-jobs="$with_max_jobs" \ --without-doxygen \ +--with-macosx-sdk="$with_macosx_sdk" \ $sub_conf_opts \ 2>&1 | sed -e 's/^//' test -f ./config_host.mk 2>/dev/null || exit Not sure I'm doing it in a appropriate approach though (This is my first time to get involved with auto-config/autogen stuff). James ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Build LO for Android on Mac OS 10.8
Thank you, tml! I've pulled latest code and I'm trying to build it. According to the location of Xcode.app, I recall it's kind of personal preference. :P I thought it was misplaced so I move it back. Luckily, xcode-select and xcrun are still in /usr/bin. Thanks, again. I'll report in the result later. James On 12/8/10 下午9:13, "Tor Lillqvist" wrote: >The root cause to your problem is that you are building the MacOSX >build-time software as 64-bit code, and LO (including the build-time >tools that it builds in order to use them later during the build) >needs to be built as 32-bit code on the Mac. (And Windows, BTW. It's >only for Linux that LO can be built as 64-bit code. Which is a bit >sad, but not really a crucial misfeature;) > >I see that you have your Xcode 4 in /Developer/Applications/Xcode.app, >is that just a personal preference of yours, or is there some common >situation in which Xcode ends up in such a location? (I assume the >normal one is /Applications/Xcode.app.) > >Anyway, just add -m32 to the CC_FOR_BUILD and CXX_FOR_BUILD to >indicate that 32-bit code should be produced. Or, since last night, >you should be able to drop the CC_FOR_BUILD and CXX_FOR_BUILD settings >from your autogen.lastrun, the intent is now that the configure script >should then find out automatically which Xcode and SDK to use and >which compiler. I hope that it will work also for you even if you use >that /Developer/Applications path, as long as xcode-select and xcrun >are still in /usr/bin for you, are they? > >--tml ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Build LO for Android on Mac OS 10.8
Hello, I'm currently building LO for Android on Mac OS 10.8 Here's my autogen.lastrun:http://pastebin.com/2kyiRBFf And it encounters errors while building module jurt and ucbhelper. The build_error.log is: http://pastebin.com/jZT9L7in I didn't find anything useful on internet according to the issues. Any advice will be very appreciated. Yours Truly, James Chen jamesc...@actions-micro.com <mailto:brian...@actions-micro.com> +886-2-2223-8598 ext. 222 Actions Microelectronics. -- Please change Text Encoding to "UTF-8", if you can't read my mail. -- ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice