Установка ПО RepRap на компьютере

From RepRap
Revision as of 21:21, 22 October 2010 by Unti1x (talk | contribs) (translation of "Linux Installation")
Jump to: navigation, search
Разработка документации RepRap II "Мендель"


Это не законченный перевод статьи. Пожалуйста, сделайте свой вклад в перевод документации.
Material-select.png
Please Note this page describes how to install the RepRap standard software. There are alternatives to the standard software available and these are listed on the Comparison of RepRap Toolchains.



Предустановка

ПО RepRap совместимо с 32-битными версиями Linux и Microsoft Windows. Мы работаем над добавлением совместимости с Mac и 64-битными версиями Linux и Windows.

Вам также понадобится установить виртуальную машину Java. Если у Вас она еще не установлена, возьмите её здесь:

Программное обеспечение для компьютера под Windows с установленной Java версии 6 все еще содежит ошибки, поэтому если у Вас возникнут проблемы с Java 6 и ПО, попробуйте деинсталлировать Java 6 и установить последнюю версию Java 5 отсюда:

Вам также понадобится загрузить и установить среду разработки Arduino, чтобы собрать прошивку микроконтроллера для Вашей машины RepRap. Она доступна здесь:

Вам понадобится загрузить и установить дополнения Sanguino к Arduino. Возьмите их здесь:

И, напоследок в этом разделе, Вы можете ознакомиться с программным обеспечением, полезным для работы с RepRap. Список находится здесь:

Загрузка

Загрузите дистрибутив RepRap с сайта Sourceforge:

http://sourceforge.net/projects/reprap/

Имеется множество файлов и архивов проекта, доступные для загрузки, однако, основной пакет (размером приблизительно 65 Мб) имеет имя вида reprap-nnnnnn-ггггммдд.zip. Где nnnnnn - это номер текущей версии машины RepRap, а ггггммдд - это дата выпуска. Это единственный файл, который Вам необходим.

Установка в Linux

Вы можете установить и использовать RepRap на свободном файловом пространстве в Linux.

В своём пространстве

Извлечение скачанных файлов:

$ unzip reprap-nnnnnn-yyyymmdd.zip

Это действие создаст папку с именем reprap-nnnnnn-yyyymmdd (название текущей версии машины RepRap и дата выпуска). Чтобы запустить программное обеспечение RepRap, нужно просто перейти в эту папку и выполнить файл:

$ cd reprap-nnnnnn-yyyymmdd
$ ./reprap

Установка для всех опльзователей

Если вы хотите установить RepRap с доступом для всех пользователей в системе, нужно зайти под суперюзером.

убедитесь, что скачали reprap-nnnnnn-yyyymmdd.zip в папку /xxx/yyy. Перейдите в /usr/local, а затем извлеките архив:

# cd /usr/local
# unzip /xxx/yyy/reprap-nnnnnn-yyyymmdd.zip

Потом перейдите в папку /usr/local/bin и создайте короткий шелл-скрипт reprap в любом текстовом редакторе (например, в gedit).

# cd /usr/local/bin
# gedit reprap

Скопируйте и вставьте следующие три строчки в скрипт и сохраните его:

#!/bin/sh
cd /usr/local/reprap-nnnnnn-yyyymmdd
./reprap

(Не забудьте заменить nnnnnn и yyyymmdd на соответствующие значения.)

Наконец, выставите права на исполнение скрипта:

# chmod 755 reprap

Теперь любой пользователь может запустить скрипт командой консоли "reprap".

В файле /usr/local/reprap-nnnnnn-yyyymmdd/reprap-icon.png содержится иконка RepRap, которую можно использовать для значка на рабочем столе или панели задач. Путь к программе - /usr/local/bin/reprap .

Теперь можно удалить установочный .zip-файл:

# rm /xxx/yyy/reprap-nnnnnn-yyyymmdd.zip

Linux AMD64

The reprap software comes with rxtx and java3d binaries needed for 32bit arcitectures so getting the reprap software working on amd64 either means installing 32bit version of java or installing native 64bit versions of the libraries. For the latter option here is how you can set it up.

For java3d its a simple these can simply be installed using

sudo apt-get install libjava3d-jni

For rxtx you can download binaries for the latest stable version here expand the zip using

unzip Downloads/rxtx-2.1-7-bins-r2.zip

copy the 64 bit binary to /usr/lib

sudo cp rxtx-2.1-7-bins-r2/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so /usr/lib

Now all that has to be done is to soft link these libs to where the reprap software expects them to be

cd  reprap-mendel-20100105
rm libj3dcore-ogl.so
rm librxtxSerial.so
ln -s /usr/lib/jni/libj3dcore-ogl.so
ln -s /usr/lib/librxtxSerial.so

GilesBathgate 10:50, 16 January 2010 (UTC)

Windows Installation

You will need administrator privileges to do this.

Create a new folder:

C:\Program Files\Reprap

Unpack the ZIP file anywhere you like on your system. It will create a folder called reprap-nnnnnn-yyyymmdd where nnnnnn is the name of the current RepRap machine and yyyymmdd is the date of the release. Move all the files in that folder into C:\Program Files\Reprap.

You can then delete the reprap-nnnnnn-yyyymmdd if you like, and the ZIP file.

In C:\Program Files\Reprap there is a .BAT file called reprap.bat. Running that will launch the RepRap host software. You can copy that .BAT file to your desktop or elsewhere to give you a clickable executable.

Source Code

Distribution Contents

Information on the files in the RepRap distribution are available at RepRap Distribution Files.

Getting the latest sources

All the files for RepRap are kept in a Subversion repository on Sourceforge.

You can use your web browser to inspect and download individual files here.

If you want to get the latest versions of files you can check them out of the repository. But take care - these files will be development versions that may have bugs.

The simplest way to obtain the files is probably to use the Eclipse software development environment, which is used by all the RepRap hardware and software developers.

Do the following:

  1. Download and install Eclipse from this link,
  2. Download and install Subclipse (that is, Subversion for Eclipse) from this link, and
  3. Run Eclipse.

In Eclipse go to the menu: Window -> Open Perspective -> Other... and you will get a menu containing (among other things) SVN Repository Exploring. Select that and click on OK. It should open a window called SVN Repository. Right mouse click in that window and select New -> Repository location.

Copy and paste the RepRap repository URL: https://reprap.svn.sourceforge.net/svnroot/reprap/ as the location.

Open the repository (the little arrow at its left) and go down to trunk. Right-mouse-click on mendel, and select Checkout.... This will give you all the mechanical and electronic design files, and the microcontroller firmware sources.

Next go down to reprap and check out host (this is the Java software for the host computer).

Note that you are downloading a lot of information (about 60M), so these will take quite a while on a slow connection.

Now go back to the Java view in Eclipse (two little arrows: >> top right) and you should have all the project's files.

You can update any file or a whole folder full of files from the repository at any time by right-clicking on it and going to team -> update...

To work with the Java source code you will need the system-dependent libraries that RepRap uses. Those are in the directory Reprap/lib/system-dependent/. You will need to copy (or create links to) the .so files (Linux) or the .dll files (Windows) in there to the place in the Java system where these are stored.

Alternatives

Alternative software packages are available to generate G Code and drive the Rep Rap. More information on these can be found on the Alternative Software page.