mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-14 15:53:32 +01:00
Add libuv examples
This commit is contained in:
34
README.md
34
README.md
@@ -1,11 +1,14 @@
|
||||
fimuni-c-cpp-examples
|
||||
=====================
|
||||
FI MUNI - C and C++ examples
|
||||
============================
|
||||
|
||||
Examples related to talks at FI MUNI.
|
||||
Georgik's blog: http://georgik.sinusgear.com
|
||||
|
||||
Allegro
|
||||
-------
|
||||
|
||||
Allegro is library for interactive applications like games written in C.
|
||||
|
||||
Three examples for Allegro 5.0 library.
|
||||
- example-01 - display smiley
|
||||
- example-02 - display smiley when pressed space
|
||||
@@ -25,6 +28,9 @@ How to run:
|
||||
GTK+
|
||||
----
|
||||
|
||||
GTK+ is library for GUI applications written in C.
|
||||
It has also bindings for many other languages.
|
||||
|
||||
Helloworld example from http://en.wikipedia.org/wiki/Gtk.
|
||||
Requires: GTK+-3
|
||||
Package for Debian: libgtk-3-dev
|
||||
@@ -34,3 +40,27 @@ How to run:
|
||||
cd gtk
|
||||
make
|
||||
./helloworld
|
||||
|
||||
uv
|
||||
--
|
||||
|
||||
libuv is library which has support for event loops, networking and many other
|
||||
features required by cloud computing. This library is core part of Node.js.
|
||||
|
||||
Requires: libuv (part of Node.js)
|
||||
Package for Debian: none, you need to build it from sources. You can use Node.js package.
|
||||
|
||||
How to run hello example:
|
||||
|
||||
cd libuv/hello
|
||||
make
|
||||
./hello
|
||||
|
||||
How to run echo_server example:
|
||||
|
||||
cd libuv/echo_server
|
||||
make
|
||||
./echo_server
|
||||
|
||||
Note: Do not forget to set LD_LIBRARY_PATH so the linker will be able to locate libuv
|
||||
E.g.: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
|
||||
|
||||
Reference in New Issue
Block a user