Contenu | Rechercher | Menus
Selon les tags présents sur cette page, celle-ci est ancienne et ne contient plus d'informations sur une des versions supportées d'Ubuntu.
Apportez votre aide…

LeoCAD

Ne marche que sous Dapper Drake (6.06) pas sous Edgy Eft (6.10) et sous Feisty Fawn (7.04), erreur dans la compilation make config.

Présentation de LeoCAD

LeoCAD permet d'assembler des Lego le tout en 3D, grâce à vos créations avec ce logiciel on peut en faire des images ou encore des petites vidéos.

Pré-requis pour LeoCAD

  1. L'accélération 3D de la carte graphique doit être active (recommandée).
  2. Une connection à Internet configurée et active.
  3. Pour la compilation : avoir installé apt://build-essential, apt://libgtk2.0-dev, apt://libglib2.0-dev, apt://mesa-common-dev, apt://libpng, apt://libjpeg, apt://libjpeg-dev et apt://subversion par le biais de Synaptic/Adept (selon Ubuntu/Kubuntu), ainsi que bien sur toutes les dépendances requises.

Installation de LeoCAD

Avec le *.rpm et alien

Récupérez le *.rpm que l'on trouve sur le site officiel.

Utilisez Alien pour convertir le paquet.

Une fois cela fais, téléchargez le fichiers "pieces.zip" et extrayez-le quelque-part. Puis lancez le programme en spécifiant l'adresse des pièces :

leocad -l /usr/share/leocad/pieces/

Avec le code source

Nous allons voir ensemble l'installation de LeoCAD sous Ubuntu/Kubuntu/Debian et que les pré-requis ont été fait.

Tout d'abord, sachez qu'il s'agit d'une compilation d'un code source, donc la plupart du temps ça sera en ligne de commande.

  • Récupération du code source

Allez dans un terminal et entrez la commande suivante :

linkness@linkness-laptop:~$ svn co http://svn.gerf.org/leocad/tags/leocad-0.75/ leocad75

