Pixilang on Raspberry Pi ?

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

Pixilang on Raspberry Pi ?

Postby spiny » Thu Jun 14, 2012 9:13 pm

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: 2768
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Postby NightRadio » Thu Jun 14, 2012 9:48 pm

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 ?

Postby spiny » Thu Jun 14, 2012 10:18 pm

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 ?

Postby spiny » Fri Jun 15, 2012 1:34 am

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: 2768
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Postby NightRadio » Fri Jun 15, 2012 9:20 am

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 ?

Postby spiny » Fri Jun 15, 2012 1:58 pm

: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: 2768
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Postby NightRadio » Fri Jun 15, 2012 2:18 pm

great! :)

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

Re: Pixilang on Raspberry Pi ?

Postby spiny » Thu Jun 21, 2012 3:20 pm

one other thing :)

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

thanks :)

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

Re: Pixilang on Raspberry Pi ?

Postby NightRadio » Thu Jun 21, 2012 9:05 pm

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 ?

Postby pasbel » Wed May 11, 2016 12:28 pm

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 ?

Postby pasbel » Thu May 12, 2016 2:12 pm

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 ?

Postby spiny » Mon Jun 13, 2016 6:54 pm

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: 2768
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang on Raspberry Pi ?

Postby NightRadio » Sat Jun 18, 2016 4:05 pm

It's better now but...

Please try to use Pixilang 3.5 sources

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

Re: Pixilang on Raspberry Pi ?

Postby NightRadio » Mon Mar 27, 2017 10:00 am

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.


Return to “Pixilang”

Who is online

Users browsing this forum: No registered users and 1 guest