News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Setting up a gtk Project ?

Started by vmars316, April 19, 2012, 08:43:31 AM

Previous topic - Next topic

vmars316

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

oBFusCATed

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!]

vmars316

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

jarod42

c:\GTKp\Include
without the include at the end:
c:\GTKp\

vmars316

If you mean this:
c:\GTKp\
Already tried and failed.
...vm

stahta01

#5
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

vmars316

I have codeBlocks 64 version.
Can i run gtk+ win32 with that?
Thanks...vm

oBFusCATed

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!]

vmars316

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

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

vmars316

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

stahta01

Goodbye,

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

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

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

vmars316

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__ */

stahta01

This thread NEEDS to be locked!

Tim S.

http://forums.next.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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]