少々理由あってlinuxのGTKアプリをWindows で動くように変換した。 以下はその備忘録 Qtなら簡単にWindowsとLinuxでやりとりできるのを知ってたが、同じことを GTKでできるかを調べるはめに追い込まれた。 そのアプリの名前はgerbv(http://sourceforge.jp/projects/sfnet_gerbv/) 基板のガーバーデータ(RX-274X)を見るアプリだ。 これ自体はapt get source gerbvでソースがおとせるので割合簡単にmakeできる。 そしてそのソースを例えばeclipseに突っ込んでビルドするのも難しくない。 全部ソースを適当なeclipseのプロジェクトにぶち込んで、makeの引数から -Iのインクルード、-Dのマクロ、link をそのままコピーしてeclipseに入れたらあっさりビルドできた。 あとちょっとソースはいじっ