GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GTK Compiling Visual C++

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
rotalever
Familiar Face


Joined: 24 Feb 2007
Posts: 11

PostPosted: Sun Mar 18, 2007 12:20 pm    Post subject: GTK Compiling Visual C++ Reply with quote

Hi,
I am compiling my GTK-Programs (written in C) with MS Visual C++ 6.0. It runs fine, but I want to know, how I can link the libs, so that the user does not need to install a GTK environment for running my programm.

First I thought: just copy the dlls from c:/Programs/CommonFiles/GTK/... to the applications folders, but then everything look very bad (wrong theme, bad font, etc.).



If I remove the dlls from the app's folder everything looks good, but then the user has to install a GTK environment to run my app. So what can I do?

Regards
Back to top
hydra
Familiar Face


Joined: 23 Jan 2007
Posts: 35

PostPosted: Sun Mar 18, 2007 6:42 pm    Post subject: Reply with quote

I am interested about your problem because I write gtk windoze apps too.
Probably the best method to solve this is to use the dlls from the .exe directory and to set the path to the fonts and all required stuff.
This can be done via installator. You have such one for your application, don't you?
So, just set the environment and the path of the dlls and fonts when you run the installer.
EDIT:
I would suggest you to contact the GAIM developer team. They produce gaim for windoze...with and without gtk+.
When you learn how to do that please post here fix of the problem.
It will useful for other people to know...
I will contact the gaim team too, because i need fix of this problem too..
Back to top
rotalever
Familiar Face


Joined: 24 Feb 2007
Posts: 11

PostPosted: Sun Mar 18, 2007 7:21 pm    Post subject: Reply with quote

Hmm, the Problem is: I don't use an Installer. It MUST be a standalone (possibly with some dlls) Executable.
Back to top
Abhijit Singh
Familiar Face


Joined: 07 Mar 2007
Posts: 12

PostPosted: Thu Mar 29, 2007 8:25 am    Post subject: Linking DLL's && Libs to GTK+ program using VC++ Reply with quote

To add Libs -> goto PROJECT->ADD TO PROJECT->FILES

Add the libs present in your LIB folder ( must be in gtk2.0 folder or in some other ). If you have a LIB named " libpng-bcc.lib " remove it from.
You can view all the libs,files etc added to your project as follows
VIEW-->WORKSPACE OR (ALT 0). Click the file in FILEVIEW tab and press delete to remove it from your project.



For DLL's I added all the dlls in my DEBUG folder. Also add the " etc " and " lib\gtk-2.0 " folder to DEBUG folder. To load new themes just create a folder DEBUG\etc\gtk-2.0 and add all the files ( gtkrc + image files ).


For discussion in personal mail me at Abhijitfiasco@gmail.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP