Requirements ============ * XCode 3 (https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20792) * homebrew (https://github.com/mxcl/homebrew/wiki/installation) Building the libraries ====================== We assume here that homebrew was installed to /usr/local (the default) Run: brew install qt brew install hunspell brew install poppler --with-qt4 --enable-xpdf-headers Warning: Especially Qt will take a long time to install (up to several hours) [TODO: subversion should be included in XCode; if not, run `brew install subversion`] [TODO: Check if /usr/X11 exists by default; if not, is it necessary? how can it be obtained most easily? from the Mac OS CD?] [TODO: Port poppler patches] Building TeXworks for the first time ==================================== Run: svn checkout http://texworks.googlecode.com/svn/trunk/ texworks-read-only Replace in TeXworks.pro: macx { QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk QMAKE_MACOS_DEPLOYMENT_TARGET = 10.4 # These settings don't seem to actually work for me with Xcode 3.2.1; # I have to change the gcc version manually in the project properties. QMAKE_CC = gcc-4.0 QMAKE_CXX = g++-4.0 INCLUDEPATH += /usr/local/include/poppler INCLUDEPATH += /usr/local/include/poppler/qt4 INCLUDEPATH += /usr/local/include/hunspell LIBS += /usr/lib/libQtUiTools.a LIBS += -L/usr/local/lib LIBS += -lpoppler LIBS += -lpoppler-qt4 LIBS += -lhunspell-1.2 LIBS += -lgcc_eh LIBS += -lz LIBS += -framework CoreServices QMAKE_INFO_PLIST = TeXworks.plist CONFIG += x86 ppc by macx { QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5u.sdk QMAKE_MACOS_DEPLOYMENT_TARGET = 10.5 # These settings don't seem to actually work for me with Xcode 3.2.1; # I have to change the gcc version manually in the project properties. QMAKE_CC = gcc-4.2 QMAKE_CXX = g++-4.2 INCLUDEPATH += /usr/local/include/poppler INCLUDEPATH += /usr/local/include/poppler/qt4 INCLUDEPATH += /usr/local/include/hunspell INCLUDEPATH += /usr/local/include/ LIBS += /usr/lib/libQtUiTools.a LIBS += -L/usr/local/lib LIBS += -lpoppler LIBS += -lpoppler-qt4 LIBS += -lhunspell-1.2 LIBS += -lgcc_eh LIBS += -lz LIBS += -framework CoreServices QMAKE_INFO_PLIST = TeXworks.plist CONFIG += x86_64 Notes: * Check which SDK is available in /Developer/SDKs/ (`ls /Developer/SDKs/*.sdk`) * Replace "CONFIG += x86_64" by "CONFIG += x86" or "CONFIG += ppc" (or a combination thereof) [TODO: Check if there is an easy way to determine the gcc version] Run: cd texworks-read-only qmake-qt4 make [TODO: Plugins, etc.]