• Welcome to Dark Bit Factory & Gravity.
 

Can someone help me compile my sources for Lin and Mac?

Started by relsoft, November 11, 2010

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

relsoft

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:

hellfire

For linux you just need a makefile and type "make":

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)
Challenge Trophies Won:

LittleWhite

Hey,

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

relsoft

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:

staticgerbil

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 :)