Cela récupérera le code source de la version 0.75 (à savoir qu'il existe d'autres anciennes versions visibles sur ce site http://trac.gerf.org/leocad/browser/tags?rev=543) et le stockera dans le dossier leocad75 qui sera créé. Allons ensuite dans le dossier créé par cette commande.

Et décompresser le tout simplement.

linkness@linkness-laptop:~$ cd leocad75
  • Compilation du code source récupéré

Tappez cette commande dans votre terminal :

linkness@linkness-laptop:~/leocad75$ make config

Et ceci devrait apparaître à l'écran :

Automatic configuration
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 4
checking size of long long... 8
Determining endianess... little endian
Checking if GLIB and GTK+ are installed... ok
Checking for jpeg support... ok
Checking for zlib support... ok
Checking for png support... ok

Si vous avez des erreurs, vérifiez vos pré-requis !

Faites un make dans le terminal :

linkness@linkness-laptop:~/leocad75$ make
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/profile.o linux/profile.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/dialogs.o linux/dialogs.cpp
linux/dialogs.cpp:2540: attention : «void groupeditdlg_ok(GtkWidget*, void*)» defined but not used
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/dlgpiece.o linux/dlgpiece.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/dlgfile.o linux/dlgfile.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/gtktools.o linux/gtktools.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/main.o linux/main.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/menu.o linux/menu.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/system.o linux/system.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/toolbar.o linux/toolbar.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/gtkmisc.o linux/gtkmisc.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/linux_gl.o linux/linux_gl.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/basewnd.o linux/basewnd.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o linux/glwindow.o linux/glwindow.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/algebra.o common/algebra.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/camera.o common/camera.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/console.o common/console.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/curve.o common/curve.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/file.o common/file.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/globals.o common/globals.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/group.o common/group.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/image.o common/image.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/im_bmp.o common/im_bmp.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/im_gif.o common/im_gif.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/lc_application.o common/lc_application.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/library.o common/library.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/light.o common/light.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/mainwnd.o common/mainwnd.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/matrix.o common/matrix.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/message.o common/message.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/minifig.o common/minifig.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/object.o common/object.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/opengl.o common/opengl.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/piece.o common/piece.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/pieceinf.o common/pieceinf.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/preview.o common/preview.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/project.o common/project.cpp
common/project.cpp: In member function «bool Project::OnKeyDown(char, bool, bool)»:
common/project.cpp:7549: attention : passing negative value «-0x0000000000000000a» for argument 2 to «void Project::HandleCommand(LC_COMMANDS, long unsigned int)»
common/project.cpp:7551: attention : passing negative value «-0x00000000000000001» for argument 2 to «void Project::HandleCommand(LC_COMMANDS, long unsigned int)»
common/project.cpp: In member function «void Project::OnLeftButtonDown(int, int, bool, bool)»:
common/project.cpp:7918: attention : enumeration value «LC_OBJECT_CURVE» not handled in switch
common/project.cpp:7918: attention : enumeration value «LC_OBJECT_CURVE_POINT» not handled in switch
common/project.cpp:7959: attention : enumeration value «LC_OBJECT_CURVE» not handled in switch
common/project.cpp:7959: attention : enumeration value «LC_OBJECT_CURVE_POINT» not handled in switch
common/project.cpp: In member function «void Project::OnLeftButtonDoubleClick(int, int, bool, bool)»:
common/project.cpp:8241: attention : enumeration value «LC_OBJECT_CURVE» not handled in switch
common/project.cpp:8241: attention : enumeration value «LC_OBJECT_CURVE_POINT» not handled in switch
common/project.cpp: In member function «void Project::SnapRotationVector(Vector3&, Vector3&) const»:
common/project.cpp:7250: attention : «NewDelta$m_Value$w» is used uninitialized in this function
common/project.cpp: In member function «void Project::RenderOverlays(int)»:
common/project.cpp:2514: attention : «v2$m_Value$z» may be used uninitialized in this function
common/project.cpp:2514: attention : «v2$m_Value$y» may be used uninitialized in this function
common/project.cpp:2514: attention : «v2$m_Value$x» may be used uninitialized in this function
common/project.cpp:2514: attention : «v1$m_Value$z» may be used uninitialized in this function
common/project.cpp:2514: attention : «v1$m_Value$y» may be used uninitialized in this function
common/project.cpp:2514: attention : «v1$m_Value$x» may be used uninitialized in this function
common/project.cpp:2554: attention : «Angle» may be used uninitialized in this function
common/project.cpp: In member function «void Project::OnMouseMove(int, int, bool, bool)»:
common/project.cpp:8702: attention : «Dir1$m_Value$x» may be used uninitialized in this function
common/project.cpp:8702: attention : «Dir1$m_Value$y» may be used uninitialized in this function
common/project.cpp:8702: attention : «Dir1$m_Value$z» may be used uninitialized in this function
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/quant.o common/quant.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/str.o common/str.cpp
common/str.cpp: In member function «bool String::Match(const String&) const»:
common/str.cpp:200: attention : unused variable «Start»
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/terrain.o common/terrain.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/texfont.o common/texfont.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/texture.o common/texture.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/tr.o common/tr.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/vector.o common/vector.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/view.o common/view.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/im_jpg.o common/im_jpg.cpp
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g  -c -o common/im_png.o common/im_png.cpp
mkdir bin
g++ -o bin/leocad  linux/profile.o linux/dialogs.o linux/dlgpiece.o linux/dlgfile.o linux/gtktools.o linux/main.o linux/menu.o linux/system.o linux/toolbar.o linux/gtkmisc.o linux/linux_gl.o linux/basewnd.o linux/glwindow.o common/algebra.o common/camera.o common/console.o common/curve.o common/file.o common/globals.o common/group.o common/image.o common/im_bmp.o common/im_gif.o common/lc_application.o common/library.o common/light.o common/mainwnd.o common/matrix.o common/message.o common/minifig.o common/object.o common/opengl.o common/piece.o common/pieceinf.o common/preview.o common/project.o common/quant.o common/str.o common/terrain.o common/texfont.o common/texture.o common/tr.o common/vector.o common/view.o common/im_jpg.o common/im_png.o  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -ljpeg -lpng -lz -lm

Maintenant, on doit référencer le programme dans le PATH, afin de pouvoir le lancer à partir de n'importe quel dossier, pour cela faîtes :

linkness@linkness-laptop:~/leocad75$ sudo make install
install -d /usr/local/bin
install -d /usr/local/share/man/man1
install -c -m 0755 bin/leocad /usr/local/bin/
install -c -m 0644 docs/leocad.1 /usr/local/share/man/man1/
  • Installation de la librairie pieces

Si vous entrez la commande leocad, ce dernier demandera une librairie, en effet LeoCAD a besoin d'une librairie de pièces pour s'ouvrir, les pièces de Lego ne sont pas dans le programme de base. Pour récupérer le fichier pieces.zip à cette adresse : http://leocad.org/files/

Puis dézipper ce fichier .zip dans un dossier et notez le chemin de ce dernier, car nous en avons besoin maintenant. Supposons pour ce tutoriel, que pieces.zip a été décompressé dans le chemin /home/votrelogin/leocad/pieces. Entrez donc la commande suivante en remplacant le chemin par votre chemin.

linkness@linkness-laptop:~/leocad75$ leocad -l /home/votrelogin/leocad/pieces
X Error: BadDevice, invalid or uninitialized input device 163
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 163
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device

Normalement, LeoCAD s'ouvre sans problèmes, ne vous occupez pas des erreurs si le logiciel s'ouvre. Nous avons fini l'installation de LeoCAD, mais on va améliorer l'ouverture du programme.

Finalisation d'installation pour LeoCAD

Maintenant que l'on connaît la commande pour ouvrir LeoCAD, on va pouvoir créer un raccourci pour l'ouvrir directement. Modifier donc votre menu, ou bien votre bureau (tout dépend où vous souhaitez le mettre…). Entrez dans le nom LeoCAD, et pour la commande mettez la commande qui ouvre LeoCAD (exemple : leocad -l /home/votrelogin/leocad/pieces tout dépend encore de votre choix) et pour l'icône allez dans le dossier leocad75 que vous avez téléchargé puis dans le dossier linux, pixmaps et prenez le fichier icon32.xpm comme icône (le chemin est donc …leocad75/linux/pixmaps/icon32.xpm).

Voilà maintenant LeoCAD est parfaitement installé :) !

Liens pour LeoCAD

Problèmes, suggestions, modifications à faire

Me contacter : linkness at voila point fr

Contributeurs : rédigé par Linkness, corrections/ajout : adam0509



Le contenu de ce wiki est sous licence : CC BY-SA v3.0