GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Oct 21, 2014 4:45 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to statically compile a Gtk+ 2.0 project designed
PostPosted: Fri Nov 18, 2011 6:10 pm 
Offline
Familiar Face

Joined: Tue Nov 15, 2011 7:45 am
Posts: 5
Hi all,

I have a project that I have designed the GUI with Glade 3 and Gtk+ 2.0 (under Ubutu 11.04).
I am still a novice programmer when it comes to Gtk & C! :)

This is my make file which I have adopted from the Internet.
Code:
CC = gcc

OBJS = file1.o file2.o file3.o file4.o

CFLAGS = -g -O2 `pkg-config --cflags gtk+-2.0`

test1: $(OBJS)
        gcc -o test1 $(OBJS) `pkg-config --libs gtk+-2.0 gmodule-2.0 gthread-2.0`

clean:
        rm $(OBJS) test1 2>/dev/null || /bin/true


My issue is, when I deploy the executable to another system I have to ship it with test1.glade file as part of the final product. I would like to eliminate this. Please let me know of a way to do this. Thank you!

Nikke


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group