[texworks] Call for Help: Mac builds

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Feb 5 16:47:29 CET 2011


On 05/02/2011 10:56, Stefan Löffler wrote:
> Yes, the *nix build instructions won't work. But assuming you succeed in
> building for Mac, we could put up specific Mac instructions to help
> others. To that end, please document all the steps you take (where you
> got which file, which options you took, where you unpacked them, etc.)
> if possible.
>
> OK, to get you started, here are a few things you'll most likely need
> (adapted from http://code.google.com/p/texworks/issues/detail?id=107):
> 1) The Apple development tools
> (http://developer.apple.com/technologies/tools/ ?)

I already have this from the DVD that comes with MacOS 10.6. So that
part was easy.

> 2) pkg-config from http://pkg-config.freedesktop.org (for building
> poppler-qt4)
> 3) Qt from http://qt.nokia.com/downloads; choose "Go LGPL" and "Qt
> libraries 4.7.1 for Mac" (I hope you won't need the SDK for this, which
> also seems to ship only with 4.7.0 instead of 4.7.1); then download the
> binary package without debug libraries
> 4) poppler and poppler-data from http://poppler.freedesktop.org
> 5) hunspell from http://hunspell.sourceforge.net

All easy to grab.

> Then, follow the instructions 1, 2, 4, 5 for building from
> http://code.google.com/p/texworks/issues/detail?id=107. Step 4 might
> fail - if so, please post/attach the output here (the same applies to
> all other steps, but ideally they shouldn't fail ;)).

I tried missing out step 3 (fontconfig), but that fails as poppler then
stops at the 'configure' stage. So I also downloaded and installed
fontconfig.

The various builds of libraries go okay, although 'make check' does not
look entirely happy for poppler. I'm not sure if that is a fault at
their end.

More importantly, the final buid of TeXworks fails. I'll report back on
this in full in a bit. For the moment, the important part of the log
seems to be

ld: library not found for -lQtUiTools_debug
collect2: ld returned 1 exit status
Command /usr/bin/g++-4.0 failed with exit code 1
Command /usr/bin/g++-4.0 failed with exit code 1
CpResource build/Default/TeXworks.app/Contents/Resources/TeXworks.icns
TeXworks.icns
    cd /Users/joseph/Downloads/texworks-read-only

/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp
-exclude .DS_Store -exclude CVS -exclude .svn -exclude .git
-strip-debug-symbols -resolve-src-symlinks
/Users/joseph/Downloads/texworks-read-only/TeXworks.icns
/Users/joseph/Downloads/texworks-read-only/build/Default/TeXworks.app/Contents/Resources

** BUILD FAILED **

The first line implies that the debug libraries are needed: I'll try
grabbing those in a bit and try the build process again.
-- 
Joseph Wright


More information about the texworks mailing list