--------------- CMake --------------- DECLARATIONS (prefix with -D, set bool options on with 1; off with 0) PREFIX, MANDIR, BINRELOC, DATADIR, TRAYICON NO_MUSEEKD, NO_MUSCAN, NO_SETUP, NO_PYMUCIPHER, (prefix with -D) # mkdir workdir # cd workdir/ # cmake -DPREFIX=/usr .. # (or) cmake -DPREFIX=/usr -DTRAYICON=1 -DBINRELOC=1 -DMANDIR=share/man -DDATADIR=/usr/share # make # (or) make VERBOSE=1 # make install Museeq's Qmake compilation instructions Requirements: * The Mucipher source should be in the subdirectory, ./Mucipher If it is not, place it there or modify the museeq.pro to point at it. * Install QT 3.x Development packages, if needed, which should include: * qmake, lrelease, lupdate, moc, uic * Other required utilities include: * make * g++ ( GCC for C++ ) Qmake Options: CONFIG OPTIONS * QSA: Scripting Support * BINRELOC: Binary Relocation * TRAYICON: Compile Trayicon OTHER OPTIONS * PREFIX: If you do not use BINRELOC, you should set PREFIX to whatever path museeq will be installed into. (Same path as make's INSTALL_ROOT) PREFIX defaults to /usr * DESTDIR: where the museeq binary is placed (on make and make install) DESTDIR defaults to the workdir/ subdirectory # NOTE: there's a quirk with qmake, in that the binary wants to be moved to # DESTDIR during the "make". If you don't set DESTDIR, you'll need to do the # following: qmake; make; qmake; make install Example Qmake commands: * qmake "CONFIG += QSA BINRELOC TRAYICON" * qmake "CONFIG += QSA BINRELOC" * qmake "CONFIG += BINRELOC" PREFIX=/usr * qmake PREFIX=/usr/local DESTDIR=/usr/local/bin * qmake PREFIX=/home/username/build/usr DESTDIR=/home/username/build/usr/bin * qmake Make Options: * INSTALL_ROOT: the prefix of the path where museeq will be installed # INSTALL_ROOT must be set, or it'll be installed in /bin and /share # If you want translations, run updatetranslations.py # The updatetranslations script uses lupdate to merge qt_??.ts and museeq_??.ts # into museeq_??.qm 1a) Example: ./updatetranslations.py $QTDIR fr de # Run lupdate to do the same, without the qt_??.ts files 1b) lupdate museeq.pro # Generate Makefile 2) qmake # Compile 3) make # Installation 4) su -c "make install INSTALL_ROOT=/usr" or sudo make install INSTALL_ROOT=/usr or make install INSTALL_ROOT=/home/username/build/usr