Pixilang on Raspberry Pi ?

Pixilang programming language
Post Reply
User avatar
spiny
Posts: 46
Joined: Mon Jul 19, 2010 4:28 pm

Pixilang on Raspberry Pi ?

Post by spiny »

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.
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Post by NightRadio »

Is there any way to run Pixilang on Raspberry Pi
Of course. I think any Pi user can compile it directly on Respberry.
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.
User avatar
spiny
Posts: 46
Joined: Mon Jul 19, 2010 4:28 pm

Re: Pixilang on Raspberry Pi ?

Post by spiny »

awesome :D

my 'Pi' turned up yesterday, so i'm still getting to grips with it, but making pixilang will be a fun project :)
User avatar
spiny
Posts: 46
Joined: Mon Jul 19, 2010 4:28 pm

Re: Pixilang on Raspberry Pi ?

Post by spiny »

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:

Image

I have no idea what this means :D am I still missing a library ?

thanks, Phil :)
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Post by NightRadio »

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) )
User avatar
spiny
Posts: 46
Joined: Mon Jul 19, 2010 4:28 pm

Re: Pixilang on Raspberry Pi ?

Post by spiny »

:D

Image

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 :D
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Post by NightRadio »

great! :)
User avatar
spiny
Posts: 46
Joined: Mon Jul 19, 2010 4:28 pm

Re: Pixilang on Raspberry Pi ?

Post by spiny »

one other thing :)

is it possible to get the console up as well as the 'main' screen ?

thanks :)
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Post by NightRadio »

one way only for this :) Launch Pixilang from Terminal
pasbel
Posts: 18
Joined: Mon Jul 02, 2012 2:19 pm

Re: Pixilang on Raspberry Pi ?

Post by pasbel »

I suppose it is for ARCH linux, is it possible with RASPIAN ?
pasbel
Posts: 18
Joined: Mon Jul 02, 2012 2:19 pm

Re: Pixilang on Raspberry Pi ?

Post by pasbel »

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
User avatar
spiny
Posts: 46
Joined: Mon Jul 19, 2010 4:28 pm

Re: Pixilang on Raspberry Pi ?

Post by spiny »

I'm pretty sure I just used Raspian. I'll dig out my Pi3 and have another go at compiling Pixilang3
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Post by NightRadio »

It's better now but...
Please try to use Pixilang 3.5 sources
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Post by NightRadio »

The above instruction is obsolete now.

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
Just use one of them.
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.
Post Reply