Skip to content

This repository contains ports of applications, drivers and libraries for KolibriOS-NG

License

Notifications You must be signed in to change notification settings

kolibrios-nextgen/kolibrios-ports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KolibriOS-NG C/C++ SDK and ports

This repository contains a GCC cross-compiler specially prepared for KolibriOS-NG, as well as ports of libraries and programs

Build GCC-toolchain

So far this build has only been tested on Arch Linux, please write to the issue if you have a problem with another GNU/Linux distribution.

  1. Dependencies need to be installed. For Arch Linux it is:

    sudo pacman -S base-devel gmp libmpc mpfr

    For other distributions, take a look at the OSDev Wiki.

  2. Prepare the /opt/kolibrios-sdk directory for writing. To do this, you can create a symlink to a folder in your home directory. Or change the path for SDK_TOOLCHAIN_DIR and SDK_SYSROOT_DIR in start-recipe.

  3. Start toolchain build from the repository root (i do not recommend using superuser rights):

    ./build-toolchain.sh

    At the end of the build, you will have a compiled GCC compiler for C and C++, the standard C library and the standard C++ library.

  4. You need to add the path to the compiler to the patch PATH environment variable. For example, add:

     export PATH=$PATH:/opt/kolibrios-sdk/toolchain/bin

    to your ~/.bashrc file.

Usage

You can simply use i586-kolibrios-gcc to compile your C program:

i586-kolibrios-gcc hello.c -o hello

There is also a small example in C++17: tiny_ls.cc. You can build it manually or using the kos-recipe.sh script.

Warning

KolibriOS-NG team comes with ABSOLUTELY NO WARRANTY! You may use this software at your own risk. This is still far from stable. This may contain a huge number of errors, data races and unimplemented things. Therefore, do not hesitate to file a bug report and report problems.

Authors

License

Everything that does not relate to ports is distributed under the GPL 2.0 license.

About

This repository contains ports of applications, drivers and libraries for KolibriOS-NG

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published