aboutsummaryrefslogtreecommitdiffstats
path: root/minilibx_linux/README.md
blob: f75e8064c51059c7d2c09d24bea99b1d6f0413ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# minilibx_linux

This is a mirror of the minilibx library.

Ubuntu: You need to install Xlib.h (pd-maxlib) and XShm.h (libxtst-dev) libraries to make it work on a classic 18.04/18.10 installation.

```
# sudo apt install pd-maxlib
# sudo apt install libxtst-dev

```

## Original minilibx for Linux readme

## What is minilibx?

Minilibx is a very basic graphical library writting in C used in
[42](https://42.fr) (also exported in US in the Silicon Valley, see [42
US](https://42.us.org)) and in [Epitech](http://www.epitech.eu/) for infography
project such like *fdf* and *Raytracer*.

You can find a mirror to the native version for Mac OSX
[here](https://github.com/dannywillems/minilix-mac-osx).

## Compile

1. Add a variable named PKG_CONFIG_PATH containing the path to the minilibx
directory.
2. Compile and install with
```
make && sudo make install
```

## Tutorials

Here some tutorials and articles (in French):
* [Installation and basic usage](https://achedeuzot.me/2014/12/20/installer-la-minilibx/)
* [Manual](http://thomas.tissotdupont.free.fr/MinilibX%20Manual/)

## Related projects

* [Binding OCaml](https://github.com/dannywillems/ocaml-minilibx)

## Licence

Licence BSD: Copyright Olivier Crouzet - 2014

Minilibx
======================================

Ce dépot est un mirroir pour la librairie graphique *minilibx*.

## Qu'est-ce que minilibx ?

Minilibx est une librairie graphique très basique écrite en C utilisée à
[42](https://42.fr) (aussi exporté aux USA dans la Silicon Valley, voir [42
US](https://42.us.org)) et à [Epitech](http://www.epitech.eu)

Vous pouvez trouver un mirroir pour la version native pour Mac OSX
[ici](https://github.com/dannywillems/minilibx-mac-osx).

## Compiler

1. Ajouter une variable PKG_CONFIG_PATH contenant le chemin vers le dossier de
   la minilibx.
2. Compilation and installation avec
```
make && sudo make install
```

## Tutoriels

Ici des articles et des tutoriels (en français):

* [Installation et utilisation basique](https://achedeuzot.me/2014/12/20/installer-la-minilibx/)
* [Manuel](http://thomas.tissotdupont.free.fr/MinilibX%20Manual/)

## Projets connexes

* [Binding OCaml](https://github.com/dannywillems/ocaml-minilibx)

## License

License BSD: Copyright Olivier Crouzet - 2014


## Original README


This is the MinilibX, a simple X-Window (X11R6) programming API
in C, designed for students, suitable for X-beginners.


Contents

 - source code in C to create the mlx library
 - man pages (in man/ directory)
 - a test program (in test/ directory) is built
   with the library
 - a public include file mlx.h
 - a tiny configure script to generate an appropriate Makefile.gen


Requirements

 - MinilibX only support TrueColor visual type (8,15,16,24 or 32 bits depth)
 - gcc
 - X11 include files
 - XShm extension must be present


Compile MinilibX

 - run ./configure or make
   both will make a few tests, create Makefile.gen
   and then automatically run make on this generated Makefile.gen .
   libmlx.a and libmlx_$(HOSTTYPE).a are created.
   test/mlx-test binary is also created.


Install MinilibX

 - no installation script is provided. You may want to install
     - libmlx.a and/or libmlx_$(HOSTTYPE).a in /usr/X11/lib or /usr/local/lib
     - mlx.h in /usr/X11/include or /usr/local/include
     - man/man3/mlx*.1 in /usr/X11/man/man3 or /usr/local/man/man3
 - or make DESTDIR=/usr/local install

## Credits

 Olivier CROUZET - 2014-01-06 -