-
Notifications
You must be signed in to change notification settings - Fork 132
Building
If you have corrections, additions, or updates to the instructions given below - or instructions for another distribution not covered yet -, please contact us (preferably on the mailing list or via email.
Building TeXworks on typical GNU/Linux systems is fairly straightforward. You just need standard build tools (gcc, make, cmake, etc.), and the development files (not just runtime libraries) for Qt4, poppler, hunspell, and dbus. The exact set of packages needed will depend how your distribution arranges things; some examples are given here.
For Windows users wanting to try a build, see the page about installing and using the MinGW tools. Thanks to Alain Delmotte and Tomek for their help in researching, testing, and documenting the Windows build procedure.
For Mac users, see the page about building on Mac OS X using Homebrew. Thanks to Charlie Sharpsteen for researching and documenting this Mac OS X build procedure.
If you not only want to build TeXworks, but also package it to share with others, have a look at the file PACKAGING in the source tree.
# yum install poppler-devel qt4-devel hunspell-devel
$ svn checkout http://texworks.googlecode.com/svn/trunk/ texworks-read-only
$ cd texworks-read-only
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./texworks
(Thanks to Dave Crossland for this.)
$ sudo yum groupinstall x-software-development development-tools
$ sudo yum install subversion poppler-devel poppler-qt4-devel qt-devel hunspell-devel dbus-devel
$ svn checkout http://texworks.googlecode.com/svn/trunk/ texworks-read-only
$ cd texworks-read-only
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./texworks
(Thanks to Dave Crossland for this.)
$ sudo aptitude install build-essential subversion libpoppler-qt4-dev libhunspell-dev libdbus-1-dev liblua5.1-0-dev zlib1g-dev
$ svn checkout http://texworks.googlecode.com/svn/trunk/ texworks-read-only
$ cd texworks-read-only
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./texworks
Another option is to use the Ubuntu package repository, thus avoiding the need to compile from source.
Adapted from a report by msiniscalchi:
Under OpenSUSE 11.1, I had to install the following devel packages:
gcc
make
cmake
hunspell-devel
poppler-devel
libqt4-devel
libpoppler-qt4-devel
Running cmake
and then make
produces the binary.
Adapted from a report by wtx358:
Install the following packages:
qt
hunspell
poppler
poppler-data
dbus
Then run
svn checkout http://texworks.googlecode.com/svn/trunk/ texworks-read-only
cd texworks-read-only
mkdir build
cd build
cmake ..
make
./texworks