gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnokii on Mac OS X


From: Olivier Kaloudoff
Subject: Re: Gnokii on Mac OS X
Date: Mon, 26 May 2003 12:56:50 +0200 (CEST)

>On Mon, 26 May 2003, Kurt Schmeichel wrote:
>
>Hi Kurt,
>
>First, please don't post HTML. Thank you.
>
>> And then when I launch ³sudo make install², it doesn't work.
>
>What are the errors?

Hi pkot,


        I would be very pleased to help the gnokii project,
here is what I did to have the whole thing working on my mac:
I finally succeded with a static compilation, not tried gtk yet.


*************************************************
libintl.h is missing, use --disable-nls
*************************************************
[Olivier-Kaloudoffs-Computer:~/gnokii-0.5.0] olivierkaloudoff% ./configure
-disable-nls


(...)

---------------------------------------------------------

(please note that the -shared flag is not working
with the standard compiler, use -shared-libgcc instead;
how could this be integrated in the CVS ?)

[OK-Computer:/sw/src/gnokii-0.5.0] # vi common/Makefile

----
libgnokii.so: $(OBJS) phones/PHONES.o links/LINKS.o devices/DEVICES.o
        $(CC) -shared -Wl,-soname,$(GNOKII_LIBM) -o $(GNOKII_LIBMM)
$(OBJS) phones/PHONES.o links/LINKS.o
----
libgnokii.so: $(OBJS) phones/PHONES.o links/LINKS.o devices/DEVICES.o
        $(CC) -shared-libgcc -Wl,$(GNOKII_LIBM) -o $(GNOKII_LIBMM) $(OBJS)
phones/PHONES.o links/LINKS.o

---------------------------------------------------------

[OK-Computer:/sw/src/gnokii-0.5.0] # vi common/Makefile

(added the following target)

snprintf.o:
        $(CC) -c snprintf.c -o snprintf.o $(CFLAGS) -Wno-long-double

---------------------------------------------------------
[OK-Computer:/sw/src/gnokii-0.5.0] # vi common/Makefile

(added the following target)

libgnokii.so.1.0:

$(CC) -Wl,-dynamic,-r -o libgnokii.so.1.0 gsm-api.o gsm-error.o
gsm-statemachine.o cfgreader.o device.o vcal.o vcard.o gsm-networks.o
gsm-filetypes.o gsm-ringtones.o gsm-bitmaps.o gsm-sms.o gsm-call.o
gsm-encoding.o gsm-common.o sms-nokia.o nokia-decoding.o compat.o misc.o
snprintf.o phones/PHONES.o links/LINKS.o devices/DEVICES.o

---------------------------------------------------------



[Olivier-Kaloudoffs-Computer:~/gnokii-0.5.0/common] olivierkaloudoff% gcc
-shared-libgcc  -o libgnokii.so.1.0 gsm-api.o gsm-error.o
gsm-statemachine.o cfgreader.o device.o vcal.o vcard.o gsm-networks.o
gsm-filetypes.o gsm-ringtones.o gsm-bitmaps.o gsm-sms.o gsm-call.o
gsm-encoding.o gsm-common.o sms-nokia.o nokia-decoding.o compat.o misc.o
snprintf.o phones/PHONES.o links/LINKS.o devices/DEVICES.o
ld: warning multiple definitions of symbol _snprintf
snprintf.o definition of _snprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(snprintf.So) definition of _snprintf
ld: warning multiple definitions of symbol _vsnprintf
snprintf.o definition of _vsnprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(vsnprintf.So) definition of _vsnprintf
ld: Undefined symbols:
_main
_XpmReadFileToXpmImage
_XpmWriteFileFromXpmImage
[Olivier-Kaloudoffs-Computer:~/gnokii-0.5.0/common] olivierkaloudoff%

---------------------------------------------------------
[Olivier-Kaloudoffs-Computer:~/gnokii-0.5.0/common] olivierkaloudoff% make
-p > /tmp/make


[Olivier-Kaloudoffs-Computer:~/gnokii-0.5.0/common] olivierkaloudoff% grep
XPM /tmp/make
XPM_LIBS = -L/usr/X11R6/lib -lXpm -lX11
XPM_CFLAGS = -I/usr/X11R6/include

(HOW should I customise this to have it work ?
tried to export XPM_CFLAGS with the correct path,
and make -e, but failed ... I must be missing something
with make)


---------------------------------------------------------
linking with ld -r -o libgnokii.so.1.0 is ok:
---------------------------------------------------------

[Olivier-Kaloudoffs-Computer:src/gnokii-0.5.0/common] root# ld -dynamic -r
-o libgnokii.so.1.0 gsm-api.o gsm-error.o gsm-statemachine.o cfgreader.o
device.o vcal.o vcard.o gsm-networks.o gsm-filetypes.o gsm-ringtones.o
gsm-bitmaps.o gsm-sms.o gsm-call.o gsm-encoding.o gsm-common.o sms-nokia.o
nokia-decoding.o compat.o misc.o snprintf.o phones/PHONES.o links/LINKS.o
devices/DEVICES.o


[Olivier-Kaloudoffs-Computer:src/gnokii-0.5.0/common] root# ln -s
libgnokii.so.1.0 libgnokii.so

[Olivier-Kaloudoffs-Computer:src/gnokii-0.5.0/common] root# make
make: Nothing to be done for `all'.


---------------------------------------------------------
[Olivier-Kaloudoffs-Computer:/sw/src/gnokii-0.5.0] root# cd gnokii

[Olivier-Kaloudoffs-Computer:src/gnokii-0.5.0/gnokii] root# make
gcc  gnokii.o ../getopt/libgetopt.a  -L../common -lgnokii -L/usr/X11R6/lib
-lXpm -lX11 -o gnokii
ld: can't locate file for: -lgnokii
make: *** [gnokii] Error 1


---------------------------------------------------------

[Olivier-Kaloudoffs-Computer:src/gnokii-0.5.0/common] root# libtool -o
libgnokii.a gsm-api.o gsm-error.o gsm-statemachine.o cfgreader.o device.o
vcal.o vcard.o gsm-networks.o gsm-filetypes.o gsm-ringtones.o
gsm-bitmaps.o gsm-sms.o gsm-call.o gsm-encoding.o gsm-common.o sms-nokia.o
nokia-decoding.o compat.o misc.o snprintf.o phones/PHONES.o links/LINKS.o
devices/DEVICES.o

---------------------------------------------------------

[Olivier-Kaloudoffs-Computer:src/gnokii-0.5.0/gnokii] root# make
gcc  gnokii.o ../getopt/libgetopt.a  -L../common -lgnokii -L/usr/X11R6/lib
-lXpm -lX11 -o gnokii
ld: warning multiple definitions of symbol _snprintf
../common/libgnokii.a(snprintf.o) definition of _snprintf in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(snprintf.So) definition of _snprintf
ld: warning multiple definitions of symbol _vsnprintf
../common/libgnokii.a(snprintf.o) definition of _vsnprintf in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(vsnprintf.So) definition of _vsnprintf
ld: warning dynamic shared library: /usr/X11R6/lib/libX11.dylib not made a
weak library in output with MACOSX_DEPLOYMENT_TARGET environment variable
set to: 10.1




Regards,
Olivier Kaloudoff
French Gnokii User





reply via email to

[Prev in Thread] Current Thread [Next in Thread]