GrafX2 2.2 atari port [beta]

Hardware, coding, music, graphic and various applications

Moderators: Mug UK, moondog/.tSCc., [ProToS], lp, Moderator Team

User avatar
saulot
Captain Atari
Captain Atari
Posts: 207
Joined: Sat Sep 18, 2004 9:09 pm
Location: Warszawa
Contact:

Re: GrafX2 2.2 atari port [beta]

Postby saulot » Mon Sep 28, 2015 8:38 pm

From me rather not. But sources are lying and recompiling everything with Coldfire switch should be easy (I could add proper targets in official project). I don't have hardware to test it anyway (with no plans to get one).
Probably SDL has to be patched for firebee (for extended resolutions). I'm not familiar with current SDL state on coldfire target and condition of Firebee SDL video driver (standard resolutions should work probably).

Cheers,
P.

vido
Atari Super Hero
Atari Super Hero
Posts: 658
Joined: Mon Jan 31, 2011 7:39 pm

Re: GrafX2 2.2 atari port [beta]

Postby vido » Tue Sep 29, 2015 6:10 am

oh ... I hope someone will compile it also for the FireBee. I think there is not much to change except to recompile it for the FireBee.
I wish I would know to do that ...

m0n0
Captain Atari
Captain Atari
Posts: 421
Joined: Mon Oct 05, 2009 3:13 am

Re: GrafX2 2.2 atari port [beta]

Postby m0n0 » Sat Oct 10, 2015 7:58 pm

I once compiled it for coldfire, and have written some notes about it:

https://freeshell.de/~monokrom/geeklog/ ... uery=grafx

User avatar
paulwratt
Atari nerd
Atari nerd
Posts: 44
Joined: Sat Dec 27, 2008 10:16 am

Re: GrafX2 2.2 atari port [beta]

Postby paulwratt » Tue Sep 13, 2016 2:21 am

(Can now use Grafx2 from console with TTF, without X Windows, see patch link below)
(copy-post from raspberrypi.org)
Image
I think Grafx2 in now available in Jessie (and on Devuan Pi/Arm) (both Debian 8 )

It can be built on Wheezy (Debian 7)

Get the source here: http://pulkomandy.tk/projects/GrafX2/downloads
Get TTF patch here: http://pulkomandy.tk/projects/GrafX2/ticket/36#no1

The patched files allow you to use Grafx2 with or without X Windows with SDL_TTF. Current binary builds (if you still have the .deb form the old Pi-Store) do NOT allow TTF (and others) use outside of X Windows (will crash because X is not running)

you need the development packages for SDL, SDL_image, SDL_TTF, LibPNG, and LUA 5.1 (or 5.2) for a complete build:

Code: Select all

sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libpng12-dev


By default Grafx2 uses LUA 5.1, so you need to be aware "src/Makefile" may need to be edited if you have any problems building with LUA 5.2 (you can have both installed):

Code: Select all

sudo apt-get install liblua5.1-dev

Code: Select all

sudo apt-get install liblua5.2-dev


Cheers

Paul
Console Power User

User avatar
nanard
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 138
Joined: Mon Apr 04, 2016 2:11 pm

Re: GrafX2 2.2 atari port [beta]

Postby nanard » Wed Feb 21, 2018 12:49 pm

I'm trying to automate build of GrafX2 for Atari
Which SDL version are you using ?
4MB STE + CosmosEx /|\ MegaST4 + MegaFile 44 /|\ Stacy 4

User avatar
nanard
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 138
Joined: Mon Apr 04, 2016 2:11 pm

Re: GrafX2 2.6 atari port

Postby nanard » Sat Feb 09, 2019 11:23 am

I'm now building GrafX2 2.6 for Atari (Falcon/TT) :
https://gitlab.com/miniupnp/grafX2/-/jo ... cts/browse

soon fully integrated in the automatic build process, so the Atari Version will be as upto date as the Windows version !
4MB STE + CosmosEx /|\ MegaST4 + MegaFile 44 /|\ Stacy 4

vido
Atari Super Hero
Atari Super Hero
Posts: 658
Joined: Mon Jan 31, 2011 7:39 pm

Re: GrafX2 2.2 atari port [beta]

Postby vido » Sat Feb 09, 2019 12:01 pm

Great! Thank you!

Is it also possible to make it compile also for the Coldfire CPU = FireBee?

User avatar
nanard
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 138
Joined: Mon Apr 04, 2016 2:11 pm

Re: GrafX2 2.2 atari port [beta]

