Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error while compiling nautilus-sendto-0.5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Specialized
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 264

PostPosted: Thu Apr 20, 2006 9:26 pm    Post subject: Error while compiling nautilus-sendto-0.5 Reply with quote

hi,
I'm trying to emerge nautilus-sento, but I always get this error:

Code:
bluetooth.c: In function `init':
bluetooth.c:51: error: too many arguments to function `btctl_controller_is_initialised'
make[3]: *** [bluetooth.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
evolution.c: In function `add_evolution_contacts_to_model':
evolution.c:80: warning: initialization discards qualifiers from pointer target type
evolution.c:81: warning: initialization discards qualifiers from pointer target type


With USE="-bluetooth" it works, but just for easy send files via bluetooth I want to install it.
How can I fix this?
Back to top
View user's profile Send private message
Specialized
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 264

PostPosted: Sat May 13, 2006 10:16 am    Post subject: Reply with quote

I have found the error, but not able to write a working Patch :cry:
The Problem is one line in nautilus-sendto-0.5.orig/src/plugins/bluetooth.c.
See here
Back to top
View user's profile Send private message
Specialized
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 264

PostPosted: Sun May 14, 2006 5:40 pm    Post subject: Reply with quote

Okay, it seems, nobody can help me. Here is a little workaround for those who have the same Problem:
Code:
USE="-bluetooth" emerge nautilus-sendto

then copy the tar.bz2 to your root-folder
Code:
cp /usr/portage/distfiles/nautilus-sendto-0.5.tar.bz2 /root/

then unpack it:
Code:
cd /root/ && tar -xvjf nautilus-sendto-0.5.tar.bz2

change some lines in nautilus-sendto-0.5/src/plugins/bluetooth.c:
Code:
nano nautilus-sendto-0.5/src/plugins/bluetooth.c

Now change line 51 from:
Code:
 if (btctl_controller_is_initialised (BTCTL_CONTROLLER (btctl), &e) == FALSE) {

to
Code:
 if (btctl_controller_is_initialised (BTCTL_CONTROLLER (btctl)) == FALSE) {

now you only have to install it the usual way:
Code:
cd /root/nautilus-sendto-0.5/ && ./configure && make && make install

The entry for send via Bluetooth is not shown by default, you have to turn on your bluetooth adapter and the gnome-obex-server and then it will be shown.
Back to top
View user's profile Send private message
sog
Guru
Guru


Joined: 04 Apr 2004
Posts: 356

PostPosted: Fri May 19, 2006 9:16 pm    Post subject: Reply with quote

bless you, Specialized. this worked like a charm. i now see a Send To option, and can initiate file transfers to my phone.

it's not working, so far, but at least i'm on the way. thanks - hope the nautilus-sendto devs pick up that change shortly.
_________________
------------------------------------------------
(blog) http://www.redmonk.com/sogrady/
Back to top
View user's profile Send private message
Specialized
Apprentice
Apprentice


Joined: 11 Jan 2005
Posts: 264

PostPosted: Mon Jun 26, 2006 8:02 pm    Post subject: Reply with quote

It seems the bug is fixed with libbtctl-0.6.0-r1. See here
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum