after building and installing squeak vm.. i tried to run it:
sig@sig-desktop:~/squeak$ squeak Squeak4.1.image could not find display driver vm-display-X11; either: - check that /usr/local/lib/squeak/3.10-6/vm-display-X11.so exists, or - use the '-plugins <path>' option to tell me where it is, or - remove DISPLAY from your environment. Aborted
i tried different things:
- setting LD_LIBRARY_PATH=/usr/local/lib/squeak/3.10-6/
not helps.
running with -plugins argument:
sig@sig-desktop:~/squeak$ squeak -plugins /usr/local/lib/squeak/3.10-6 Squeak4.1.image
don't helps either..
changing the /etc/ld.so.conf cat /etc/ld.so.conf include /etc/ld.so.conf.d/*.conf /usr/local/lib/squeak/3.10-6
don't helps too.
symlinking /usr/local/lib/squeak/3.10-6/vm-display-X11 to /usr/local/lib/squeak/3.10-6/vm-display-X11.so
still no success..
i'm out of variants.. WTF????
Whoever built the http://ftp.squeak.org/4.1/unix-linux/Squeak-4.0.3.2202-linux_i386.tar.gz
package. I'd like to ask.
Why /lib/ subdir contains files with so. prefix?
sig@sig-desktop:~/squeak/Squeak-4.0.3.2202-linux_i386/lib/squeak/4.0.3-2202$ ls -la total 3128 drwxr-xr-x 2 sig sig 4096 2010-04-28 00:34 . drwxr-xr-x 3 sig sig 4096 2010-04-28 00:34 .. -rw-r--r-- 1 sig sig 6008 2010-04-13 21:57 so.AioPlugin -rw-r--r-- 1 sig sig 52568 2010-04-13 21:57 so.B3DAcceleratorPlugin -rw-r--r-- 1 sig sig 6024 2010-04-13 21:57 so.ClipboardExtendedPlugin -rw-r--r-- 1 sig sig 24392 2010-04-13 21:57 so.DBusPlugin -rw-r--r-- 1 sig sig 4672 2010-04-13 21:57 so.FileCopyPlugin -rw-r--r-- 1 sig sig 24768 2010-04-13 21:57 so.FT2Plugin -rw-r--r-- 1 sig sig 55432 2010-04-13 21:57 so.GStreamerPlugin -rw-r--r-- 1 sig sig 7472 2010-04-13 21:57 so.HostWindowPlugin -rw-r--r-- 1 sig sig 8592 2010-04-13 21:57 so.ImmX11Plugin -rw-r--r-- 1 sig sig 27896 2010-04-13 21:57 so.KedamaPlugin -rw-r--r-- 1 sig sig 44940 2010-04-13 21:57 so.KedamaPlugin2 -rw-r--r-- 1 sig sig 11324 2010-04-13 21:57 so.MIDIPlugin -rw-r--r-- 1 sig sig 199012 2010-04-13 21:57 so.Mpeg3Plugin -rw-r--r-- 1 sig sig 23364 2010-04-13 21:57 so.OggPlugin -rw-r--r-- 1 sig sig 8396 2010-04-13 21:57 so.PseudoTTYPlugin -rw-r--r-- 1 sig sig 51372 2010-04-13 21:57 so.RomePlugin -rw-r--r-- 1 sig sig 56360 2010-04-13 21:57 so.Squeak3D -rw-r--r-- 1 sig sig 23572 2010-04-13 21:57 so.SqueakFFIPrims -rw-r--r-- 1 sig sig 34744 2010-04-13 21:57 so.UnixOSProcessPlugin -rw-r--r-- 1 sig sig 10180 2010-04-13 21:57 so.vm-display-custom -rw-r--r-- 1 sig sig 31064 2010-04-13 21:57 so.vm-display-fbdev -rw-r--r-- 1 sig sig 5188 2010-04-13 21:57 so.vm-display-null -rw-r--r-- 1 sig sig 93884 2010-04-13 21:57 so.vm-display-X11 -rw-r--r-- 1 sig sig 18428 2010-04-13 21:57 so.vm-sound-ALSA -rw-r--r-- 1 sig sig 5148 2010-04-13 21:57 so.vm-sound-custom -rw-r--r-- 1 sig sig 7324 2010-04-13 21:57 so.vm-sound-NAS -rw-r--r-- 1 sig sig 3932 2010-04-13 21:57 so.vm-sound-null -rw-r--r-- 1 sig sig 19252 2010-04-13 21:57 so.vm-sound-OSS -rw-r--r-- 1 sig sig 10236 2010-04-13 21:57 so.vm-sound-pulse -rw-r--r-- 1 sig sig 6164 2010-04-13 21:57 so.XDisplayControlPlugin -rwxr-xr-x 1 sig sig 2230209 2010-04-13 21:56 squeakvm
and why, when i building my own VM and installing it, it producing files like that instead:
sig@sig-desktop:/usr/local/lib/squeak/3.10-6$ ls -la total 4004 drwxr-xr-x 2 root root 4096 2010-04-28 03:52 . drwxr-xr-x 3 root root 4096 2010-04-28 03:25 .. -rwxr-xr-x 1 root root 63183 2010-04-28 03:25 FT2Plugin -rwxr-xr-x 1 root root 22052 2010-04-28 03:25 npsqueak.so -rwxr-xr-x 1 root root 226575 2010-04-28 03:45 so.vm-display-X11 -rwxr-xr-x 1 root root 3185155 2010-04-28 03:25 squeak -rwxr-xr-x 1 root root 68841 2010-04-28 03:25 SqueakFFIPrims -rwxr-xr-x 1 root root 86447 2010-04-28 03:25 VideoForLinuxPlugin -rwxr-xr-x 1 root root 90518 2010-04-28 03:25 vm-display-fbdev -rwxr-xr-x 1 root root 21917 2010-04-28 03:25 vm-display-null -rwxr-xr-x 1 root root 226575 2010-04-28 03:25 vm-display-X11 -rwxr-xr-x 1 root root 14521 2010-04-28 03:25 vm-sound-null -rwxr-xr-x 1 root root 32739 2010-04-28 03:25 vm-sound-pulse
(also, see how much less files my build producing).
that is really pissing me off.. after spending 4 hours fighting with CMAKE, configs, compiler and other stuff and finally making the 'maker' happy and building a vm, i can't run it for no reason...
On 28.04.2010, at 02:58, Igor Stasenko wrote:
Whoever built the http://ftp.squeak.org/4.1/unix-linux/Squeak-4.0.3.2202-linux_i386.tar.gz
package.
That would be Ian I think.
I'd like to ask.
Why /lib/ subdir contains files with so. prefix?
Here's the relevant ChangeLog entry:
2009-08-30 piumarta@ubuntu.piumarta.com
* vm/sqUnixMain.c (main): squeakPlugin path defaults to VM executable directory.
* plugins/SqueakFFIPrims/config.cmake: Explicitly include generated source in plugin_sources.
* vm/sqUnixExternalPrims.c (ioLoadModule): squeakPlugins can contain ':'-separated paths. Distinguish module and library prefix and suffix. Try to load a module from each squeakPlugins path with module prefix/suffix, then try dlopen() with no explicit path and platoform's library prefix/suffix.
* vm/config.cmake: Configure {MODULE,LIBRARY}_{PREFIX,SUFFIX}. Change default module prefix to "so.", suffix to "".
* vm/sqUnixMain.c (main): Default plugin location is VM directory.
and why, when i building my own VM and installing it, it producing files like that instead:
sig@sig-desktop:/usr/local/lib/squeak/3.10-6$ ls -la
Yes, seems wrong. Did you try the latest sources too, instead of 3.10-6?
- Bert -
On 28 April 2010 04:23, Bert Freudenberg bert@freudenbergs.de wrote:
On 28.04.2010, at 02:58, Igor Stasenko wrote:
Whoever built the http://ftp.squeak.org/4.1/unix-linux/Squeak-4.0.3.2202-linux_i386.tar.gz
package.
That would be Ian I think.
I'd like to ask.
Why /lib/ subdir contains files with so. prefix?
Here's the relevant ChangeLog entry:
2009-08-30 piumarta@ubuntu.piumarta.com
* vm/sqUnixMain.c (main): squeakPlugin path defaults to VM executable directory.
* plugins/SqueakFFIPrims/config.cmake: Explicitly include generated source in plugin_sources.
* vm/sqUnixExternalPrims.c (ioLoadModule): squeakPlugins can contain ':'-separated paths. Distinguish module and library prefix and suffix. Try to load a module from each squeakPlugins path with module prefix/suffix, then try dlopen() with no explicit path and platoform's library prefix/suffix.
* vm/config.cmake: Configure {MODULE,LIBRARY}_{PREFIX,SUFFIX}. Change default module prefix to "so.", suffix to "".
* vm/sqUnixMain.c (main): Default plugin location is VM directory.
and why, when i building my own VM and installing it, it producing files like that instead:
sig@sig-desktop:/usr/local/lib/squeak/3.10-6$ ls -la
Yes, seems wrong. Did you try the latest sources too, instead of 3.10-6?
i'm using ALL latest: - sources (check out from svn) - VMMaker
generating sources in _separate_ dir
./platforms ./src -- here i set the output of VMMaker ./build -- here a build dir i'm using
cd build ../platforms/unix/config/configure
make make install
squeak -headless Squeak4.1.image could not find module vm-display-X11 Aborted
- Bert -
On 28.04.2010, at 03:30, Igor Stasenko wrote:
On 28 April 2010 04:23, Bert Freudenberg bert@freudenbergs.de wrote:
sig@sig-desktop:/usr/local/lib/squeak/3.10-6$ ls -la
Yes, seems wrong. Did you try the latest sources too, instead of 3.10-6?
i'm using ALL latest:
Your directory is called 3.10-6, see above.
../platforms/unix/config/configure
That's wrong, use the cmake one as Dave said.
It seems like HowToBuildFromSource.txt needs updating. And the obsolete auto-tools stuff should be removed.
- Bert -
On Wed, Apr 28, 2010 at 04:30:48AM +0300, Igor Stasenko wrote:
generating sources in _separate_ dir
./platforms ./src -- here i set the output of VMMaker ./build -- here a build dir i'm using
cd build ../platforms/unix/config/configure
That's the problem. Do this instead:
../platforms/unix/cmake/configure --src=../src
Dave
On 28 April 2010 04:50, David T. Lewis lewis@mail.msen.com wrote:
On Wed, Apr 28, 2010 at 04:30:48AM +0300, Igor Stasenko wrote:
generating sources in _separate_ dir
./platforms ./src -- here i set the output of VMMaker ./build -- here a build dir i'm using
cd build ../platforms/unix/config/configure
That's the problem. Do this instead:
../platforms/unix/cmake/configure --src=../src
Yes. I just figured out it myself, few minutes before. That's seems the root of all problems which i had with it.
This file http://squeakvm.org/unix/platforms/unix/doc/HowToBuildFromSource.html/HowToB...
needs to be updated.
I've been able to finally build the VM and make it run. Thanks everyone for patience :)
Dave
On Wed, Apr 28, 2010 at 03:58:15AM +0300, Igor Stasenko wrote:
Whoever built the http://ftp.squeak.org/4.1/unix-linux/Squeak-4.0.3.2202-linux_i386.tar.gz
package. I'd like to ask.
Why /lib/ subdir contains files with so. prefix?
I think that Ian chose this naming convention to distinguish the plugins from "normal" foo.so shared libraries.
and why, when i building my own VM and installing it, it producing files like that instead:
sig@sig-desktop:/usr/local/lib/squeak/3.10-6$ ls -la total 4004 drwxr-xr-x 2 root root 4096 2010-04-28 03:52 . drwxr-xr-x 3 root root 4096 2010-04-28 03:25 .. -rwxr-xr-x 1 root root 63183 2010-04-28 03:25 FT2Plugin -rwxr-xr-x 1 root root 22052 2010-04-28 03:25 npsqueak.so -rwxr-xr-x 1 root root 226575 2010-04-28 03:45 so.vm-display-X11 -rwxr-xr-x 1 root root 3185155 2010-04-28 03:25 squeak -rwxr-xr-x 1 root root 68841 2010-04-28 03:25 SqueakFFIPrims -rwxr-xr-x 1 root root 86447 2010-04-28 03:25 VideoForLinuxPlugin -rwxr-xr-x 1 root root 90518 2010-04-28 03:25 vm-display-fbdev -rwxr-xr-x 1 root root 21917 2010-04-28 03:25 vm-display-null -rwxr-xr-x 1 root root 226575 2010-04-28 03:25 vm-display-X11 -rwxr-xr-x 1 root root 14521 2010-04-28 03:25 vm-sound-null -rwxr-xr-x 1 root root 32739 2010-04-28 03:25 vm-sound-pulse
(also, see how much less files my build producing).
that is really pissing me off.. after spending 4 hours fighting with CMAKE, configs, compiler and other stuff and finally making the 'maker' happy and building a vm, i can't run it for no reason...
Double check that you are using platforms/unix/cmake/configure and *not* the old platforms/unix/config/configure. It looks to me like you have some sort of wierd mix of the two.
Also, run "platforms/unix/cmake/configure --help" for hints.
If you are tring to build from the saved sources in platforms/unix/src, don't do that. The saved sources in platforms/unix/src will go obsolete as soon as any significant change happens in the rest of the Subversion sources, which is exactly what happened two days ago.
Load VMMaker and use it to generate your sources. Use the "--src=XXX" flag to tell configure where you put the sources that you generated with VMMaker.
Dave
p.s As long as you are loading VMMaker, you should also load SlangBrowser from SqS/VMMaker so you can look at the generated C for your NativeBoost plugin without leaving Squeak.
vm-dev@lists.squeakfoundation.org