Author Topic: Can someone help me compile my sources for Lin and Mac?  (Read 3915 times)

0 Members and 1 Guest are viewing this topic.

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Here are the sources and win binary.


http://rel.betterwebber.com/MyProgs/gl2d_c.zip



Only dependecy is GLFW (hence the targa).

This is going to be ported to Gamecube(that's why it's in C) as I was asked to make a C version of GL2D.


Thanks in advance.


PS. If anyone homebrews for the GameCube using GX*, I'd be glad to hear from you.

;*)

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
For linux you just need a makefile and type "make":
Code: [Select]
CC            = gcc
CFLAGS        = -O2
INCPATH       = -I.
LINK          = g++
LIBS          = -lglfw -lGLU -lGL -lXrandr
SOURCES       = gl2d.c main.c
OBJECTS       = $(SOURCES:.c=.o)
TARGET        = gl2d

all: $(TARGET)

# build binary by linking all object-files and libraries
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) $(OBJECTS) $(LIBS) -o $@

# build each object-file by compiling the corresponding source-file
.o:
$(CC) $(CFLAGS) $(INCPATH) $< -o $@

# delete all objects and binary
clean:
rm -rf $(TARGET) $(OBJECTS)
(remember to keep the tabs)
« Last Edit: November 16, 2010 by hellfire »
Challenge Trophies Won:

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Hey,

Working fine on my Ubuntu 10.10 (64bits) :)
No warnings (no errors obviously :D)
The demoscene will never die, never!

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Thanks dudes!!!

Someone told me that this compiles and works well on a mac too so all is well.

Apparently the gamecube gx* layer is not too GL friendly.
 
Challenge Trophies Won:

Offline staticgerbil

  • Atari ST
  • ***
  • Posts: 113
  • Karma: 8
    • View Profile
I just stumbled across this post for some reason and thought I'd offer my mac for any more testing you (or anyone else) need. 

I know they can be hard to come across :)