Hacking:Building: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 41:
Mac OS X:
* Xcode.
* Mercurial that shipped with TortoiseHG can't be reached outside. So, if you want nice tag hash number in dialog About App install mercurial independent for this.
Windows:
Line 65:
By default all keys are disabled.
Usuall way to build sources is described below, however on Windows and Linux you have the opportunity to [[#Deploying|build packages]].
<source lang=bash>
cd $SOURCE_DIRECTORY
Line 78 ⟶ 79:
You may also need to ensure that the locations of your compiler and other build tools are listed in the PATH variable. This will depend on your choice of software development environment.
== Deploying ==
=== Mac OS X ===
All you need is to find Valentina in build directory and move it to Applications folder.
=== Windows ===
Go to ''scripts'' folder and run make_install.bat script. It will run building and creating an installer. The script create folder build where in the end you will find your installer.
Note. For making installer you will need to install [http://nsis.sourceforge.net/Main_Page NSIS].
=== Linux ===
==== Debian package ====
* Install tool
<source lang=bash>
sudo apt-get install dh-make
</source>
* Create directory deb_build
<source lang=bash>
mkdir deb_build
</source>
* Copy source directory to *deb_build*
* Copy *debian/* directory from *dist/debian* to root source directory.
* In root source directory with *debian/* directory run:
If you want sign package
<source lang=bash>
dpkg-buildpackage -k<public_key> -rfakeroot
</source>
or
<source lang=bash>
dpkg-buildpackage -rfakeroot
</source>
if not.
That's all. In directory deb_build you will find deb package.
'''Note.''' If your deb package broken and you can't delete him use these two commands. Run commands below as a root in Debian, preceded by sudo in Ubuntu :
<source lang=bash>
mv /var/lib/dpkg/info/PAQUET.* /tmp/
dpkg --remove --force-remove-reinstreq PAQUET
</source>
For example if name of package was **valentina**:
<source lang=bash>
mv /var/lib/dpkg/info/valentina.* /tmp/
dpkg --remove --force-remove-reinstreq valentina
</source>
==== Gentoo ====
For Gentoo we provide ebuild scripts. You can find them on [https://bitbucket.org/dismine/valentina/downloads download page].
Additionaly you can find templates for scripts in folder ''<root>/dist/ebuild''.
== Issues with build ==
|