Squeak for FreeBSD

ここは、Squeakをむとうが使ってみた時の記録です。 多分、FreeBSDでSqueakを使う話になるかと思います。

最近の作業

lang/squeak VMの4.4.7.2357への更新

  • 2011/03/24

すごく時間があいてしまった。

とりあえず、squeak-vmを4.4.7.2357に更新するべく作業をする。

まだ、以下のような感じ。

insp9100% sudo make
  (snip)
insp9100% sudo make
===>   squeak-4.4.7 depends on executable: unzip - found
===>   squeak-4.4.7 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   squeak-4.4.7 depends on file: /usr/local/bin/cmake - found
===>   squeak-4.4.7 depends on shared library: audio - found
===>   squeak-4.4.7 depends on shared library: ffi - found
===>   squeak-4.4.7 depends on shared library: GLU.1 - found
===>  Configuring for squeak-4.4.7
pwd
/usr/home/mutoh/work/squeak/4.4.7.2357/squeak
echo --with-x
--with-x
/bin/mkdir -p /usr/home/mutoh/work/squeak/4.4.7.2357/squeak/work/Squeak-4.4.7.2357-src
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:58 (STRING):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.


CMake Error at CMakeLists.txt:59 (STRING):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.


CMake Error at CMakeLists.txt:60 (STRING):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.


-- Using CFLAGS -O2 -pipe -fno-strict-aliasing
CMake Error at vm/config.cmake:5 (STRING):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:124 (INCLUDE)


CMake Error at vm/config.cmake:6 (STRING):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:124 (INCLUDE)


CMake Error at vm/config.cmake:7 (STRING):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:124 (INCLUDE)


CMake Error at vm/config.cmake:8 (STRING):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:124 (INCLUDE)


-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/local/lib/libX11.so
-- Found OpenGL: /usr/local/lib/libGL.so 
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for atexit
-- Looking for atexit - found
-- Looking for on_exit
-- Looking for on_exit - not found
-- Looking for interp.h
-- Looking for interp.h - found
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of void *
-- Check size of void * - done
-- Looking for alloca.h
-- Looking for alloca.h - not found
-- Looking for alloca
-- Looking for alloca - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/filio.h
-- Looking for sys/filio.h - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for iconv.h
-- Looking for iconv.h - not found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - not found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for _dyld_present
-- Looking for _dyld_present - not found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for __snprintf
-- Looking for __snprintf - not found
-- Looking for tzset
-- Looking for tzset - found
-- Looking for timezone
-- Looking for timezone - found
-- Performing Test HAVE_TM_GMTOFF
-- Performing Test HAVE_TM_GMTOFF - Success
-- Looking for mmap
-- Looking for mmap - found
-- checking for module 'freetype2'
--   found freetype2, version 12.2.6
-- FT2Plugin: freetype2 found
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for sys/ndir.h
-- Looking for sys/ndir.h - not found
-- Looking for sys/dir.h
-- Looking for sys/dir.h - found
-- Looking for ndir.h
-- Looking for ndir.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Using unsigned short
-- Check if the system is big endian - little endian
-- SocketPlugin: libsocket not found
-- SocketPlugin: libnsl not found
-- Looking for GL/gl.h
-- Looking for GL/gl.h - found
-- PseudoTTYPlugin: util.h not found
-- PseudoTTYPlugin: /usr/include/libutil.h
-- PseudoTTYPlugin: /usr/lib/libutil.so
-- PseudoTTYPlugin: pty.h not found
-- PseudoTTYPlugin: stropts.h not found
-- Looking for openpty
-- Looking for openpty - not found
-- Looking for openpty in util
-- Looking for openpty in util - found
-- UnixOSProcessPlugin: /usr/lib/libpthread.so
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for XShmAttach in Xext
-- Looking for XShmAttach in Xext - found
-- Looking for X11/extensions/Xrender.h
-- Looking for X11/extensions/Xrender.h - found
-- Looking for XRenderQueryVersion in Xrender
-- Looking for XRenderQueryVersion in Xrender - found
-- Looking for GL/glx.h
-- Looking for GL/glx.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- vm-sound-NAS: /usr/local/include/audio/audio.h
-- vm-sound-NAS: /usr/local/lib/libaudio.so
-- vm-sound-Sun: sys/audioio.h not found
-- vm-sound-Sun: sun/audioio.h not found
-- vm-sound-Sun: stropts.h not found
!! vm-sound-Sun disabled
-- vm-sound-OSS: alsa/asoundlib.h not found
-- vm-sound-OSS: libasound not found
!! vm-sound-OSS disabled
!! vm-display-Quartz disabled
-- vm-sound-pulse: /usr/local/lib/libpulse-simple.so
!! vm-sound-MacOSX disabled
-- vm-display-fbdev: linux/fb.h not found
!! vm-display-fbdev disabled
-- vm-sound-ALSA: alsa/asoundlib.h not found
-- vm-sound-ALSA: libasound not found
!! vm-sound-ALSA disabled
-- Configuring incomplete, errors occurred!
*** Error code 1

Stop in /usr/home/mutoh/work/squeak/4.4.7.2357/squeak.
*** Error code 1

Stop in /usr/home/mutoh/work/squeak/4.4.7.2357/squeak.

全然、あかんやん(;-;)

とりあえず、NetBSDのパッチを地味に取り込もう。

Pharo by example

  • 2009年10月19日(月)

twitter:umejavaより、 Pharo by example

例によって、lulu.comのオンデマンド印刷も可能で、PDFはフリーで公開です。

ゲームセンターあらしだった

  • 2009年10月17日(土)

ここに書くべきことでは無いような気もするけど、他に適当な所もないのでまあいいや。

