Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Installation problems | Problèmes à l'installation 3.1.x port for FreeBSD
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Installation problems | Problèmes à l'installation

Subjects Author Language Messages Last message
[Locked] 3.1.x port for FreeBSD
Page : 1 2 3
Max Power English 51 fabounet [Read]
13 March 2013 à 16:44

Max Power, Tuesday 05 March 2013 à 22:13


Subscription date : 25 January 2013
Messages : 26
fabounet :

I tried with -Dinstall-pc-path=/path/to/install without success.

it should work, try to delete the cache first: rm -f CMakeCache.txt

I'll give a try
fabounet :

what is the #include <unistd.h> for in cairo-dock-config.c ? I see it defines 'encrypt' but it's also defined in crypt.h (I don't explain why).

Becouse in FreeBSD encrypt is only defined in unistd.h, crypt.h does not exists.
fabounet :

why not linking with 'ld' ? since the dock uses dlopen, where does it come from if it's not from libld ?

All ld functions are defined in libc, so libdl does not exist
fabounet :

how can we check that libintl is present on the system ?

Dunno, what you think about adding a check_library_exists only for FreeBSD? Or I can add it in the port patch.

fabounet, Tuesday 05 March 2013 à 22:44


Subscription date : 30 November 2007
Messages : 17118
ok, makes sense.

I'll fix that now.

matttbe, Tuesday 05 March 2013 à 23:19


Subscription date : 24 January 2009
Messages : 12573
Hello,

Just a tiny tip: you can use 'bzr diff' to easily produce diff.
But if you still want to use diff, is it possible to use it with these parameters: -Naur (it's just much more readable and more common I think )

Max Power, Wednesday 06 March 2013 à 11:14


Subscription date : 25 January 2013
Messages : 26
matttbe :
Hello,

Just a tiny tip: you can use 'bzr diff' to easily produce diff.
But if you still want to use diff, is it possible to use it with these parameters: -Naur (it's just much more readable and more common I think )

Tnx matttbe, I'll use it next time.
I have a question, cairo-dock session is a Gnome 3 (or Linux, or Ubuntu)-only feature? This feature seems great! I want it!

fabounet, Wednesday 06 March 2013 à 11:23


Subscription date : 30 November 2007
Messages : 17118
The session is adapted for gnome-session (so yes, gnome/ubuntu), however it's easy to make a cairo-dock session for any environment (see https://launchpad.net/cairo-dock-session)

PS: I've pushed your last modifications, does it compile fine ?

Max Power, Wednesday 06 March 2013 à 11:41


Subscription date : 25 January 2013
Messages : 26
fabounet :
The session is adapted for gnome-session (so yes, gnome/ubuntu), however it's easy to make a cairo-dock session for any environment (see https://launchpad.net/cairo-dock-session)

Ok, I add it to my todo list and share it if it will done.
fabounet :

PS: I've pushed your last modifications, does it compile fine ?

Right now I'm not at home but I'll have a look at it when back

Max Power, Wednesday 06 March 2013 à 19:58


Subscription date : 25 January 2013
Messages : 26
Great! Everything works fine, thanks!
The core compiles and works without patches. For the plugins I used this:
=== modified file 'netspeed/src/applet-netspeed.c'
--- netspeed/src/applet-netspeed.c 2013-03-03 02:10:56 +0000
+++ netspeed/src/applet-netspeed.c    2013-03-06 18:38:37 +0000
@@ -125,7 +125,7 @@
        struct sockaddr_dl *sdl = (struct sockaddr_dl *) ifa->ifa_addr;
        if (sdl->sdl_type != IFT_ETHER)
            continue; // skip all non ethernet interfaces such as loopback, usb, etc...
-        if (myConfig.cInterface != NULL && strcmp (ifa->ifa_name, myConfig.cInterface) != 0)) // we monitor a given interface
+        if (myConfig.cInterface != NULL && strcmp (ifa->ifa_name, myConfig.cInterface) != 0) // we monitor a given interface
            continue;
        
        myData.bAcquisitionOK = TRUE;

=== modified file 'tomboy/src/applet-backend-tomboy.c'
--- tomboy/src/applet-backend-tomboy.c 2012-12-17 23:28:07 +0000
+++ tomboy/src/applet-backend-tomboy.c    2013-03-06 18:47:18 +0000
@@ -27,9 +27,11 @@
#include "applet-backend-tomboy.h"

static DBusGProxy *dbus_proxy_tomboy = NULL;
-
+#ifdef __FreeBSD__
+extern struct tm *localtime_r (const time_t *timer, struct tm *tp);
+#else
extern struct tm *localtime_r (time_t *timer, struct tm *tp);
-
+#endif
#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
#define g_marshal_value_peek_object(v) g_value_get_object (v)


=== modified file 'tomboy/src/applet-notes.c'
--- tomboy/src/applet-notes.c 2013-01-26 22:31:35 +0000
+++ tomboy/src/applet-notes.c    2013-03-06 18:41:53 +0000
@@ -31,8 +31,11 @@
#include "applet-backend-default.h"

static DBusGProxy *dbus_proxy_tomboy = NULL;
-
+#ifdef __FreeBSD__
+extern struct tm *localtime_r (const time_t *timer, struct tm *tp);
+#else
extern struct tm *localtime_r (time_t *timer, struct tm *tp);
+#endif

#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
#define g_marshal_value_peek_object(v) g_value_get_object (v)

Thanks again for your fantastic work!

fabounet, Wednesday 06 March 2013 à 20:18


Subscription date : 30 November 2007
Messages : 17118
good news !
about plug-ins, I've already pushed these modifications, so maybe you missed one revision

Edit: Sorry I didn't push actually, we should be on revision 2760 now

Max Power, Monday 11 March 2013 à 10:14


Subscription date : 25 January 2013
Messages : 26
fabounet :
good news !
about plug-ins, I've already pushed these modifications, so maybe you missed one revision

Edit: Sorry I didn't push actually, we should be on revision 2760 now

Thx fabounet, I'll try ASAP.
Now I working to port System-Monitor, but it is harder to port than the others.

Max Power, Monday 11 March 2013 à 20:19


Subscription date : 25 January 2013
Messages : 26
fabounet :
good news !
about plug-ins, I've already pushed these modifications, so maybe you missed one revision

Edit: Sorry I didn't push actually, we should be on revision 2760 now

ok, it works. Tnx

Max Power, Wednesday 13 March 2013 à 14:39


Subscription date : 25 January 2013
Messages : 26
I'm trying to port System-Monitor, but I have some questions... What myConfig.fUserHZ is? (It seems to turn myData.cpu_* in seconds) Is it set by user or by a system call?
Tnx
Max Power

fabounet, Wednesday 13 March 2013 à 16:44


Subscription date : 30 November 2007
Messages : 17118
it's the internal kernel timer frequency (the number of ticks per second)
its value can be found in /usr/src/linux-headers-xxx/include/asm-generic/param.h

however, I'm not sure at all if this value is the same for all arch/kernels ...
100 seems to be a usual value for Linux but as you can see it can be changed at compil time

Installation problems | Problèmes à l'installation

Subjects Author Language Messages Last message
[Locked] 3.1.x port for FreeBSD
Page : 1 2 3
Max Power English 51 fabounet [Read]
13 March 2013 à 16:44


Glx-Dock / Cairo-Dock List of forums Installation problems | Problèmes à l'installation 3.1.x port for FreeBSD Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.