{"id":14121669,"url":"https://github.com/ilkou/minilibx","last_synced_at":"2025-08-03T00:31:45.829Z","repository":{"id":119727367,"uuid":"203220678","full_name":"ilkou/minilibx","owner":"ilkou","description":"A Guide to setup the MiniLibX library environment for Windows \u0026 Linux","archived":false,"fork":false,"pushed_at":"2023-06-05T22:37:42.000Z","size":17,"stargazers_count":44,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-15T04:01:46.727Z","etag":null,"topics":["1337","42","graphical-programming","graphical-programs","linux","minilibx","windows"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilkou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-08-19T17:41:03.000Z","updated_at":"2024-07-13T16:07:55.000Z","dependencies_parsed_at":"2024-01-15T21:59:48.406Z","dependency_job_id":null,"html_url":"https://github.com/ilkou/minilibx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkou%2Fminilibx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkou%2Fminilibx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkou%2Fminilibx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkou%2Fminilibx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilkou","download_url":"https://codeload.github.com/ilkou/minilibx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510691,"owners_count":17931750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1337","42","graphical-programming","graphical-programs","linux","minilibx","windows"],"created_at":"2024-08-15T04:00:59.463Z","updated_at":"2024-12-06T18:30:28.319Z","avatar_url":"https://github.com/ilkou.png","language":"C","readme":"# [MiniLibX in Linux / Windows](https://github.com/ilkou/minilibx) \u0026middot; [![made-with-bash](https://img.shields.io/badge/Made%20with-Bash-1f425f.svg)](https://www.gnu.org/software/bash/) [![Maintenance](https://img.shields.io/badge/Maintained%3F-no-red.svg)](https://GitHub.com/ilkou/minilibx/graphs/commit-activity) [![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)](https://ilkou.github.io) [![GitHub stars](https://img.shields.io/github/stars/ilkou/minilibx?style=social\u0026label=Star\u0026maxAge=2592000)](https://github.com/ilkou/minilibx/stargazers) [![GitHub contributors](https://img.shields.io/github/contributors/ilkou/minilibx)](https://github.com/ilkou/minilibx/graphs/contributors)\n\nMinilibx is a very basic graphical library written in C used in 42\nand in Epitech for infography project.\n\n## Steps :\n\n### Update/upgrade your system:\n\n* apt-get update\n* apt-get upgrade\n\n### Install the following packages:\n\n* apt install libx11-dev\n* apt install libxext-dev\n* apt install libbsd-dev\n* apt install clang\n\n## Get minilibx sources:\n```\ngit clone https://github.com/42Paris/minilibx-linux minilibx_linux\n```\n\n#### Compile and install mlx.a in minilibx_linux with\n\n* cd minilibx_linux; make \u0026\u0026 sudo ./configure\n\n#### Change MLXFLAGS in your makefile to:\n\n* MLXFLAG = -lmlx -lXext -lX11\n\n## Notes for windows\n```\n* install ubuntu terminal (or other distribution linux ) on windows 10 from windows store\n\n* do the previous steps + you have to install gcc and make\n```\n### Graphical programs\n\nto run graphical programs on your windows 10 desktop\n\nyou need a GUI server, such as X11. Such doesn’t not exist for Windows,\n\nbut there are alternatives, one of which is Xming, which can be downloaded\n\nfree of charge, from [SourceForge](https://sourceforge.net/projects/xming/) (set private when ask)\n\nthen enable bash to use xming which can be done by typing the following line\n\n```\necho \"export DISPLAY=localhost:0.0\" \u003e\u003e ~/.bashrc\n```\n\nits preferable to launch xming automatically after boot, move xming program to the following repo:\n\n* C:\\Users\\login\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\n\n\n- after adding variables such DISPLAY, open a new bash session by typing\n```\n bash\n```\nor\n```\n source ~/.bashrc\n```\n### Extra notes:\n* the process is explained using bash shell, you should modify it by whatever shell you are using (zsh, sh, ..)\n* for events management, the mask should be (1L \u003c\u003c 0) instead of 0\n```\nmlx_hook(p.win_ptr, 2, (1L \u003c\u003c 0), ft_event_keys, \u0026p);\n```\n* to simplify the usage of keys macros in mac os and linux, include key_macos.h and key_linux.h files:\n```\n# if defined(__APPLE__)\n#  include \u003ckey_macos.h\u003e\n# else\n#  include \u003ckey_linux.h\u003e\n# endif\n```\n\n### Docker image\n\nbased on alpine: `ilkou/minilibx` or `ilkou/minilibx:1.0.0`\n\nbased on ubuntu: `ilkou/minilibx:ubuntu`\n","funding_links":[],"categories":["Tools"],"sub_categories":["Graphics"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filkou%2Fminilibx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filkou%2Fminilibx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filkou%2Fminilibx/lists"}