This page contains some information on how to compile TeXstudio on different platforms.
You need the following libraries to compile TeXstudio:
You can set the path to the libraries by passing INCLUDEPATH=<your path> LIBS=<your path>
to qmake
When you open texstudio.pro for the first time in QtCreator, it will ask you for the targets. The default settings are fine. This creates a debug and a relase target.
No further settings are required to build and run the application. However this is not suited for distribution, because the application will depend on the debug versions of the Qt dlls. For a distributable version you should build a relase version.
Recent QtCreator documentation suggests that debugging now works out of the box (I have not tested this so far. Please confirm if you tried it).
Formerly one needed to setup the debugger manually. This is what I did: If you do not only run the application but run it through a debugger, you will need to additionally setup a debugger. For the mingw toolchain, this would be the gdb (python-based version supplied with Qt SDK. It may be that the automatic detection selects the native mingw gdb, which won't work with Qt Creator. In that case you would have to select the python-based version in the options yourself (in my case that was C:\QtSDK\pythongdb\python_2.7based\gdb-i686-pc-mingw32.exe).
To build a release version, make needs a relase command line argument. This is done in Build Settings -> Make -> Make arguments (see image to the right).
To speed up the compilation process by running it on multiple cores, you may optionally use jom instead of mingw-make. See 1.
Compiling on Linux is very easy, because you can find all needed libraries in your package manager.
After installing the development versions of Qt, Poppler and Phonon (latter two optionally), there are various ways to compile it:
The following was reported to download and compile the TXS 2.6.6 Version under Ubuntu 12.04 (when newer versions of TXS are released this will probably also work when exchanging the version numbers below with the most recent ones):
apt-get install build-essential debhelper devscripts libpoppler-qt4-dev
wget 'http://sourceforge.net/projects/texstudio/files/texstudio/TeXstudio 2.6.6/texstudio-2.6.6.tar.gz/download' --output-document=texstudio-2.6.6.tar.gz
cp texstudio-2.6.6.tar.gz texstudio_2.6.6.orig.tar.gz
tar -xf texstudio-2.6.6.tar.gz
cd texstudio*
debuild
On Mac you need to install XCode with its command line tools first. Then install homebrew and run the following commands in the terminal:
brew install pkg-config
brew install cmake
brew install qt
brew install hunspell
brew install poppler --with-qt4 --enable-xpdf-headers
It is also a good idea to install svn command line tools.
Next go to the TeXstudio source folder in the terminal and call "qmake" and then "make". Alternatively you can use the ./BUILD.sh script. Now the texstudio.app should be in your source folder.
The following step-by-step instructions have been reported to work (thanks Robert Diaz):
Obtain home-brew by:
Obtain homebrew by running in terminal (copied from http://mxcl.github.com/homebrew/):
ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
configure homebrew by running in terminal:
brew doctor
correct anything recommended by brew doctor such as:
sudo chown -R username
(any directory needing this operation)
(keep correcting until brew doctor gives you this message: Your system is raring to brew. )
run in terminal:
brew update
and brew upgrade
if need be.
In terminal run (copied from http://mxcl.github.com/homebrew/):
brew install wget
cd /usr/local
find Cellar
ls -l bin
This takes a while in terminal:
brew install -v poppler --with-qt4 --enable-xpdf-headers
Obtain SVN source code from http://texstudio.svn.sourceforge.net/viewvc/texstudio/trunk/
click the "Download GNU tarball" on the bottom of the page
As of this time SVN 3128 the following should be done in Qt Creator: (On OSX 10.8 starting Qt Creator requires going to system preferences, security and privacy, unlock (lover left hand corner): Allow applications downloaded from anywhere to open: Qt Creator)
x86_64
In terminal set the directory to:
cd (path to trunk, after being decompressed of course)
In terminal run:
sudo sh build.sh
hit return four times to answer questions to default.
Optional (if you want a DMG file to use on other computers running OSX 10.8)
sudo macdeployqt texstudio.app -dmg