Jump to content


gnokii installation from source


15 replies to this topic

#1 Michael06

    Member

  • Members
  • 22 posts
  • LocationMaidenhead, UK & Nice, France

Posted 15 April 2008 - 07:27 PM

Has anyone tried installing gnokii from source or got the package from apt-get working successfully? The package appears to be an old version (0.6.14), whilst installing from source runs into problems at the ./configure stage.

I'm actually looking for something similar to Nokia PC suite to manage my mobile phone and send SMS msgs.

Michael

#2 Neil

    EEEmazing User

  • Moderators
  • 6,897 posts
  • LocationBerkshire, England

Posted 15 April 2008 - 07:28 PM

Does it say what the problems are?

#3 cjdshaw

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 16 April 2008 - 04:01 AM

I compiled 0.6.24 from source and I don't remember it being hard. What error does configure give? The main reason I wanted 0.6.24 over 0.6.14 was support for text messages over 160characters

#4 Michael06

    Member

  • Members
  • 22 posts
  • LocationMaidenhead, UK & Nice, France

Posted 17 April 2008 - 06:03 PM

Hi Neil,

Many thanks for the superfast reply. This is what I get once I try to configure the tarball:

home/user/gnokii-0.6.24> ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... none
checking dependency style of gcc... none
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for flex... no
checking for lex... no
checking for rm... /bin/rm
checking for find... /usr/bin/find
checking for gmake... no
checking for make... no
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for intltool >= 0.35.0... 0.36.2 found
checking for perl... /usr/bin/perl
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool


I see a few no's and don't know whether they matter, and am not sure what the perl module is I appear to require.

Michael

#5 cjdshaw

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 17 April 2008 - 09:06 PM

Try
sudo apt-get install libxml-parser-perl
then ./configure again

#6 Michael06

    Member

  • Members
  • 22 posts
  • LocationMaidenhead, UK & Nice, France

Posted 18 April 2008 - 08:16 AM

Eureka! That really helped. Thank you. I'm now here, and stuck again

G N O K I I

A toolset and driver for the mobile phones.

Copyright © 1999-2006 The Gnokii Development Team.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

See file COPYING for more details.

Host system: linux-gnu
Gnokii version: 0.6.24
Xgnokii version: 1.0
X (GTK+) support: no
smsd support: no
Postgres support: no
MySQL support: no
Debug: yes
XDebug: yes
RLPDebug: yes
NLS: yes
IrDA: yes
ical read support: no
Bluetooth: no
libusb support: no
libpcsclite support:no
Security: no
Build Shared Lib: yes
Build Static Lib: yes
Win32: no
Prefix: /usr/local

Type '' for compilation and then ' install', to
install gnokii.

I thought I'd have to enter make followed by make configure, but the response I get is:

home/user/gnokii-0.6.24> make
bash: make: command not found

and I'm not quite sure how to handle the quotation mark instructions at the end of the script.

Michael

#7 cjdshaw

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 18 April 2008 - 08:25 AM

Hmmm. You did do
sudo apt-get install build-essential
to install the full build environment, not just gcc, didn't you?

#8 Michael06

    Member

  • Members
  • 22 posts
  • LocationMaidenhead, UK & Nice, France

Posted 19 April 2008 - 01:10 PM

Now I have! Started from scratch again, hit make and got this far:

creating gnokii
make[1]: Leaving directory `/home/user/gnokii-0.6.24/gnokii'
Making all in po
make[1]: Entering directory `/home/user/gnokii-0.6.24/po'
file=`echo cs | sed 's,.*/,,'`.gmo \
&& rm -f $file && -o $file cs.po
/bin/sh: line 1: -o: command not found
make[1]: *** [cs.gmo] Error 127
make[1]: Leaving directory `/home/user/gnokii-0.6.24/po'
make: *** [all-recursive] Error 1
/home/user/gnokii-0.6.24>

Any ideas??

Michael

#9 cjdshaw

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 19 April 2008 - 05:30 PM

It's all coming flooding back. It was a bit of a pain. Try
sudo apt-get install gettext
then rerun configure and make

#10 Michael06

    Member

  • Members
  • 22 posts
  • LocationMaidenhead, UK & Nice, France

Posted 20 April 2008 - 10:38 AM

cdshaw, I really appreciate your help. Thank you.

Think I've now successfully complete make and tried make install, but got stuck here:

make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include/gnokii" || /bin/mkdir -p "/usr/local/include/gnokii"
/bin/mkdir: cannot create directory `/usr/local/include/gnokii': Permission denied
make[3]: *** [install-gnokiisubHEADERS] Error 1
make[3]: Leaving directory `/home/user/gnokii-0.6.24/include/gnokii'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/user/gnokii-0.6.24/include/gnokii'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/user/gnokii-0.6.24/include'
make: *** [install-recursive] Error 1
/home/user/gnokii-0.6.24>

Any ideas?

Michael

#11 cjdshaw

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 20 April 2008 - 01:10 PM

Most installs need super-user privileges, so try
sudo make install

#12 Jamescondron

    New member

  • Members
  • 6 posts

Posted 20 April 2008 - 01:27 PM

All builds from source ideally should be done as root, where the instructions

#./configure
# make
# make install

are given, the # means as root- else do

$./configure
$make
$ sudo make install

($ as normal user)


Try: http://wiki.gnokii.o...hp/Installation for help, the best place to get help on a package is from the developers of a package themselves

#13 Michael06

    Member

  • Members
  • 22 posts
  • LocationMaidenhead, UK & Nice, France

Posted 20 April 2008 - 03:01 PM

Software successfully installed. Thanks for all your help. It's the 1st time I've installed from source. You can tell can't you! . . and yes, I shall study the gnokii support forum in great detail.

Michael

#14 cjdshaw

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 20 April 2008 - 04:36 PM

Glad to help. What phone are you using it with? My Nokia N95 has very limited support, but with the AT driver at least I can type text messages on my Eee.

#15 Michael06

    Member

  • Members
  • 22 posts
  • LocationMaidenhead, UK & Nice, France

Posted 23 April 2008 - 08:33 PM

I'm using an old Nokia 6230. I'm also able to connect via AT but am not able to understand very much more from the commands entered. Would really like to get the xgnokii GUI working but haven't had time to work this out yet.

Michael

#16 fresh08

    Member

  • Members
  • 10 posts

Posted 20 September 2008 - 04:27 PM

hi,

I have just installed gnokii0.6.26, built up from the source codes (was also my first time, so your tips above were very helpful!)

I have a nokia 6230i, connected with a CA53 (equals the dku2 apparently)

It all seemed to work, I unzipped the files and run /.configure. This ended with the following message:

checking for flex... no
checking for lex... no
You need one of the following:
- installed lex/flex
- generated common/gnvcal.c file (included in release tarballs, not included in CVS)

Ignoring this for now, I did the make and make install, and make clean and it all seems fine, after also installing the full builder and gettext aps. Although I did get some messages as: "xxxx defined but not used."

I changed to .gnokiirc file to match the settings as given on the wiki file:

model = 6510
port = /dev/ttyUSB0
connection = dku2

But running gnokii or xnokii gives the following error:

<i>
....
smsc_timeout: 100
connect_script:
disconnect_script:
rfcomm_cn: 1
sm_retry: off
Connecting
Serial device: opening device /dev/ttyUSB0
Gnokii serial_open: open: No such file or directory
Couldn't open PHONET device: No such file or directory
Error in link initialisation: 1
Telephone interface init failed: Command failed.
Quitting.
Command failed.
Serial device: closing device
</i>

What can I do?

Thanks!

PS I did the whole process again and the make command now ended with:
gcc: ./gnvcal.c: No such file or directory
gcc: no input files
make[2]: *** [libgnokii_la-gnvcal.lo] Error 1
make[2]: Leaving directory `/home/user/gnokii/gnokii-0.6.26/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/gnokii/gnokii-0.6.26/common'
make: *** [all-recursive] Error 1

Edited by fresh08, 20 September 2008 - 04:39 PM.

-------------------------------------------------
EEEPC 701 512 MB





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users