Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: relsoft on November 11, 2010

Title: Can someone help me compile my sources for Lin and Mac?
Post by: relsoft on November 11, 2010
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.

;*)

Title: Re: Can someone help me compile my sources for Lin and Mac?
Post by: hellfire on November 15, 2010
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)
Title: Re: Can someone help me compile my sources for Lin and Mac?
Post by: LittleWhite on November 16, 2010
Hey,

Working fine on my Ubuntu 10.10 (64bits) :)
No warnings (no errors obviously :D)
Title: Re: Can someone help me compile my sources for Lin and Mac?
Post by: relsoft on November 19, 2010
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.
 
Title: Re: Can someone help me compile my sources for Lin and Mac?
Post by: staticgerbil on February 07, 2011
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 :)