2013-01-01から1年間の記事一覧

libxml2でhello, world

ここを参考にXmlTextReaderでhello, world。環境はUbuntu12.04。 libxml2をインストール。 $ sudo apt-get update;sudo apt-get install libxml2-dev hello.cを作成。 [hello.c]#include static void processNode(xmlTextReaderPtr reader) { xmlChar *name,…

vimをビルドしてみる

基本ここを試すだけ。 環境もUbuntu12.04LTS。ビルドの準備。 $ sudo apt-get update;sudo apt-get install mercurial libncurses5-dev ソースを取得してビルド。 $ hg clone https://vim.googlecode.com/hg/ vim $ cd vim $ ./configure --with-features=hu…

UbuntuでTimidity++

Ubuntu12.04でMIDI再生。ここを参考に。 $ sudo apt-get update;sudo apt-get install timidity fluid-soundfont-gm ここから一曲(tamsp18gm.mid)お借りして再生する。 $ timidity tamsp18gm.mid -x 'source /etc/timidity/fluidr3_gm.cfg'; それらしく再生…

UbuntuでIrrlicht

ここを参考にUbuntu12.04でIrrlichtでhello, world。 まずここからirrlicht-1.8.zipをダウンロードして展開(今回は~/irrlicht-1.8/に展開)。ビルドの準備。 $ sudo apt-get update;sudo apt-get install build-essential libglu1-mesa-dev libxxf86vm-dev ビ…

Ubuntuでassimpをビルドして使ってみる

Ubuntu12.04でassimpをビルドして使ってみる。まずここからassimp--3.0.1270-source-only.zipをダウンロードして展開。(今回は~/assimp--3.0.1270-source-only/へ展開)ビルドの準備。 $ sudo apt-get update;sudo apt-get install build-essential cmake lib…

Ubuntuでbullet

http://code.google.com/p/bullet/downloads/listからbullet-2.81-rev2613.tgz をダウンロードして展開。(今回は~/bullet-2.81-rev2613/へ展開)ここを参考にインストール。ビルドの準備。 $ sudo apt-get update;sudo apt-get install build-essential cmake…

Ubuntuでgnuplot

Ubuntu12.04上にgnuplotをセットアップ。端末から、 $ sudo apt-get install gnuplot でインストール完了。早速テスト。 $ gnuplot G N U P L O T Version 4.4 patchlevel 3 last modified March 2011 System: Linux 3.2.0-26-generic-pae Copyright (C) 198…