The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   Compiling Gaim (http://hintsforums.macworld.com/showthread.php?t=11730)

propheci 05-11-2003 01:10 PM

Compiling Gaim
 
has anyone gotten gaim 0.62 to compile successfully. during ./configure, it keeps complaining that gtk 2.0 is not installed. i looked in the config.log and it says something about gtk.h not found.

i have gtk 2.0 installed through Fink. i set the CFLAGS and LDFLGS in my .tcshrc. and just to make sure, i made a link in /usr/local/include to /sw/include/gtk-2.0. still, configure says gtk 2.0 not found (gtk.h is usually located in /usr/local/include/gtk-2.0/gtk/, at least on my linux machine). can anyone gimme some pointers? thank you.

sao 05-11-2003 01:32 PM

propheci,

With Fink you can install 'gaim-0.59.8-1' from stable or 'gaim-0.62-1' if you enable unstable.

Anyhow, 'gtk.h' should be in /sw/include/gtk-2.0/gtk/gtk.h

"If a package does not use these variables, you may need to add the "-I/sw/include" (for headers) and "-L/sw/lib" (for libraries) to the compile lines yourself. Some packages may use similar non-standard variables such as EXTRA_CFLAGS or --with-qt-dir= configure options. "./configure --help" will usually give you a list of the extra configure options".

Check here:

http://fink.sourceforge.net/faq/usag...compile-myself

propheci 05-11-2003 02:03 PM

thx for the help. i did see that page earlier but when i look in the config.log, it actually looks in /sw/include and /sw/lib. in addition, ./configure --help states that it does use the standard compile flags. and /sw/include/gtk-2.0/gtk/gtk.h does exist for me.

anyway, i have another n00b question. i edited fink.conf to add unstable/main and unstable/crypto and ran the find index command. where would i see the unstable packages in dselect? the only gaim entry i see is 0.59 something. thank you very much.

sao 05-11-2003 04:01 PM

Quote:

propheci wrote:
and /sw/include/gtk-2.0/gtk/gtk.h does exist for me
Post the result of 'fink list -i gtk+2'

If you enabled unstable and you have Apple December 2002 Developer Tools installed, run:

'fink selfupdate-cvs'

Then, run 'fink list' and you should see gaim-0.62-1

Then 'fink install gaim'

propheci 05-11-2003 06:59 PM

Quote:

Originally posted by sao
Post the result of 'fink list -i gtk+2'
[fignuts:~] propheci% fink list -i gtk+2
Information about 2307 packages read in 13 seconds.

(i) gtk+2 2.0.9-3 The Gimp Toolkit
(i) gtk+2-dev 2.0.9-3 The Gimp Toolkit
(i) gtk+2-shlibs 2.0.9-3 The Gimp Toolkit
[fignuts:~] propheci%

sao 05-12-2003 05:51 AM

propheci,

Actually, /sw/include/gtk-2.0/gtk/gtk.h is part of gtk+2-dev

And in gtk+ you have /sw/include/gtk-1.2/gtk/gtk.h

apaterso 12-04-2003 03:50 PM

having similar problems see below:

In file included from glib.h:66,
from gmain.c:41:
glibconfig.h:66:1: warning: "G_VA_COPY" redefined
In file included from gmain.c:34:
config.h:63:1: warning: this is the location of the previous definition
gmain.c:191: `poll' undeclared here (not in a function)
gmain.c: In function `g_main_set_poll_func':
gmain.c:1213: `poll' undeclared (first use in this function)
gmain.c:1213: (Each undeclared identifier is reported only once
gmain.c:1213: for each function it appears in.)
make[2]: *** [gmain.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
### execution of make failed, exit code 2
Failed: compiling glib-1.2.10-8 failed

what is glib and where do I get it? Is there an OS X wrapped installer for gaim. I don't really want to bother with making and compiling this app.

Andy

atomictuesday 12-04-2003 09:09 PM

Folks, compilation of certain programs is something which sometimes requires more than just configure and make. Aparteso, the reason for which your compile isn't working is because it OSX does not use the poll mechanism, and you will not find the header file for it in your include directory. Propheci, take an initiative and open up the configure file. Run a search for the error message that appears during configuring. Take a look at the shell code used to determine whether or not gtk.h is present, and see where it is searching for this file. Edit configure to suit your needs. If you need help understanding the code bring a shell snipet to the forum.
AtomicTuesday

apaterso 12-05-2003 12:02 AM

GAIM Help
 
That is interesting information AtomicTuesday, but how does that help me get gaim to install?

sao 12-05-2003 03:55 AM

apaterso wrote: "what is glib and where do I get it?
Code:

[pm @ Sao: ~] % fink list -i glib
Information about 1944 packages read in 1 seconds.
 i  glib                        1.2.10-18----Common C routines used by Gtk+ and other libs
 i  glib-shlibs                  1.2.10-18----Common C routines used by Gtk+ and other libs
 i  glib2                        2.2.3-2-----GTK+ - low-level core shared libraries
 i  glib2-dev                    2.2.3-2-----GTK+ - low-level core development libraries and headers
 i  glib2-shlibs                2.2.3-2-----GTK+ - low-level core libraries

Gaim installed with Fink works well here.
Code:

[pm @ Sao: ~] % fink list -i gaim
Information about 1944 packages read in 1 seconds.
 i  gaim                        0.74-11              Instant Messaging client


apaterso 12-05-2003 10:21 AM

when I run fink -list -i glib this is what i get:


<code>

[~:/sw/bin] apaterso% fink list -i glib
tcsh: fink: Command not found.
[~:/sw/bin] apaterso% ./fink list -i glib
Information about 1866 packages read in 5 seconds.

[c-24-5-246-14:/sw/bin] apaterso%

</code>

nothing shows up?????

is it me or is gaim why too much effoft to be bothered with. Except now it has become somewhat of an academic challenge.

ASP

sao 12-05-2003 10:34 AM

Quote:

apaterso wrote:
[~:/sw/bin] apaterso% fink list -i glib
tcsh: fink: Command not found.
Please, post a bit more info:

fink -V
gcc-v
echo $PATH
echo $SHELL

apaterso 12-05-2003 10:52 AM

fink version is
Package manager version: 0.11.1
Distribution version: 0.5.0a.cvs

gcc version is 3.1
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420 (prerelease)

My path looks like
/usr/local/mysql/bin /bin /sbin /usr/bin /usr/sbin

and my shell is /bin/tcsh

sao 12-05-2003 11:03 AM

apaterso,

Looks like you're still in Jaguar? Anyhow, your Fink installation is very old...fink is at the moment at:
Code:

[pm @ Sao: ~] % fink -V
Package manager version: 0.17.1
Distribution version: 0.6.2.cvs

You should upgrade Fink first.

Quote:

My path looks like
/usr/local/mysql/bin /bin /sbin /usr/bin /usr/sbin
Your fink PATH environment is not set, if you use tcsh write in your ~/.cshrc or ~/.tcshrc file:

source /sw/bin/init.csh

Code:

[pm @ Sao: ~] % echo $PATH
/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/pm:/Users/pm/bin:/usr/X11R6/bin:/Developer/Tools


apaterso 12-05-2003 01:12 PM

hmmm the only line of my .cshrc is

source /sw/bin/init.csh


.tcshrc looks like

setenv PATH /usr/local/mysql/bin:$PATH

sao 12-05-2003 01:48 PM

apaterso,

At startup the shell will read "first" from your ~/.tcshrc file and if it doesn't find any ~/.tcshrc then it will read your ~/.cshrc. So in your case your ~/.cshrc file is not being read.

Quote:

apaterso wrote:
hmmm the only line of my .cshrc is

source /sw/bin/init.csh
Try deleting your ~/.cshrc file if that's all you have written there and write "source /sw/bin/init.csh" at the beginning of your ~/.tcshrc file.

apaterso 12-05-2003 01:49 PM

ok did the fink selfupdate so I am now on

Package manager version: 0.11.1
Distribution version: 0.6.2.cvs

I am running 10.3.1, do I need to install any of the dev tools

apaterso 12-05-2003 02:08 PM

hey why didn't my package mananger update to 0.17.1

sao 12-05-2003 02:10 PM

Quote:

apaterso wrote:
ok did the fink selfupdate so I am now on

Package manager version: 0.11.1
Distribution version: 0.6.2.cvs

I am running 10.3.1, do I need to install any of the dev tools
Please post the result now of:

echo $PATH


Why did you run already 'fink selfupdate' ?

"Before" you start upgrading Fink to 10.3 you should have installed "Xcode" (new developer Tools) and the "X11 SDK" from the Xcode Tools CD. Please, read the following info:

http://fink.sourceforge.net/download/10.3-upgrade.php

"Under 10.3, be sure to install XCode from the XCode disk before upgrading Fink.

Running "fink selfupdate" should perform the upgrade for you. The latest version of the fink package manager will automatically detect which version of OS X and which version of gcc you have installed, and will adjust itself accordingly".

sao 12-05-2003 02:16 PM

Quote:

apaterso wrote:
hey why didn't my package mananger update to 0.17.1
hey why don't you ask "before" you do or read the information available at many places in the forums...?

Anyhow, I answered your question in my post above.

apaterso 12-05-2003 05:14 PM

Sao;


so at this point do you suggest that I rm -R my /sw directory and start over and reinstall fink from scratch?

I finished installing the xcode pieces, X11, et al.


my path looks like ls: /usr/local/mysql/bin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:

sao 12-06-2003 06:29 AM

apaterso,

You can try to run 'fink selfupdate' again to see if updates properly now after you installed Xcode and the X11 SDK.

If it doesn't, and you haven't installed many packages, I would suggest you to delete your fink installation:

sudo rm -rf /sw

and then reinstall Fink by downloading the Fink 0.6.2 Binary Installer from:

http://fink.sourceforge.net/download/index.php

and follow the instructions on that page.

This time make sure that you already installed "Apple's X11", "Xcode" and the "X11 SDK" before you install Fink.

apaterso 12-06-2003 10:48 PM

This is what I've got now and it looks good

apaterso% fink -V
Package manager version: 0.16.2
Distribution version: 0.6.2

Copyright (c) 2001 Christoph Pfisterer
Copyright (c) 2001-2003 The Fink Package Manager Team
This program 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 General Public License for more details.


now on to the main topic of gaim??

Thanks Sao for your help and hand holding

sao 12-07-2003 05:08 AM

Quote:

apaterso wrote:
now on to the main topic of gaim??
Let me know what gaim package would you like to install, I am using gaim-0.74-11 from the 10.3 unstable branch.

1- gaim:

In current-10.3 Tree:

stable = 0.68-1
unstable = 0.74-11 unstable

MSN is disabled in this non-SSL version. If you want to use your MSN accounts, install gaim-ssl.

2- gaim-ssl:

In current-10.3 Tree:

stable = not present
unstable = 0.74-11

apaterso 12-07-2003 04:47 PM

Well I guess I would like the 0.74-11 version.

What does 10.3 unstable branch mean?


I successfully installed 0.68 mostly just see if I could, damn did that take a long time. However, when I launch X11 and type gaim everything looks right, I get the gui gaim logon screen like is expect. The problem is that my accounts will not log on to either AOL IM or Yahoo.

any clues?

sao 12-08-2003 12:28 AM

Quote:

apaterso wrote:
Well I guess I would like the 0.74-11 version.

What does 10.3 unstable branch mean?
It's called "unstable" because these packages are not yet well-tested, but it also means you get to test the latest version of a package. If you decide to install unstable packages, you would need to enable 'unstable' in your /sw/etc/fink.conf file by adding 'unstable/main' and 'unstable/crypto' to the 'Trees:' line:
Code:

Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap
And then run:

'fink selfupdate'
'fink index'

sao 12-08-2003 01:04 AM

Quote:

apaterso wrote:
The problem is that my accounts will not log on to either AOL IM or Yahoo
Please, check the following info about Gaim Usage:

http://www.alphamonkey.org/gdp/files...0.05/x362.html


All times are GMT -5. The time now is 06:07 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.