[texworks] Call for Help: Mac builds

Stefan Löffler st.loeffler at gmail.com
Sat Feb 5 19:15:57 CET 2011


Hi,

On 2011-02-05 16:47, Joseph Wright wrote:
> On 05/02/2011 10:56, Stefan Löffler wrote:
>> 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.

OK, so they still haven't changed that dependency (they did for
Windows). Jonathan has told me repeatedly in the past that he doesn't
want to pull in fontconfig, mainly because it increases the application
size tremendously. He also included patches for that in the Tw
repository in the poppler-patches subdirectory. Eventually, we should
definitely try to include these, but for now using fontconfig seems fine
to get the rest of the build right.

> 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.

Depends on which part fails. I have to admit I never ran `make check`
myself, but poppler contains many different components and bindings. We
only need poppler-qt4, so if that builds OK everything is fine (the rest
could even fail, as it does on Windows).

> 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.

Actually, getting this far is already awesome! :)
However, using debug libraries for the build not optimal. Instead, we
should try to figure out why the linker tries to pull them in. Could you
post the command line that started the linker? Or even the whole build
log (when you build now, it should skip the compiling stage and only do
the linking)?

HTH
Stefan


More information about the texworks mailing list