Author Topic: Setting up a gtk Project ?  (Read 10506 times)

Offline vmars316

  • Multiple posting newcomer
  • *
  • Posts: 10
Setting up a gtk Project ?
« on: April 19, 2012, 08:43:31 am »
Greetings,
I just now downloaded and installed gtk+.
The i fired up codeBlocks
and selected for a gtk Project.
Up comes a box saying to enter gtk's location.
I entered c:\GTKp\Include .
Then i got the following msg:

" The path you entered seems valid, but the wizard can't locate the
include directory. The wizard cannot continue. "

Can anyone help me here?
I am new to gtk and codeBlocks.
Thanks...Vernon

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: Setting up a gtk Project ?
« Reply #1 on: April 19, 2012, 10:17:33 am »
Is the path correct? Have you tried without the include at the end?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline vmars316

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Setting up a gtk Project ?
« Reply #2 on: April 19, 2012, 05:02:03 pm »
yes, it is correct.
I even set the Environmentals to:
c:\GTKp\Include
What do you mean the include at the end?
Still need help.
Thanks...vm

Offline jarod42

  • Multiple posting newcomer
  • *
  • Posts: 82
Re: Setting up a gtk Project ?
« Reply #3 on: April 19, 2012, 05:38:40 pm »
Code: [Select]
c:\GTKp\Includewithout the include at the end:
Code: [Select]
c:\GTKp\

Offline vmars316

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Setting up a gtk Project ?
« Reply #4 on: April 19, 2012, 05:45:44 pm »
If you mean this:
c:\GTKp\
Already tried and failed.
...vm

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: Setting up a gtk Project ?
« Reply #5 on: April 19, 2012, 05:51:23 pm »
The path C:\gtkp works for me to compile the project.

Note: I used this link for the GTK+ stuff http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip

Tim S.
« Last Edit: April 19, 2012, 06:02:25 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline vmars316

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Setting up a gtk Project ?
« Reply #6 on: April 19, 2012, 06:07:40 pm »
I have codeBlocks 64 version.
Can i run gtk+ win32 with that?
Thanks...vm

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: Setting up a gtk Project ?
« Reply #7 on: April 19, 2012, 06:23:43 pm »
No you don't have a 64bit version of C::B, why do you think you have one?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline vmars316

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Setting up a gtk Project ?
« Reply #8 on: April 19, 2012, 07:06:35 pm »
You're right, no I don't.

But I do notice that i have the unicode version of CB.
Should i get the ansi version?

Thanks...vm

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
« Last Edit: April 19, 2012, 07:28:18 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline vmars316

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Setting up a gtk Project ?
« Reply #10 on: April 19, 2012, 09:57:38 pm »
stahta01,
"crystal balls and divining mirrors"?
I am only asking for help,
I don't want to fight.

Anyways, I got cb to accept the paths stuff.
And i am trying to get the run the test prog
here:
file:///C:/GTKplus/share/gtk-doc/html/gdk/gdk-Testing.html

#include <gdk/gdk.h>

void                gdk_test_render_sync                (GdkWindow *window);
gboolean            gdk_test_simulate_button            (GdkWindow *window,
                                                         gint x,
                                                         gint y,
                                                         guint button,
                                                         GdkModifierType modifiers,
                                                         GdkEventType button_pressrelease);
gboolean            gdk_test_simulate_key               (GdkWindow *window,
                                                         gint x,
                                                         gint y,
                                                         guint keyval,
                                                         GdkModifierType modifiers,
                                                         GdkEventType key_pressrelease);

The next prob is, i am getting errors:

-------------- Build: Debug in vmProj041912-07 ---------------

Compiling: main.c
In file included from C:\GTKplus\include\gtk-2.0/gdk/gdkcairo.h:28,
                 from C:\GTKplus\include\gtk-2.0/gdk/gdk.h:33,
                 from C:\Users\vmars\AppData\Roaming\codeblocks\vmProjects\vmProj041912-07\main.c:1:
C:\GTKplus\include\gtk-2.0/gdk/gdkpixbuf.h:37:35: error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory

Is there a prob with the forwardSlash / and backwardSlash \ ?  
The file "gdk-pixbuf/gdk-pixbuf.h" is definitely there.

Thanks for your help...vm

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: Setting up a gtk Project ?
« Reply #11 on: April 19, 2012, 10:03:26 pm »
Goodbye,

You really need to read the links posted to help you and read the rules you agreed to follow.

http://forums.codeblocks.org/index.php/topic,9996.0.html

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline vmars316

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Setting up a gtk Project ?
« Reply #12 on: April 19, 2012, 10:04:44 pm »
The gtk source file in CB looks like this:

/* GDK - The GIMP Drawing Kit
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

/*
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
 */

#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
#error "Only <gdk/gdk.h> can be included directly."
#endif

#ifndef __GDK_PIXBUF_H__
#define __GDK_PIXBUF_H__

#include <cairo.h>
#include <gdk/gdktypes.h>
#include <gdk/gdkrgb.h>
#include <gdk-pixbuf/gdk-pixbuf.h>

G_BEGIN_DECLS

/* Rendering to a drawable */

void gdk_pixbuf_render_threshold_alpha   (GdkPixbuf           *pixbuf,
                 GdkBitmap           *bitmap,
                 int                  src_x,
                 int                  src_y,
                 int                  dest_x,
                 int                  dest_y,
                 int                  width,
                 int                  height,
                 int                  alpha_threshold);
#ifndef GDK_DISABLE_DEPRECATED
void gdk_pixbuf_render_to_drawable       (GdkPixbuf           *pixbuf,
                 GdkDrawable         *drawable,
                 GdkGC               *gc,
                 int                  src_x,
                 int                  src_y,
                 int                  dest_x,
                 int                  dest_y,
                 int                  width,
                 int                  height,
                 GdkRgbDither         dither,
                 int                  x_dither,
                 int                  y_dither);
void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf           *pixbuf,
                 GdkDrawable         *drawable,
                 int                  src_x,
                 int                  src_y,
                 int                  dest_x,
                 int                  dest_y,
                 int                  width,
                 int                  height,
                 GdkPixbufAlphaMode   alpha_mode,
                 int                  alpha_threshold,
                 GdkRgbDither         dither,
                 int                  x_dither,
                 int                  y_dither);
#endif /* GDK_DISABLE_DEPRECATED */
void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf    *pixbuf,
                       GdkColormap  *colormap,
                       GdkPixmap   **pixmap_return,
                       GdkBitmap   **mask_return,
                       int           alpha_threshold);
#ifndef GDK_MULTIHEAD_SAFE
void gdk_pixbuf_render_pixmap_and_mask              (GdkPixbuf    *pixbuf,
                       GdkPixmap   **pixmap_return,
                       GdkBitmap   **mask_return,
                       int           alpha_threshold);
#endif


/* Fetching a region from a drawable */
GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf   *dest,
                GdkDrawable *src,
                GdkColormap *cmap,
                int          src_x,
                int          src_y,
                int          dest_x,
                int          dest_y,
                int          width,
                int          height);

GdkPixbuf *gdk_pixbuf_get_from_image    (GdkPixbuf   *dest,
                                         GdkImage    *src,
                                         GdkColormap *cmap,
                                         int          src_x,
                                         int          src_y,
                                         int          dest_x,
                                         int          dest_y,
                                         int          width,
                                         int          height);

G_END_DECLS

#endif /* __GDK_PIXBUF_H__ */

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: Setting up a gtk Project ?
« Reply #13 on: April 19, 2012, 10:16:05 pm »
This thread NEEDS to be locked!

Tim S.

http://forums.codeblocks.org/index.php/topic,9996.0.html
Quote
1. This is NOT a general programming board. "How do I write a program that....", "Can anybody teach me how to", "I have this homework", "My program doesn't run and I don't have the slightest idea of why because I'm a C++ newcomer", "What is a compiler", "What does gcc do" is the kind of questions that is FORBIDDEN to ask.

2. Compiler/Linker errors are NOT Code::Blocks errors. Usually, C++ newcomers tend to confuse the Editor/IDE (Code::Blocks) with the Compiler (MINGW / GCC). You may see some errors in the compiler output because you missed to do something right in your code. But that's not Code::Blocks troubleshooting, that's C++ troubleshooting and does not belong in here. If your program doesn't compile, READ THE C++ MANUAL.

3. Is your problem library, framework specific? There are appropriate forums for it, not the Code::Blocks forum.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: Setting up a gtk Project ?
« Reply #14 on: April 20, 2012, 09:45:26 am »
Topic locked as you are not willing to read/understand what and how to post.

WE CANNOT HELP YOU with the information you are providing here.

Try again, but follow the rules.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