All Projects → ilkou → minilibx

ilkou / minilibx

Licence: other
setup environment for minilibx library in Windows/Linux

Programming Languages

c
50402 projects - #5 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to minilibx

1337
This repository contains a collection of 42School cursus projects in addition to the pool/piscine days (with a detailed step by step explanation). Enjoy!
Stars: ✭ 35 (+29.63%)
Mutual labels:  42, 1337
42-piscine-exam
This repo has all exercises of "C Exam Alone In The Dark - Beginner" sorted from level_00 to Level_05
Stars: ✭ 218 (+707.41%)
Mutual labels:  42, 1337
42MapGenerator
Generate FdF maps of the real world, the Earth's moon and the planet Venus for the project Fil de Fer
Stars: ✭ 58 (+114.81%)
Mutual labels:  42
42tools
Making 42 life better
Stars: ✭ 43 (+59.26%)
Mutual labels:  42
passport-42
Passport strategy for authenticating with 42 using the OAuth 2.0 API
Stars: ✭ 26 (-3.7%)
Mutual labels:  42
42header.vim
Add and update the 42 comment header at the top of your files
Stars: ✭ 15 (-44.44%)
Mutual labels:  42
push swap gui
Implementation of push-swap (42-school project) on python with GUI.
Stars: ✭ 32 (+18.52%)
Mutual labels:  42
init
School 42 project // DevOps project
Stars: ✭ 13 (-51.85%)
Mutual labels:  42
minilibx
Minilibx for linux systems
Stars: ✭ 19 (-29.63%)
Mutual labels:  minilibx
DiscordSMILEY
Idk., a set of cool tools for discord and stuff. you know.
Stars: ✭ 31 (+14.81%)
Mutual labels:  1337
42 Projects
What is 42? How does curriculum look like? A manual reference for all 42 projects I've done so far (Zappy, Malloc, C++ Piscine... check out for more)! 💡📈
Stars: ✭ 111 (+311.11%)
Mutual labels:  42
get-discord-bots-tokens-with-google
Google dorks to easily get some Discord bots tokens
Stars: ✭ 31 (+14.81%)
Mutual labels:  1337
Libft
42 library of basic C functions - queues, lists, memory operations and more 😄
Stars: ✭ 21 (-22.22%)
Mutual labels:  42
ftprintfdestructor
A script that destroys the school 42 project ft_printf
Stars: ✭ 20 (-25.93%)
Mutual labels:  42
ft get next line
42 São Paulo - get_next_line
Stars: ✭ 17 (-37.04%)
Mutual labels:  42
gnlTester
Tester for the get_next_line project of 42 school
Stars: ✭ 87 (+222.22%)
Mutual labels:  42
libftTester
Tester for the libft project of 42 school
Stars: ✭ 141 (+422.22%)
Mutual labels:  42
42ShellTester
Integration test suite for Shell implementation
Stars: ✭ 35 (+29.63%)
Mutual labels:  42
piscine42
School 42 Piscine C projects
Stars: ✭ 11 (-59.26%)
Mutual labels:  42
SuperHackerTool5000
A tool that will hack literally anything on the planet. If you get your hands on this tool, be ready to get put behind bars.
Stars: ✭ 31 (+14.81%)
Mutual labels:  1337

MiniLibX in Linux / Windows · made-with-bash Maintenance Ask Me Anything ! GitHub stars GitHub contributors

Minilibx is a very basic graphical library written in C used in 42 and in Epitech for infography project.

Steps :

Update/upgrade your system:

  • apt-get update
  • apt-get upgrade

Install the following packages:

  • apt install libx11-dev
  • apt install libxext-dev
  • apt install libbsd-dev
  • apt install clang

Get minilibx sources:

git clone https://github.com/42Paris/minilibx-linux minilibx_linux

Compile and install mlx.a in minilibx_linux with

  • cd minilibx_linux; make && sudo ./configure

Change MLXFLAGS in your makefile to:

  • MLXFLAG = -lmlx -lXext -lX11

Notes for windows

* install ubuntu terminal (or other distribution linux ) on windows 10 from windows store

* do the previous steps + you have to install gcc and make

Graphical programs

to run graphical programs on your windows 10 desktop

you need a GUI server, such as X11. Such doesn’t not exist for Windows,

but there are alternatives, one of which is Xming, which can be downloaded

free of charge, from SourceForge (set private when ask)

then enable bash to use xming which can be done by typing the following line

echo "export DISPLAY=localhost:0.0" >> ~/.bashrc

its preferable to launch xming automatically after boot, move xming program to the following repo:

  • C:\Users\login\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  • after adding variables such DISPLAY, open a new bash session by typing
 bash

or

 source ~/.bashrc

Extra notes:

  • the process is explained using bash shell, you should modify it by whatever shell you are using (zsh, sh, ..)
  • for events management, the mask should be (1L << 0) instead of 0
mlx_hook(p.win_ptr, 2, (1L << 0), ft_event_keys, &p);
  • to simplify the usage of keys macros in mac os and linux, include key_macos.h and key_linux.h files:
# if defined(__APPLE__)
#  include <key_macos.h>
# else
#  include <key_linux.h>
# endif

Docker image

based on alpine: ilkou/minilibx or ilkou/minilibx:1.0.0

based on ubuntu: ilkou/minilibx:ubuntu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].