Installation problems | Problèmes à l'installation
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. |
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 ) |
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 ? |
Subscription date : 25 January 2013
Messages : 26
|
fabounet :
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 |
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 |
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. |
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 |
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
|