LoginSignup
2
1

More than 5 years have passed since last update.

uvbookのサンプルコードを動かす

Posted at

Table of Contents — An Introduction to libuv

uvbookとは?

libuvを解説したドキュメントです。
日本語訳があります。

node.jsを支えるlibuvのチュートリアル"uvbook" :目次 - 自由課題

サンプルコードの動かしかた

uvbookはソースとサンプルコードをgithubで公開しています。

nikhilm/uvbook

サンプルコードと一緒にlibuvが同梱されています。両方をコンパイルすれば実行できます。

libuvのコンパイル

libuvのコンパイルにはlibtoolが必要です。MacではHomebrewを使ってインストールできます。

brew install libtool
cd libuv
./autogen.sh
./configure
make

サンプルコードのコンパイル

cd code
make

動かす

たとえば、最初のサンプルを動かしてみます。

code/helloworld/helloworld

以下が表示されます。

Now quitting.
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1