Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
30 user(s) are online (14 user(s) are browsing Forums)

Members: 0
Guests: 30

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Porting apitrace

Subject: Re: Porting apitrace
by kas1e on 2019/4/8 11:52:17

@Capehill
I modified makefile a bit, so it will be able to build glsnoop and on amigaos native and on crosscompilers too. Also replaced -ggdb with -gstabs, as only -gstabs should be used, only that one works all the time with all the things, -g, -ggdb and anything which id not -gstabs, sometime just fail. Its not just me, its Thomas Frieden (author of all that stuff) says sometime ago that only -gstabs should be used. And i find out that yes, sometime (like with addr2line), things like -ggdb or -g not works, while -gstabs works.

There is new makefile:

ifneq ($(shell uname), AmigaOS)
    
CC             ppc-amigaos-gcc
    DELETE        
rm -f
else
    
CC             gcc
    DELETE        
delete
endif

OBJS main.o ogles2_module.o warp3dnova_module.o logger.o
CFLAGS 
= -Wall -O3 -gstabs

%.: %.c makefile
    
$(CC) -$@ -$< $(CFLAGS)

glsnoop: $(OBJSmakefile
    
$(CC) -$@ $(OBJS)

clean:
    $(
DELETE) $(OBJS)


Also found little issue : can't run it like

ram: "glsnoop OGLES2" &

(handy to run in the same window, and then later send ctrl+c via another app).

It then fail with words "glsnoop OGLES2: unknown command". Pure "glsnoop" runs fine.

That probabaly because of ReadArg usage ? At least as i remember if use pure main()'s argvs, that kind of error didn't happens.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project