Compilation of Ultracopier

From Ultracopier wiki
Jump to: navigation, search

Contents

Prepare

Drop the debug

The debug mode is very expensive for resources, you can disable it by:

find -name "Variable.h" -exec sed -i "s/#define ULTRACOPIER_DEBUG/\/\/#define ULTRACOPIER_DEBUG/g" {} \;
find -name "Variable.h" -exec sed -i "s/#define ULTRACOPIER_PLUGIN_DEBUG/\/\/#define ULTRACOPIER_PLUGIN_DEBUG/g" {} \;
find -name "Variable.h" -exec sed -i "s/#define ULTRACOPIER_PLUGIN_DEBUG_WINDOW/\/\/#define ULTRACOPIER_PLUGIN_DEBUG_WINDOW/g" {} \;

Install the tool to compil if needed

ubuntu

sudo apt-get install qt4-dev-tools build-essential dev-tools qt4-dev qt4-qmake

debian

sudo apt-get install build-essential libqt4-dev qt4-dev-tools

Compilation

To compil the main application, do in console:

qmake;make

And to make the language:

lrelease -nounfinished -compress -removeidentical *.pro

For the plugin

Do the same as the main application above.

Assemble

Into informations.xml, replace:

<architecture>windows-x86</architecture>

By (or you platform code found into platform.h):

<architecture>linux-x86_64-pc</architecture>

Assemble this structure into search path (~/.config/Ultracopier/, near the binary, /usr/share/ultracopier/, /usr/lib/ultracopier/), given for linux (remplace .so by .dll or .dylib if needed):

CopyEngine/Ultracopier/informations.xml
CopyEngine/Ultracopier/Languages/fr/translation.qm
CopyEngine/Ultracopier/libcopyEngine.so
Themes/Oxygen/informations.xml
Themes/Oxygen/Languages/fr/translation.qm
Themes/Oxygen/libinterface.so
fr/translation.qm
fr/informations.xml
fr/flag.png
Listener/catchcopy-v0002/informations.xml
Listener/catchcopy-v0002/liblistener.so
SessionLoader/KDE4/informations.xml
SessionLoader/KDE4/libsessionLoader.so
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox