Discussion:
gtkmm on Mac
(too old to reply)
Scott
2010-07-14 15:34:09 UTC
Permalink
Did anybody have any luck getting their program to compile on a Mac, and
if so, what steps were taken? I've been looking into it for quite a
while and it still can't find gtkmm.h when I compile a simple example
program.

Scott
Caroline Kierstead
2010-07-14 15:44:19 UTC
Permalink
Post by Scott
Did anybody have any luck getting their program to compile on a Mac, and
if so, what steps were taken? I've been looking into it for quite a
while and it still can't find gtkmm.h when I compile a simple example
program.
When I tried it last summer, I had the following flags in my Makefile

CXXFLAGS = -Wall -O `pkg-config gtkmm-2.4 --cflags`
LDFLAGS = `pkg-config gtkmm-2.4 --libs`

though that assumes you've installed gtkmm using something like MacPorts or
DarwinPorts or whatever.

Have you tried that?
--
--
Caroline Kierstead, Undergraduate Operations Coordinator
David R. Cheriton School of Computer Science
University of Waterloo, DC3122 (519) 888-4567 x36226
David Lawrence
2010-07-16 18:15:00 UTC
Permalink
Post by Caroline Kierstead
Post by Scott
Did anybody have any luck getting their program to compile on a Mac, and
if so, what steps were taken? I've been looking into it for quite a
while and it still can't find gtkmm.h when I compile a simple example
program.
When I tried it last summer, I had the following flags in my Makefile
CXXFLAGS = -Wall -O `pkg-config gtkmm-2.4 --cflags`
LDFLAGS = `pkg-config gtkmm-2.4 --libs`
though that assumes you've installed gtkmm using something like MacPorts or
DarwinPorts or whatever.
Have you tried that?
I'm having an extremely hard time trying to do this project on a mac. I
can't seem to install gtkmm correctly (this is my first time trying to
do anything like this) and I have no idea how to use it with Xcode (if
I've even installed it correctly). I downloaded fink and attempted to
install it using "fink install gtkmm2.4-dev" but it couldn't find the
file. I find it really tedious and time consuming to have to constantly
upload my files onto the linux server and make the executable. Is there
an easier way?
CS 246 SE Tutor
2010-07-16 20:53:56 UTC
Permalink
I have not used gtkmm on a Mac at all. From my discussions with others,
it seems that many people are having trouble with this. Unfortunately,
installing gtkmm on you computer is really the only thing better than
uploading your files to the student.cs environment and running them on
the linux servers.

If you cannot get gtkmm working on your machine, or simply want to use
the school machines, I would recommend the following:

1. Find an sftp client to easily upload files to the student.cs environment.

2. Make a good Makefile. There is a really good example in the lecture
slides. This way, compiling is as easy as typing "make" into a console
session and then running the resulting executable.
Post by David Lawrence
Post by Caroline Kierstead
Post by Scott
Did anybody have any luck getting their program to compile on a Mac,
and if so, what steps were taken? I've been looking into it for
quite a while and it still can't find gtkmm.h when I compile a simple
example program.
When I tried it last summer, I had the following flags in my Makefile
CXXFLAGS = -Wall -O `pkg-config gtkmm-2.4 --cflags`
LDFLAGS = `pkg-config gtkmm-2.4 --libs`
though that assumes you've installed gtkmm using something like MacPorts or
DarwinPorts or whatever.
Have you tried that?
I'm having an extremely hard time trying to do this project on a mac. I
can't seem to install gtkmm correctly (this is my first time trying to
do anything like this) and I have no idea how to use it with Xcode (if
I've even installed it correctly). I downloaded fink and attempted to
install it using "fink install gtkmm2.4-dev" but it couldn't find the
file. I find it really tedious and time consuming to have to constantly
upload my files onto the linux server and make the executable. Is there
an easier way?
Continue reading on narkive:
Loading...