Pixilang on Raspberry Pi ?
Pixilang on Raspberry Pi ?
Hi,
Is there any way to run Pixilang on Raspberry Pi ? ( http://www.raspberrypi.org/ ) I'm guessing the binaries won't work as the Pi is ARM not x86, but could it be compiled for Debian on ARM for example ?
cheers, Phil.
Is there any way to run Pixilang on Raspberry Pi ? ( http://www.raspberrypi.org/ ) I'm guessing the binaries won't work as the Pi is ARM not x86, but could it be compiled for Debian on ARM for example ?
cheers, Phil.
- NightRadio
- Site Admin
- Posts: 3950
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: Pixilang on Raspberry Pi ?
Of course. I think any Pi user can compile it directly on Respberry.Is there any way to run Pixilang on Raspberry Pi
1. Install GCC for Pi
2. Unpack Pixilang. Go to the sources/pixilang3/make directory. Open the Makefile and set TARGET_OS = linux_sdl ; TARGET_ARCH = arm.
3. Type make
Pixilang is not only for x86. You can compile it for any little-endian architecture. ARM, MIPS etc.
Re: Pixilang on Raspberry Pi ?
awesome
my 'Pi' turned up yesterday, so i'm still getting to grips with it, but making pixilang will be a fun project
my 'Pi' turned up yesterday, so i'm still getting to grips with it, but making pixilang will be a fun project
Re: Pixilang on Raspberry Pi ?
ok, I think I'm getting there ... GCC was pre installed but I needed to install libsdl as initially make complained about a missing SDL.h
just tried again adter installing the libsdl libraries and it ran for about 10 minutes, then gave this error:
I have no idea what this means am I still missing a library ?
thanks, Phil
just tried again adter installing the libsdl libraries and it ran for about 10 minutes, then gave this error:
I have no idea what this means am I still missing a library ?
thanks, Phil
- NightRadio
- Site Admin
- Posts: 3950
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: Pixilang on Raspberry Pi ?
Sorry, it is my mistake :)
Please open the sources/lib_pixilang/pixilang_vm_builtin_fns.h
Find the string
#if defined(UNIX) && !defined(IPHONE)
Replace this string by
#if defined(UNIX) && ( defined(ARCH_X86) || defined(ARCH_X86_64) )
Please open the sources/lib_pixilang/pixilang_vm_builtin_fns.h
Find the string
#if defined(UNIX) && !defined(IPHONE)
Replace this string by
#if defined(UNIX) && ( defined(ARCH_X86) || defined(ARCH_X86_64) )
Re: Pixilang on Raspberry Pi ?
huge thanks again but now I am going to have to learn the v3 syntax, I apologise in advance for any silly questions I might ask in the future
- NightRadio
- Site Admin
- Posts: 3950
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: Pixilang on Raspberry Pi ?
great! :)
Re: Pixilang on Raspberry Pi ?
one other thing
is it possible to get the console up as well as the 'main' screen ?
thanks
is it possible to get the console up as well as the 'main' screen ?
thanks
- NightRadio
- Site Admin
- Posts: 3950
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: Pixilang on Raspberry Pi ?
one way only for this :) Launch Pixilang from Terminal
Re: Pixilang on Raspberry Pi ?
I suppose it is for ARCH linux, is it possible with RASPIAN ?
Re: Pixilang on Raspberry Pi ?
It's better now but...
Code: Select all
pi@raspberrypi:~/pixilang3.4.8/sources/pixilang3/make $ make
gcc -O3 -Wno-multichar -ffast-math -pipe -DLINUX -DARCH_ARM -DCPUMARK=0 -DARCH_NAME="\"arm\"" -DAPPNAME="\"pixilang\"" -D -DDIRECTDRAW -I../../lib_sundog/ -I../../lib_jpeg/ -I../../lib_png/png/ -I../../lib_gif/ -DHAVE_CONFIG_H -I../../lib_zlib/zlib/ -I../../lib_dsp/ -I../../lib_pixilang/ -c ../../lib_sundog/memory/code/memory.cpp
<command-line>:0:1: error: macro names must be identifiers
../../lib_sundog/sundog_makefile.inc:468: recipe for target 'memory.o' failed
make: *** [memory.o] Error 1
Re: Pixilang on Raspberry Pi ?
I'm pretty sure I just used Raspian. I'll dig out my Pi3 and have another go at compiling Pixilang3
- NightRadio
- Site Admin
- Posts: 3950
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: Pixilang on Raspberry Pi ?
Please try to use Pixilang 3.5 sourcesIt's better now but...
- NightRadio
- Site Admin
- Posts: 3950
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: Pixilang on Raspberry Pi ?
The above instruction is obsolete now.
In the newest Pixilang (pixilang/sources/pixilang3/make folder) you can see two scripts:
Pixilang will be compiled in the same folder with the MAKE_xxx script.
Don't worry if you get some installation error - it is just because the default installation folder is ../release/pixilang/pixilang/linux_xxx.
In the newest Pixilang (pixilang/sources/pixilang3/make folder) you can see two scripts:
- MAKE_LINUX_ARM_ARMHF_RASPBERRY_PI (SDL version without OpenGL support)
- MAKE_LINUX_ARM_ARMHF_RASPBERRY_PI_NO_OPENGL
Pixilang will be compiled in the same folder with the MAKE_xxx script.
Don't worry if you get some installation error - it is just because the default installation folder is ../release/pixilang/pixilang/linux_xxx.