Inkscape uses the GTK+ widget toolkit and the Glib support library. There is still however, a lot of GObject-based code, so some knowledge of GObject is necessary to work with Inkscape. Inkscape is written in a mixture of C and C++, due to historical reasons. Inkscape started as a fork of Sodipodi, a GNOME application based on GObject. Inkscape Development The Inkscape Codebase The latest instructions are always available on the Inkscape Wiki, see Compiling Inkscape for macOS. The latest instructions are always available on the Inkscape Wiki, see Compiling Inkscape for Windows. To compile and run the test suite, use: make check Run it from the build directory: install_dir/bin/inkscape It will still use all the files (including the preferences.xml) that reside in the ~/.config/inkscape directory. It avoids installation into system locations (where it could conflict with other versions of Inkscape) and allows running multiple versions of Inkscape in parallel. The recommended - DCMAKE_INSTALL_PREFIX argument allows to specify a custom isolated installation location (in the example above install_dir/ inside the build folder).Feel free to adjust this to the number of hardware threads (physical cores) available on your computer. The optional -j8 argument to make tells it to run 8 jobs in parallel.Using ccache is optional but speeds up compilation.DCMAKE_INSTALL_PREFIX=$/install_dir -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache To compile with CMake, do the following: mkdir buildĬmake. Install build dependenciesĭownload and run the script to install everything required for compiling Inkscape (check script to see if your distribution is supported): wget -v -O install_dependencies.shīash install_dependencies.sh -recommended Compile Open a terminal at the root of the folder into which you downloaded the source code in the previous step. If you are on a slow machine, have limited disk space or limited internet bandwidth, you can use shallow clone and single branch clone options to limit the amount of data it will download: git clone -depth=1 -single-branch -recurse-submodules -shallow-submodule Building Inkscape on Linux To update this code later, change into the download folder and use: git pull -recurse-submodules & git submodule updateīy default git will download every branch and every commit. To obtain the latest source code, use the following command (downloads into a subdirectory of your current working directory called "inkscape" by default): git clone -recurse-submodules With this setup, you will be able to commit once you are approved as a member of the Inkscape Developers team on GitLab. Git config -global user.email " Real Name is your real name or a pseudonym you want to use (it should be recognizable to people on the mailing list) and is your e-mail for Inkscape-related correspondence (it can be obfuscated if you want - but the obfuscated email address must be added at gitlab as one of your email addresses, so your commits can be associated with your account). Once you set up your GitLab account, execute the following commands: git config -global user.name " Real Name" We recommend to set up a GitLab account (see above) before obtaining the source code, since that way it is easier to commit later once you get commit access. On most Linux systems, you need to install the git package. Platform-specific installation instructions are available here. Inkscape uses the git version control system. Just downloading the "Release" source code files is not enough, as you will need to get the latest bleeding-edge sources in order to develop Inkscape. The first step is to obtain the source code. Detailed instructions for setting up an account are available in the Gitlab user tutorial. To report bugs and help with technical subjects you will need a GitLab account. If you only want to test but not change the code, you can save time and download the prebuilt latest development version. For the details, take a look at the Inkscape Wiki and other specific documentation, and don't hesitate to ask in the chat or mailing list (see below). This is intended to be a quick reference to getting started with Inkscape development. Getting Started with Inkscape Development
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |