gnokii-users
[Top][All Lists]
Advanced

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

compiling gnokii under Win32/cygwin, HOWTO


From: Mark Lakata
Subject: compiling gnokii under Win32/cygwin, HOWTO
Date: Wed, 18 Sep 2002 01:17:48 -0700

I just downloaded the .4.3 distribution and had to do a little hacking to
get it to work under Windows.


1. Install Cygwin, be sure to have at least these packages (i'm not sure if
it is exhaustive)
   a. gcc
   b. flex
   c. make, etc

2. copy the serial_nreceived() and serial_flush() subroutines from
unixserial.c into winserial.c, and remove everything but the last lines that
return the no error flag. In other words, just put in dummies to get the
program to properly link.  My guess that no one has tried compiling for
windows for a while...

3. configure using this:

  ./configure --enable-win32 --disabled-shared

4. edit the common/Makefile and gnokii/Makefile and fix the 'install:'
targets. The $(DEST_DIR) appears to be poorly implemented; it causes an
error with 'install'. just delete the sequence "$(DEST_DIR)/" in two places
in each of these makefiles. you will see what happens if you don't...

5. finally
  make install

6. run gnokii.exe to see where it complains about a missing gnokiirc file.
Copy Docs/samples/gnokiirc to where it complains about, eg

  cp Docs/samples/gnokiirc 'C:\Documents and Settings\Mark\_gnokiirc'

7. edit the _gnokiirc file. change these two lines

 port = COM1:
 use_locking = no

8. plug in your phone, and try running

   gnokii.exe --monitor
   gnokii.exe --getphonebook SM 1 end

It works for me!

-Mark






reply via email to

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