Re: [GtkGLExt] Re: Help please: with simple example ...



On 04.2.23 9:15 PM, "James Don" <jimdon sympatico ca> wrote:

> Ok I made a little progress ... but now i am having a problem linking
> ... this shouldn't be to hard to resolve ...
> 
> If anyone has any suggestions on this it would be great :-)

Set PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}, then

> 
[snip]
> 
> COMPILEFLAGS=-Wall -g $(INCLUDE) `pkg-config --cflags gtk+-2.0`
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                   `pkg-config --cflags gtkglext-1.0`

> LINKFLAGS=-Wall -g $(INCLUDE) `pkg-config --cflags --libs gtk+-2.0`
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                `pkg-config --libs gtkglext-1.0`


Please look at examples/Makefile.mingw comes with GtkGLExt source tarball.
It would be help.

Regards,
--Naofumi

> 
> %.o: %.cc
> g++ $(COMPILEFLAGS) -c $<
> 
> 
> all: $(ALL)
> 
> program: $(OBJFILES)
> g++ $(LINKFLAGS) $(OBJFILES)  -lpthread -o program
> 
> program1: gearscopy.o
> g++ $(LINKFLAGS) gearscopy.o  -lpthread -o program
> 
> clean:
> rm -f $(ALL)
> rm -f $(OBJFILES)
> 
> test: $(TESTS) 
> 
> test1:
> ./program
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]