Postby nanard » Thu Feb 14, 2019 4:08 pm

vido wrote:Great! Thank you!

Is it also possible to make it compile also for the Coldfire CPU = FireBee?

If someone is kind enough to give me the gcc flags to use and to test the result ;)
4MB STE + CosmosEx /|\ MegaST4 + MegaFile 44 /|\ Stacy 4

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 568
Joined: Sun Aug 03, 2014 5:54 pm

Re: GrafX2 2.2 atari port [beta]

Postby ThorstenOtto » Thu Feb 14, 2019 5:34 pm

The flags are -mcpu=5475. Be sure to use them both when compiling and linking. And of course you also need all libraries (like SDL) being compiled for the Firebee.

m0n0
Captain Atari
Captain Atari
Posts: 421
Joined: Mon Oct 05, 2009 3:13 am

Re: GrafX2 2.2 atari port [beta]

Postby m0n0 » Thu Feb 14, 2019 10:08 pm

For sake of completeness, here is my (old) coldfire build. Don't know if it is an real clean coldfire executable (= runs under EmuTOS).

grfx2v4e-2.zip


The gcc flags used (not all of them..., I think the additionals libs required by SDL are missing):

SDL (1.2.15):

Code: Select all

CFLAGS="-O3 -mcpu=5475" LDFLAGS="-mcpu=5475" ./configure --disable-threads --disable-shared --enable-static --disable-video-opengl --prefix=/usr/m68k-atari-mint/ --libdir=/usr/m68k-atari-mint/lib/m5475/ --host=m68k-atari-mint


SDL_image (1.2.12):

Code: Select all

SDL_LIBS="-lSDL -lgem" LIBPNG_CFLAGS="-I/usr/m68k-atari-mint/include/libpng15" LIBPNG_LIBS="-lpng15" CFLAGS="-O3 -mcpu=5475" LDFLAGS="-mcpu=5475" LIBS="-lgem" ./configure --disable-shared --enable-static --prefix=/usr/m68k-atari-mint/ --libdir=/usr/m68k-atari-mint/lib/m5475/ --host=m68k-atari-mint --disable-lbm


SDL_ttf (2.0.10):

Code: Select all

SDL_CFLAGS="-I/usr/m68k-atari-mint//include/SDL -D_GNU_SOURCE=1" SDL_LIBS="-L/usr/m68k-atari-mint/lib/m5475/ -lSDL -lgem" CFLAGS="-O3 -mcpu=5475" LDFLAGS="-mcpu=5475 -Wl,-t" LIBS="-L/usr/m68k-atari-mint/lib/m5475/ -lgem -lm" ./configure --disable-shared --enable-static --prefix=/usr/m68k-atari-mint/ --libdir=/usr/m68k-atari-mint/lib/m5475/ --host=m68k-atari-mint --without-x --prefix="/usr/m68k-atari-mint/" --libdir="/usr/m68k-atari-mint/lib/m5475/"


grafx2 Makefile (m68k cross part):

Code: Select all

COPT = -W -Wall -mcpu=5475 -fomit-frame-pointer -Wdeclaration-after-statement -D__MINT__ -ffast-math -O$(OPTIM) -c -I$(prefix)/include `$(prefix)/bin/libpng-config --cflags` `$(prefix)/bin/sdl-config --cflags` $(JOYCOPT) $(LAYERCOPT) $(LUACOPT)
LOPT = -Wl,-t -static -mcpu=5475 -L$(prefix)/lib/m5475 -lSDL_ttf -lSDL_image `$(prefix)/bin/sdl-config --libs` -ltiff -ljpeg -lpng -lz -lm $(TTFLOPT) -lfreetype $(LUALOPT) -lm $(LAYERLOPT) -Wl,--stack,8k
You do not have the required permissions to view the files attached to this post.

stormy
Atari Super Hero
Atari Super Hero
Posts: 611
Joined: Tue Jan 26, 2016 12:39 pm

Re: GrafX2 2.2 atari port [beta]

Postby stormy » Thu Feb 14, 2019 10:46 pm

How does this compare to apex media?
Falcon ct60e 060 - 256mb ram - phantom bus and dsp accel // Atari TT - Thunder and Storm IDE 64mb ram - Lightning VME - USB LAN - Ati Mach64 2mb // Atari STM 4160 - 4MB ram - 16Mhz exxos 1.5 booster - Ultrasatan


Social Media

     

Return to “Professionals”

Who is online

Users browsing this forum: No registered users and 5 guests