[texworks] Call for Help: Mac builds
Stefan Löffler
st.loeffler at gmail.com
Sat Feb 5 19:23:55 CET 2011
On 2011-02-05 18:34, Joseph Wright wrote:
> On 05/02/2011 15:47, Joseph Wright wrote:
>> 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.
> Installing the debug stuff deals with that. Now I get a couple of warnings
>
> ld: warning: in /usr/local/lib/libpoppler.12.dylib, file was built for
> unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/local/lib/libpoppler-qt4.3.dylib, file was built
> for unsupported file format which is not the architecture being linked
> (i386)
>
> then a long list starting
>
> Undefined symbols:
> "Poppler::Document::toc() const", referenced from:
> PDFOutlineDock::fillInfo() in PDFDocks.o
> "Poppler::FontInfo::name() const", referenced from:
> PDFFontsDock::fillInfo() in PDFDocks.o
> PDFFontsDock::fillInfo() in PDFDocks.o
>
> followed by the inevitable
>
> ** BUILD FAILED **
>
> Any suggestions from anyone? I wonder if this is a 32-bit versus 64-bit
> thing.
Unfortunately, I know too little about the Mac system. However, I have a
few thoughts about this:
* If the linker can't read the poppler libs, it is no wonder that there
are many unresolved references to it. If there are no other problems in
the linker output (e.g., undefined symbols not related to poppler),
we're on the right track.
* It strikes me as odd that the lib is called libpoppler-qt4.3.dylib.
You did download Qt 4.7, right? Was it used correctly? Or is the
filename just coincidence, and the .3 does not signify the minor version
of Qt 4?
* In TeXworks.pro, I found on line 84 the statement "CONFIG += x86
ppc". Depending on your system, you may have to change this if you're
not building universal binaries for now.
HTH
Stefan
More information about the texworks
mailing list