[Vm-dev] Cog on linux

Eliot Miranda eliot.miranda at gmail.com
Sat Jul 17 18:00:23 UTC 2010


On Fri, Jul 16, 2010 at 4:37 PM, Rob Withers <reefedjib at yahoo.com> wrote:

>
>
>
> --------------------------------------------------
> From: "Rob Withers" <reefedjib at yahoo.com>
> Sent: Friday, July 16, 2010 7:08 PM
>
> To: "Squeak Virtual Machine Development Discussion" <
> vm-dev at lists.squeakfoundation.org>
> Subject: Re: [Vm-dev] Cog on linux
>
>
>>
>
>
>
>>
>> --------------------------------------------------
>> From: "Levente Uzonyi" <leves at elte.hu>
>> Sent: Friday, July 16, 2010 6:44 PM
>>
>> To: "Squeak Virtual Machine Development Discussion"
>> <vm-dev at lists.squeakfoundation.org>
>> Subject: Re: [Vm-dev] Cog on linux
>>
>>
>>> On Fri, 16 Jul 2010, Rob Withers wrote:
>>>
>>>
>>>>
>>>>
>>>> --------------------------------------------------
>>>> From: "Casey Ransberger" <casey.obrien.r at gmail.com>
>>>> Sent: Friday, July 16, 2010 5:10 PM
>>>> To: "Squeak Virtual Machine Development Discussion"
>>>> <vm-dev at lists.squeakfoundation.org>
>>>> Subject: Re: [Vm-dev] Cog on linux
>>>>
>>>>
>>>>> I think you just need libasound
>>>>>
>>>>>
>>>> Ok guys, I am working on it with my webhost.  I am not sure how I can
>>>> install an RPM on their box, so I submitted a ticket.
>>>>
>>>
>>> Actually I don't think that any sound plugin would work, because the
>>> 32-bit binaries will not be available. But you don't need sound at all on
>>> a server, do you?
>>>
>>>
>> You lost me on 32-bit binaries not being available.  I found
>> alsa-lib-1.0.13.tar.bz2 and I am preparing to build it.
>>
>>
>> My error said:
>> /usr/bin/ld: skipping incompatible /usr/lib64/libasound.so when searching
>> for -lasound
>> /usr/bin/ld: skipping incompatible /usr/lib64/libasound.a when searching
>> for -lasound
>>
>> So it looks like I need a .so and a .a file.  As rusty as I am on building
>> for unix, are these static libs or shared libs?  I do need to figure out
>> how
>> to cross compile to a 32bit system.  I am researching this for the right
>> target.  I need i386-linux or something.  I am attaching the config.guess
>> file they use for this.  Can anyone give me a helpful hand what I should
>> specify doing ...
>>
>>       './configure --enable-shared=no --enable-static=yes
>> --target=i386-linux'
>>
>>
> Damn!  I can't figure out how to change the install path to other than
> /usr/include, etc.  I can't write to those directories.  I am stuck.
>
>  Regarding your observation that I don't need sound on a server, that is
>> spot
>> on.  It may be too entangled for the time being.
>>
>
> Is it possible to unentangle sound?
>

Try configuring Cog without libalsa.  e.g.

../../platforms/unix/config/configure --without-vm-sound-ALSA
--without-vm-display-fbdev --without-npsqueak -prefix=/home/qwaq/qwaqvm/
CFLAGS="-g -O1 -msse2 -D_GNU_SOURCE -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1
-DCOGMTVM=0" LIBS=-lpthread

and if you have problems with OSS sound you can disable that too

../../platforms/unix/config/configure
--without-vm-sound-ALSA --without-vm-sound-OSS --without-vm-display-fbdev
--without-npsqueak -prefix=/home/qwaq/qwaqvm/ CFLAGS="-g -O1 -msse2
-D_GNU_SOURCE -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0"
LIBS=-lpthread

that will leave you with vm-sound-null which is fine for a server.

>
> Thanks,
> Rob
>
>
>> Cheers,
>> Rob
>>
>>
>>> Levente
>>>
>>>
>>>> Thanks,
>>>> Rob
>>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100717/96bad631/attachment.htm


More information about the Vm-dev mailing list