1970年生まれのわたくしにとって、原点は間違いなく「ゲームセンターあらし」でした。 それ以外にも、向かいの団地の友人がPC-6001持ってたのも大きいんだけど。

リンク

シロクマの力

  • 2009年10月14日(水)

twitterのumajavaさんのつぶやきから、 GNU Smalltalk本がフリーで提供されていることを知った。

umejavaさん、またLiveCD(PowerOfWhiteBear)作ってはる… タフだなぁ。

なんで、compositioninputできないの?

  • 2009年09月26日(土)
fuji [ ~/work/squeak ] % squeak -vm-display-X11 -compositioninput SqueakPlugin.image

暴力。

fuji [ squeak-dev/work/Squeak-3.10-4 ] % find . -exec egrep -H compositioninput \{\} \;
./platforms/unix/doc/squeak.1:.B \-compositioninput
./platforms/unix/doc/squeak.1:.B \-compositioninput\c
./platforms/unix/doc/3.10-1.RELEASE_NOTES:  -compositioninput
./platforms/unix/ChangeLog:     -compositioninput and SQUEAK_COMPOSITIONINPUT option to enable
./platforms/unix/vm-display-X11/sqUnixX11.c:  printf("  -compositioninput     enable overlay window for composed characters\n");
./platforms/unix/vm-display-X11/sqUnixX11.c:  else if (!strcmp(arg, "-compositioninput"))

DEBUG_XIM

fuji [ ~/work/squeak ] % squeak -vm-display-X11 -compositioninput SqueakPlugin.image
Locale of im is ja_JP.eucJP
XIMStyle is PreeditPosition and StatusNothing
lookupKeys: ''
lookupKeys: '鐃緒申鐃鐃旬乎随申'
x2sqKey string '鐃緒申鐃鐃旬乎随申' count 6
x2sqKey symbol 0x8848eb00 => 0x00000000
  6 pending key 16=0xc6
  5 pending key 15=0xfc
  4 pending key 14=0xcb
  3 pending key 13=0xdc
  2 pending key 12=0xb8
  1 pending key 11=0xec
fuji [ ~/work/squeak ] % squeak -vm-display-X11 -compositioninput SqueakPlugin.image
Locale of im is ja_JP.eucJP
XIMStyle is PreeditPosition and StatusNothing
lookupKeys: ''
lookupKeys: '日本語'
x2sqKey string '日本語' count 6
x2sqKey symbol 0x8848a320 => 0x00000000
  6 pending key 16=0xc6
  5 pending key 15=0xfc
  4 pending key 14=0xcb
  3 pending key 13=0xdc
  2 pending key 12=0xb8
  1 pending key 11=0xec

lang/squeak-dev作成で、send-prだぁ

  • 2009年09月23日(水)

ああ、連休も終わりだ。

とりあえず、成果も無いのもなんなので、抱え込んでいる3.10-4 VMをlang/squeak-devとして、send-prする。

しかし、なんかいろいろ変更が必要で、パッチの作成に往生した。

ALSA for FreeBSD

  • 2009年09月13日(日)

Porting Chrome to FreeBSD から Porting Chromium to FreeBSD 行くと、 ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.20.tar.bz2 という素敵なものがあるらしい。

ダメじゃん(;-;)

fuji [ work/squeak/alsa-lib-1.0.20 ] % ./configure
  (snip)
fuji [ work/squeak/alsa-lib-1.0.20 ] % make
  (snip)
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../../include -I../../include     -g -O2 -MT cards.lo -MD -MP -MF ".deps/cards.Tpo" -c -o cards.lo cards.c;  then mv -f ".deps/cards.Tpo" ".deps/cards.Plo"; else rm -f ".deps/cards.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -MT cards.lo -MD -MP -MF .deps/cards.Tpo -c cards.c  -fPIC -DPIC -o .libs/cards.o
In file included from control_local.h:22,
                 from cards.c:35:
../../include/local.h:31:20: error: endian.h: No such file or directory
In file included from ../../include/local.h:109,
                 from control_local.h:22,
                 from cards.c:35:
../../include/global.h:137: error: redefinition of 'struct timeval'
../../include/global.h:142: error: redefinition of 'struct timespec'
*** Error code 1

Stop in /usr/home/mutoh/work/squeak/alsa-lib-1.0.20/src/control.
*** Error code 1

Stop in /usr/home/mutoh/work/squeak/alsa-lib-1.0.20/src.
*** Error code 1

Stop in /usr/home/mutoh/work/squeak/alsa-lib-1.0.20.

ちょっと元気がないので、後日調べよう。

Windows Mobile 6でSqueak

  • 2009年05月28日(木)

au E30HTで、とりあえず、動いてる。

でも、以下のような問題がある。

  • 画面がlandscapeに回転しない
  • Altキーが無い

でも、しかるべきソフトをしかるべき設定で使えばなんとかなるかも(?)

リンク

ブラウザのタブがとんでもなく多くなってきたので、記録して閉じる。

はじめてのVM表示系

  • 2009年05月16日(土)

世間がScratch Daysで盛り上がっている今日だけど、家族サービスがあって出かけられない。 いつの間にか、大阪にも会場ができているので、本当は行きたかった…

で、久しぶりにMGL2で、最近のSqueak VM動かせないかの調査を始める。

表示系に関しては、vm-display-nullをとっかかりにしたら良いようだ。

Squeak Docs

  • 2009年05月15日(金)

なんか、iPod touch用の面白そうなアプリが出たそうな。 800円だけど、おふせする。

Last modified: 2008-12-30
Post-it: New Post-it (help)

Text color: [_][_][_][_]

Background: [_][_][_][_][_][_]

Draw Line:

x: y: