anki/README.development

62 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-07-05 11:38:54 +02:00
Running from source
--------------------
2016-07-05 11:38:54 +02:00
For non-developers who want to try this development code, the easiest way is
to use a binary package - please see:
2014-04-12 06:33:53 +02:00
2016-07-05 11:38:54 +02:00
https://anki.tenderapp.com/discussions/beta-testing
You are welcome to run Anki from source instead, but it is expected that you
can sort out all dependencies and issues by yourself - we are not able to
provide support for problems you encounter when running from source.
2019-12-18 05:43:40 +01:00
To start, make sure you have the following installed:
2016-07-05 11:38:54 +02:00
- Python 3.6+
- Qt 5.9.x or 5.11.x+
2019-12-18 05:43:40 +01:00
- portaudio
2017-10-02 09:24:03 +02:00
- mpv
2016-07-05 11:38:54 +02:00
- lame
2019-12-18 05:43:40 +01:00
- npm
2016-07-05 11:38:54 +02:00
If your distro provides PyQt5 and PyQt5-WebEngine packages, you can
install them as well. If you go that path, make sure you install pyqt5-dev-tools
as well.
2016-07-05 11:38:54 +02:00
Otherwise, install them with pip:
2018-07-12 08:09:14 +02:00
$ pip3 install PyQt5 PyQtWebEngine
2019-12-18 05:43:40 +01:00
Then to run the development version:
2014-04-12 06:33:53 +02:00
2019-12-18 05:43:40 +01:00
$ make run
If you get any errors please return to the top and check the requirements
again, and make sure you don't have another version of Anki installed.
If you want to use a language other than English, copy the locale/ folder
from a source tarball into the root of the repo.
2019-12-18 05:43:40 +01:00
To run the unit tests and checks:
2018-07-12 08:09:14 +02:00
2019-12-18 05:43:40 +01:00
$ make check
2018-07-12 08:09:14 +02:00
2016-08-16 07:07:29 +02:00
Before contributing code, please read README.contributing.
If you'd like to contribute translations, please see the translations section
of http://ankisrs.net/docs/manual.html#_contributing
2014-05-10 07:15:13 +02:00
2019-12-18 05:43:40 +01:00
Mac users
----------
2019-12-18 05:43:40 +01:00
You can use homebrew to install some dependencies:
2019-12-18 05:43:40 +01:00
$ brew install python mpv lame portaudio
2019-12-18 05:43:40 +01:00
Windows users
--------------
2019-12-18 05:43:40 +01:00
The build scripts have not been tested on Windows, and you'll find things
easiest if you build Anki using WSL.
https://docs.microsoft.com/en-us/windows/wsl/install-win10