Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Fonctionnalités LINKNX
#1
Bonjour,

Y a t-il un espoir dans une future version a ce que le serveur xml
renvoie un etat apres changement constaté sur le bus.

Ceci serait idéal pour avoir une visu en temps reel sans a avoir a
interroger regulierement les etats et consommer de la ressource
inutilement.

Je pense ne pas etre le seul utilisateur de LINKNX a avoir besoin de
cette fonctionnalité.

Trés cordialement,
Yannick
#2
Bonjour,

Je viens de tenter une solution.
http://www.ouaye.net/linknx/other/object...-patch.txt

Avec le patch ci dessus, on peut faire ceci:

Requête :<admin><notification><register id='dim_value_salon'/></
notification></admin>
Réponse:<admin status='success'/>

Ensuite, lorsque la valeur change, on reçoit:
<notify id='dim_value_salon'>64</read>
<notify id='dim_value_salon'>128</read>

Et on peut le désactiver comme ça:
Requête :<admin><notification><unregister id='dim_value_salon'/></
notification></admin>
Réponse:<admin status='success'/>

Ce n'est pas encore complètement terminé. Par exemple, si tu supprimes
un objet sans avoir envoyé d'abord le "unregister", ça va probablement
exploser...

Mais ça donne déjà une idée de la solution pour voir si ça convient.

A+

Jean-François

On 4 mai, 00:17, Casi <supp...@magikdo.com> wrote:
> Bonjour,
>
> Y a t-il un espoir dans une future version a ce que le serveur xml
> renvoie un etat apres changement constaté sur le bus.
>
> Ceci serait idéal pour avoir une visu en temps reel sans a avoir a
> interroger regulierement les etats et consommer de la ressource
> inutilement.
>
> Je pense ne pas etre le seul utilisateur de LINKNX a avoir besoin de
> cette fonctionnalité.
>
> Trés cordialement,
> Yannick
#3
Bonjour,

Merci pour le PoC patch!

Ne serait-il pas intéressant de pouvoir faire :

<admin><notification><register/></notification></admin>

afin de recevoir tous les changements?

On 5 mai, 03:52, jef2000 <jef2...@ouaye.net> wrote:
> Bonjour,
>
> Je viens de tenter une solution.http://www.ouaye.net/linknx/other/object-value-notification-patch.txt
>
> Avec le patch ci dessus, on peut faire  ceci:
>
> Requête :<admin><notification><register id='dim_value_salon'/></
> notification></admin>
> Réponse:<admin status='success'/>
>
> Ensuite, lorsque la valeur change, on reçoit:
> <notify id='dim_value_salon'>64</read>
> <notify id='dim_value_salon'>128</read>
>
> Et on peut le désactiver comme ça:
> Requête :<admin><notification><unregister id='dim_value_salon'/></
> notification></admin>
> Réponse:<admin status='success'/>
>
> Ce n'est pas encore complètement terminé. Par exemple, si tu supprimes
> un objet sans avoir envoyé d'abord le "unregister", ça va probablement
> exploser...
>
> Mais ça donne déjà une idée de la solution pour voir si ça convient.
#4
Merci pour le patch, pour moi ça me conviens comme solution.

Par contre impossible de compiler, voici le config.log


----------------------------------------------------------------------------------------------------------

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by linknx configure 0.0.1.26, which was
generated by GNU Autoconf 2.60. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = srvdomo-f3ade4
uname -m = i686
uname -r = 1.5.25(0.156/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2008-06-12 19:34

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/c/WINDOWS/system32
PATH: /cygdrive/c/WINDOWS
PATH: /cygdrive/c/WINDOWS/System32/Wbem
PATH: /cygdrive/c/Program Files/Sybase/Shared/PowerBuilder/
PATH: /cygdrive/c/Program Files/Sybase/Shared/PowerBuilder/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1809: checking for a BSD-compatible install
configure:1865: result: /usr/bin/install -c
configure:1876: checking whether build environment is sane
configure:1919: result: yes
configure:1984: checking for gawk
configure:2000: found /usr/bin/gawk
configure:2011: result: gawk
configure:2022: checking whether make sets $(MAKE)
configure:2043: result: yes
configure:2292: checking for g++
configure:2308: found /usr/bin/g++
configure:2319: result: g++
configure:2350: checking for C++ compiler version
configure:2357: g++ --version >&5
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

configure:2360: $? = 0
configure:2367: g++ -v >&5
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/
configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/
usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --
mandir=/usr/share/man --infodir=/usr/share/info --enable-
languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-
included-gettext --enable-version-specific-runtime-libs --without-x --
enable-libgcj --disable-java-awt --with-system-zlib --enable-
interpreter --disable-libgcj-debug --enable-threads=posix --enable-
java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --
enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
configure:2370: $? = 0
configure:2377: g++ -V >&5
g++: `-V' option must have argument
configure:2380: $? = 1
configure:2403: checking for C++ compiler default output file name
configure:2430: g++ conftest.cpp >&5
configure:2433: $? = 0
configure:2479: result: a.exe
configure:2484: checking whether the C++ compiler works
configure:2494: ./a.exe
configure:2497: $? = 0
configure:2514: result: yes
configure:2521: checking whether we are cross compiling
configure:2523: result: no
configure:2526: checking for suffix of executables
configure:2533: g++ -o conftest.exe conftest.cpp >&5
configure:2536: $? = 0
configure:2560: result: .exe
configure:2566: checking for suffix of object files
configure:2592: g++ -c conftest.cpp >&5
configure:2595: $? = 0
configure:2618: result: o
configure:2622: checking whether we are using the GNU C++ compiler
configure:2651: g++ -c conftest.cpp >&5
configure:2657: $? = 0
configure:2664: test -z "$ac_cxx_werror_flag" || test ! -s
conftest.err
configure:2667: $? = 0
configure:2674: test -s conftest.o
configure:2677: $? = 0
configure:2691: result: yes
configure:2696: checking whether g++ accepts -g
configure:2726: g++ -c -g conftest.cpp >&5
configure:2732: $? = 0
configure:2739: test -z "$ac_cxx_werror_flag" || test ! -s
conftest.err
configure:2742: $? = 0
configure:2749: test -s conftest.o
configure:2752: $? = 0
configure:2882: result: yes
configure:2916: checking for style of include used by make
configure:2944: result: GNU
configure:2972: checking dependency style of g++
configure:3062: result: gcc3
configure:3127: checking for gcc
configure:3143: found /usr/bin/gcc
configure:3154: result: gcc
configure:3392: checking for C compiler version
configure:3399: gcc --version >&5
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

configure:3402: $? = 0
configure:3409: gcc -v >&5
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/
configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/
usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --
mandir=/usr/share/man --infodir=/usr/share/info --enable-
languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-
included-gettext --enable-version-specific-runtime-libs --without-x --
enable-libgcj --disable-java-awt --with-system-zlib --enable-
interpreter --disable-libgcj-debug --enable-threads=posix --enable-
java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --
enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
configure:3412: $? = 0
configure:3419: gcc -V >&5
gcc: `-V' option must have argument
configure:3422: $? = 1
configure:3425: checking whether we are using the GNU C compiler
configure:3454: gcc -c conftest.c >&5
configure:3460: $? = 0
configure:3467: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:3470: $? = 0
configure:3477: test -s conftest.o
configure:3480: $? = 0
configure:3494: result: yes
configure:3499: checking whether gcc accepts -g
configure:3529: gcc -c -g conftest.c >&5
configure:3535: $? = 0
configure:3542: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:3545: $? = 0
configure:3552: test -s conftest.o
configure:3555: $? = 0
configure:3685: result: yes
configure:3702: checking for gcc option to accept ISO C89
configure:3776: gcc -c -g -O2 conftest.c >&5
configure:3782: $? = 0
configure:3789: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:3792: $? = 0
configure:3799: test -s conftest.o
configure:3802: $? = 0
configure:3822: result: none needed
configure:3842: checking dependency style of gcc
configure:3932: result: gcc3
configure:3992: checking for ranlib
configure:4008: found /usr/bin/ranlib
configure:4019: result: ranlib
configure:4050: checking how to run the C preprocessor
configure:4090: gcc -E conftest.c
configure:4096: $? = 0
configure:4134: gcc -E conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:4140: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4180: result: gcc -E
configure:4209: gcc -E conftest.c
configure:4215: $? = 0
configure:4253: gcc -E conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:4259: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4313: checking for GNU Pth
configure:4618: gcc -E -I/usr/local/include conftest.c
configure:4624: $? = 0
configure:4706: gcc -o conftest.exe -g -O2 -I/usr/local/include -I/
usr/local/include -L/usr/local/lib conftest.c -lpthsem -ldl >&5
configure:4712: $? = 0
configure:4719: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:4722: $? = 0
configure:4729: test -s conftest.exe
configure:4732: $? = 0
configure:4803: gcc -o conftest.exe -g -O2 -I/usr/local/include -I/
usr/local/include -L/usr/local/lib conftest.c -lpthsem -ldl >&5
configure:4806: $? = 0
configure:4812: ./conftest.exe
configure:4815: $? = 0
configure:4931: result: version 2.0.7, installed under /usr/local
configure:4940: checking for grep that handles long lines and -e
configure:5014: result: /usr/bin/grep
configure:5019: checking for egrep
configure:5097: result: /usr/bin/grep -E
configure:5102: checking for ANSI C header files
configure:5132: gcc -c -g -O2 conftest.c >&5
configure:5138: $? = 0
configure:5145: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5148: $? = 0
configure:5155: test -s conftest.o
configure:5158: $? = 0
configure:5254: gcc -o conftest.exe -g -O2 conftest.c >&5
configure:5257: $? = 0
configure:5263: ./conftest.exe
configure:5266: $? = 0
configure:5283: result: yes
configure:5307: checking for sys/types.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5307: checking for sys/stat.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5307: checking for stdlib.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5307: checking for string.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5307: checking for memory.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5307: checking for strings.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5307: checking for inttypes.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5307: checking for stdint.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5307: checking for unistd.h
configure:5328: gcc -c -g -O2 conftest.c >&5
configure:5334: $? = 0
configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5344: $? = 0
configure:5351: test -s conftest.o
configure:5354: $? = 0
configure:5367: result: yes
configure:5389: checking argp.h usability
configure:5406: gcc -c -g -O2 conftest.c >&5
configure:5412: $? = 0
configure:5419: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5422: $? = 0
configure:5429: test -s conftest.o
configure:5432: $? = 0
configure:5443: result: yes
configure:5447: checking argp.h presence
configure:5462: gcc -E conftest.c
configure:5468: $? = 0
configure:5489: result: yes
configure:5522: checking for argp.h
configure:5529: result: yes
configure:5542: checking for library containing argp_parse
configure:5583: gcc -o conftest.exe -g -O2 conftest.c >&5
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc8jr5j8.o: In function
`main':
/home/Administrateur/conftest.c:31: undefined reference to
`_argp_parse'
collect2: ld returned 1 exit status
configure:5589: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char argp_parse ();
| int
| main ()
| {
| return argp_parse ();
| ;
| return 0;
| }
configure:5583: gcc -o conftest.exe -g -O2 conftest.c -largp >&5
configure:5589: $? = 0
configure:5596: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:5599: $? = 0
configure:5606: test -s conftest.exe
configure:5609: $? = 0
configure:5633: result: -largp
configure:5680: checking for cppunit-config
configure:5711: result: no
configure:5721: checking for Cppunit - version >= 1.9.6
configure:5846: checking for gawk
configure:5873: result: gawk
configure:5935: checking for curl-config
configure:5953: found /usr/local/bin/curl-config
configure:5965: result: /usr/local/bin/curl-config
configure:5976: checking for the version of libcurl
configure:5983: result: 7.19.2
configure:5990: checking for libcurl >= version 7.14.0
configure:6003: result: yes
configure:6044: checking whether libcurl is usable
configure:6087: gcc -o conftest.exe -g -O2 -I/usr/local/include
conftest.c -L/usr/local/lib -lcurl -largp >&5
configure:6093: $? = 0
configure:6100: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:6103: $? = 0
configure:6110: test -s conftest.exe
configure:6113: $? = 0
configure:6132: result: yes
configure:6145: checking for curl_free
configure:6201: gcc -o conftest.exe -g -O2 -I/usr/local/include
conftest.c -largp -L/usr/local/lib -lcurl >&5
configure:6207: $? = 0
configure:6214: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:6217: $? = 0
configure:6224: test -s conftest.exe
configure:6227: $? = 0
configure:6240: result: yes
configure:6327: checking for ANSI C header files
configure:6508: result: yes
configure:6536: checking fcntl.h usability
configure:6553: gcc -c -g -O2 conftest.c >&5
configure:6559: $? = 0
configure:6566: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:6569: $? = 0
configure:6576: test -s conftest.o
configure:6579: $? = 0
configure:6590: result: yes
configure:6594: checking fcntl.h presence
configure:6609: gcc -E conftest.c
configure:6615: $? = 0
configure:6636: result: yes
configure:6669: checking for fcntl.h
configure:6677: result: yes
configure:6536: checking stddef.h usability
configure:6553: gcc -c -g -O2 conftest.c >&5
configure:6559: $? = 0
configure:6566: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:6569: $? = 0
configure:6576: test -s conftest.o
configure:6579: $? = 0
configure:6590: result: yes
configure:6594: checking stddef.h presence
configure:6609: gcc -E conftest.c
configure:6615: $? = 0
configure:6636: result: yes
configure:6669: checking for stddef.h
configure:6677: result: yes
configure:6526: checking for stdlib.h
configure:6532: result: yes
configure:6526: checking for unistd.h
configure:6532: result: yes
configure:6691: checking for struct tm.tm_gmtoff
configure:6720: gcc -c -g -O2 conftest.c >&5
conftest.c: In function `main':
conftest.c:38: error: structure has no member named `tm_gmtoff'
configure:6726: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIBCURL 1
| #define LIBCURL_PROTOCOL_HTTP 1
| #define LIBCURL_PROTOCOL_FTP 1
| #define LIBCURL_PROTOCOL_FILE 1
| #define LIBCURL_PROTOCOL_TELNET 1
| #define LIBCURL_PROTOCOL_DICT 1
| #define LIBCURL_PROTOCOL_TFTP 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <time.h>
|
| int
| main ()
| {
| static struct tm ac_aggr;
| if (ac_aggr.tm_gmtoff)
| return 0;
| ;
| return 0;
| }
configure:6777: gcc -c -g -O2 conftest.c >&5
conftest.c: In function `main':
conftest.c:38: error: structure has no member named `tm_gmtoff'
configure:6783: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIBCURL 1
| #define LIBCURL_PROTOCOL_HTTP 1
| #define LIBCURL_PROTOCOL_FTP 1
| #define LIBCURL_PROTOCOL_FILE 1
| #define LIBCURL_PROTOCOL_TELNET 1
| #define LIBCURL_PROTOCOL_DICT 1
| #define LIBCURL_PROTOCOL_TFTP 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <time.h>
|
| int
| main ()
| {
| static struct tm ac_aggr;
| if (sizeof ac_aggr.tm_gmtoff)
| return 0;
| ;
| return 0;
| }
configure:6818: result: no
configure:6833: checking for struct tm.__tm_gmtoff
configure:6862: gcc -c -g -O2 conftest.c >&5
conftest.c: In function `main':
conftest.c:38: error: structure has no member named `__tm_gmtoff'
configure:6868: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIBCURL 1
| #define LIBCURL_PROTOCOL_HTTP 1
| #define LIBCURL_PROTOCOL_FTP 1
| #define LIBCURL_PROTOCOL_FILE 1
| #define LIBCURL_PROTOCOL_TELNET 1
| #define LIBCURL_PROTOCOL_DICT 1
| #define LIBCURL_PROTOCOL_TFTP 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <time.h>
|
| int
| main ()
| {
| static struct tm ac_aggr;
| if (ac_aggr.__tm_gmtoff)
| return 0;
| ;
| return 0;
| }
configure:6919: gcc -c -g -O2 conftest.c >&5
conftest.c: In function `main':
conftest.c:38: error: structure has no member named `__tm_gmtoff'
configure:6925: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIBCURL 1
| #define LIBCURL_PROTOCOL_HTTP 1
| #define LIBCURL_PROTOCOL_FTP 1
| #define LIBCURL_PROTOCOL_FILE 1
| #define LIBCURL_PROTOCOL_TELNET 1
| #define LIBCURL_PROTOCOL_DICT 1
| #define LIBCURL_PROTOCOL_TFTP 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <time.h>
|
| int
| main ()
| {
| static struct tm ac_aggr;
| if (sizeof ac_aggr.__tm_gmtoff)
| return 0;
| ;
| return 0;
| }
configure:6960: result: no
configure:6978: checking for mysql_config executable
configure:7008: result: not found
configure:8462: checking libesmtp.h usability
configure:8479: gcc -c -g -O2 conftest.c >&5
conftest.c:65:22: libesmtp.h: No such file or directory
configure:8485: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIBCURL 1
| #define LIBCURL_PROTOCOL_HTTP 1
| #define LIBCURL_PROTOCOL_FTP 1
| #define LIBCURL_PROTOCOL_FILE 1
| #define LIBCURL_PROTOCOL_TELNET 1
| #define LIBCURL_PROTOCOL_DICT 1
| #define LIBCURL_PROTOCOL_TFTP 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #if HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <libesmtp.h>
configure:8516: result: no
configure:8520: checking libesmtp.h presence
configure:8535: gcc -E conftest.c
conftest.c:32:22: libesmtp.h: No such file or directory
configure:8541: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "linknx"
| #define PACKAGE_TARNAME "linknx"
| #define PACKAGE_VERSION "0.0.1.26"
| #define PACKAGE_STRING "linknx 0.0.1.26"
| #define PACKAGE_BUGREPORT "linknx@ouaye.net"
| #define PACKAGE "linknx"
| #define VERSION "0.0.1.26"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIBCURL 1
| #define LIBCURL_PROTOCOL_HTTP 1
| #define LIBCURL_PROTOCOL_FTP 1
| #define LIBCURL_PROTOCOL_FILE 1
| #define LIBCURL_PROTOCOL_TELNET 1
| #define LIBCURL_PROTOCOL_DICT 1
| #define LIBCURL_PROTOCOL_TFTP 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <libesmtp.h>
configure:8562: result: no
configure:8595: checking for libesmtp.h
configure:8602: result: no
configure:8626: checking whether to use libesmtp
configure:8655: result: no
configure:8662: checking for log4cpp-config
configure:8695: result: no
configure:8700: checking for log4cpp
configure:8711: result: yes
configure:8770: checking for pkg-config
configure:8803: result: no
configure:8843: checking for LOG4CPP
configure:8933: error: The pkg-config script could not be found or is
too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LOG4CPP_CFLAGS
and LOG4CPP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://www.freedesktop.org/software/
pkgconfig>.
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LOG4CPP_CFLAGS_set=
ac_cv_env_LOG4CPP_CFLAGS_value=
ac_cv_env_LOG4CPP_LIBS_set=
ac_cv_env_LOG4CPP_LIBS_value=
ac_cv_env_LUA_CFLAGS_set=
ac_cv_env_LUA_CFLAGS_value=
ac_cv_env_LUA_LIBS_set=
ac_cv_env_LUA_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=.exe
ac_cv_func_curl_free=yes
ac_cv_header_argp_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_libesmtp_h=no
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stddef_h=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_member_struct_tm___tm_gmtoff=no
ac_cv_member_struct_tm_tm_gmtoff=no
ac_cv_objext=o
ac_cv_path_CPPUNIT_CONFIG=no
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path__libcurl_config=/usr/local/bin/curl-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_search_argp_parse=-largp
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
libcurl_cv_lib_curl_usable=yes
libcurl_cv_lib_curl_version=7.19.2
libcurl_cv_lib_version_ok=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/Administrateur/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/Administrateur/missing --run tar'
AUTOCONF='${SHELL} /home/Administrateur/missing --run autoconf'
AUTOHEADER='${SHELL} /home/Administrateur/missing --run autoheader'
AUTOMAKE='${SHELL} /home/Administrateur/missing --run automake-1.9'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CPPUNIT_CFLAGS=''
CPPUNIT_CONFIG='no'
CPPUNIT_FALSE=''
CPPUNIT_LIBS=''
CPPUNIT_TRUE='#'
CXX='g++'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='cygpath -w'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT='.exe'
GREP='/usr/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBCURL='-L/usr/local/lib -lcurl'
LIBCURL_CPPFLAGS='-I/usr/local/include'
LIBOBJS=''
LIBS='-largp '
LOG4CPP_CFLAGS=''
LOG4CPP_CONFIG=''
LOG4CPP_LIBS=''
LTLIBOBJS=''
LUA_CFLAGS=''
LUA_LIBS=''
MAKEINFO='${SHELL} /home/Administrateur/missing --run makeinfo'
OBJEXT='o'
PACKAGE='linknx'
PACKAGE_BUGREPORT='linknx@ouaye.net'
PACKAGE_NAME='linknx'
PACKAGE_STRING='linknx 0.0.1.26'
PACKAGE_TARNAME='linknx'
PACKAGE_VERSION='0.0.1.26'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PTH_CFLAGS='-I/usr/local/include'
PTH_CPPFLAGS='-I/usr/local/include'
PTH_LDFLAGS='-L/usr/local/lib'
PTH_LIBS='-lpthsem -ldl'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.0.1.26'
_libcurl_config=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='/home/Administrateur/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "linknx"
#define PACKAGE_TARNAME "linknx"
#define PACKAGE_VERSION "0.0.1.26"
#define PACKAGE_STRING "linknx 0.0.1.26"
#define PACKAGE_BUGREPORT "linknx@ouaye.net"
#define PACKAGE "linknx"
#define VERSION "0.0.1.26"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LIBCURL 1
#define LIBCURL_PROTOCOL_HTTP 1
#define LIBCURL_PROTOCOL_FTP 1
#define LIBCURL_PROTOCOL_FILE 1
#define LIBCURL_PROTOCOL_TELNET 1
#define LIBCURL_PROTOCOL_DICT 1
#define LIBCURL_PROTOCOL_TFTP 1
#define STDC_HEADERS 1
#define HAVE_FCNTL_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STDLIB_H 1
#define HAVE_UNISTD_H 1

configure: exit 1

On 5 mai, 06:01, sam974 <s...@wanhoi.org> wrote:
> Bonjour,
>
> Merci pour le PoC patch!
>
> Ne serait-il pas intéressant de pouvoir faire :
>
> <admin><notification><register/></notification></admin>
>
> afin de recevoir tous les changements?
>
> On 5 mai, 03:52, jef2000 <jef2...@ouaye.net> wrote:
>
>
>
> > Bonjour,
>
> > Je viens de tenter une solution.http://www.ouaye.net/linknx/other/object-value-notification-patch.txt
>
> > Avec le patch ci dessus, on peut faire  ceci:
>
> > Requête :<admin><notification><register id='dim_value_salon'/></
> > notification></admin>
> > Réponse:<admin status='success'/>
>
> > Ensuite, lorsque la valeur change, on reçoit:
> > <notify id='dim_value_salon'>64</read>
> > <notify id='dim_value_salon'>128</read>
>
> > Et on peut le désactiver comme ça:
> > Requête :<admin><notification><unregister id='dim_value_salon'/></
> > notification></admin>
> > Réponse:<admin status='success'/>
>
> > Ce n'est pas encore complètement terminé. Par exemple, si tu supprimes
> > un objet sans avoir envoyé d'abord le "unregister", ça va probablement
> > exploser...
>
> > Mais ça donne déjà une idée de la solution pour voir si ça convient.- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -
#5
J'ai partiellement résolu mon probleme, il me manquait des packages,
toutefois, ça ne compile pas encore. il semble que configure de linknx
ne soit pas copain copain avec mon package lua...

Un log serait plus parlant pour celui qui voudra bien m'aider Wink

$ ./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && make && make
install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.exe
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
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 dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for GNU Pth... version 2.0.7, installed under /usr/local
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking argp.h usability... yes
checking argp.h presence... yes
checking for argp.h... yes
checking for library containing argp_parse... -largp
checking for cppunit-config... no
checking for Cppunit - version >= 1.9.6... checking for gawk...
(cached) gawk
checking for curl-config... /usr/local/bin/curl-config
checking for the version of libcurl... 7.19.2
checking for libcurl >= version 7.14.0... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for struct tm.tm_gmtoff... no
checking for struct tm.__tm_gmtoff... no
checking for mysql_config executable... not found
checking libesmtp.h usability... no
checking libesmtp.h presence... no
checking for libesmtp.h... no
checking whether to use libesmtp... no
checking for log4cpp-config... /usr/local/bin/log4cpp-config
checking for log4cpp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LOG4CPP... yes
checking for lua... yes
checking for LUA... Package lua was not found in the pkg-config search
path.
Perhaps you should add the directory containing `lua.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua' found
checking for LUA... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for dup2... yes
checking for memmove... yes
checking for memset... yes
checking for strchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating ticpp/Makefile
config.status: creating include/Makefile
config.status: creating test/Makefile
config.status: creating conf/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory `/home/Administrateur'
Making all in ticpp
make[2]: Entering directory `/home/Administrateur/ticpp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Administrateur/ticpp'
Making all in src
make[2]: Entering directory `/home/Administrateur/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../ticpp -I/usr/
local/includ
e -I/usr/local/include -O2 -DNDEBUG -I/usr/local/include -I/usr/
local/include
-g -O2 -MT luacondition.o -MD -MP -MF ".deps/luacondition.Tpo" -c -
o luacond
ition.o luacondition.cpp; \
then mv -f ".deps/luacondition.Tpo" ".deps/luacondition.Po";
else rm -f
".deps/luacondition.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../ticpp -I/usr/
local/includ
e -I/usr/local/include -O2 -DNDEBUG -I/usr/local/include -I/usr/
local/include
-g -O2 -MT ioport.o -MD -MP -MF ".deps/ioport.Tpo" -c -o ioport.o
ioport.cpp
; \
then mv -f ".deps/ioport.Tpo" ".deps/ioport.Po"; else rm -f
".deps/iopor
t.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../ticpp -I/usr/
local/includ
e -I/usr/local/include -O2 -DNDEBUG -I/usr/local/include -I/usr/
local/include
-g -O2 -MT logger.o -MD -MP -MF ".deps/logger.Tpo" -c -o logger.o
logger.cpp
; \
then mv -f ".deps/logger.Tpo" ".deps/logger.Po"; else rm -f
".deps/logge
r.Tpo"; exit 1; fi
g++ -g -O2 -o linknx.exe linknx.o ruleserver.o objectcontroller.o
common.o e
ibclient.o threads.o timermanager.o persistentstorage.o xmlserver.o
smsgateway.o
emailgateway.o knxconnection.o services.o suncalc.o luacondition.o
ioport.o log
ger.o ../ticpp/libticpp.a -L/usr/local/lib -lpthsem -ldl -L/usr/local/
lib -lcurl
-L/usr/local/lib -llog4cpp -L/usr/local/lib -llua -lm -lm -largp
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
cannot find
-llua
collect2: ld returned 1 exit status
make[2]: *** [linknx.exe] Error 1
make[2]: Leaving directory `/home/Administrateur/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrateur'
make: *** [all] Error 2

On 5 mai, 12:50, Casi <supp...@magikdo.com> wrote:
> Merci pour le patch, pour moi ça me conviens comme solution.
>
> Par contre impossible de compiler, voici le config.log
>
> ---------------------------------------------------------------------------­-------------------------------
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by linknx configure 0.0.1.26, which was
> generated by GNU Autoconf 2.60.  Invocation command line was
>
>   $ ./configure
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = srvdomo-f3ade4
> uname -m = i686
> uname -r = 1.5.25(0.156/4/2)
> uname -s = CYGWIN_NT-5.1
> uname -v = 2008-06-12 19:34
>
> /usr/bin/uname -p = unknown
> /bin/uname -X     = unknown
>
> /bin/arch              = i686
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo      = unknown
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
>
> PATH: /usr/local/bin
> PATH: /usr/bin
> PATH: /bin
> PATH: /usr/X11R6/bin
> PATH: /cygdrive/c/WINDOWS/system32
> PATH: /cygdrive/c/WINDOWS
> PATH: /cygdrive/c/WINDOWS/System32/Wbem
> PATH: /cygdrive/c/Program Files/Sybase/Shared/PowerBuilder/
> PATH: /cygdrive/c/Program Files/Sybase/Shared/PowerBuilder/
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:1809: checking for a BSD-compatible install
> configure:1865: result: /usr/bin/install -c
> configure:1876: checking whether build environment is sane
> configure:1919: result: yes
> configure:1984: checking for gawk
> configure:2000: found /usr/bin/gawk
> configure:2011: result: gawk
> configure:2022: checking whether make sets $(MAKE)
> configure:2043: result: yes
> configure:2292: checking for g++
> configure:2308: found /usr/bin/g++
> configure:2319: result: g++
> configure:2350: checking for C++ compiler version
> configure:2357: g++ --version >&5
> g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> Copyright © 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> configure:2360: $? = 0
> configure:2367: g++ -v >&5
> Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
> Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/
> configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/
> usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --
> mandir=/usr/share/man --infodir=/usr/share/info --enable-
> languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-
> included-gettext --enable-version-specific-runtime-libs --without-x --
> enable-libgcj --disable-java-awt --with-system-zlib --enable-
> interpreter --disable-libgcj-debug --enable-threads=posix --enable-
> java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --
> enable-hash-synchronization --enable-libstdcxx-debug
> Thread model: posix
> gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> configure:2370: $? = 0
> configure:2377: g++ -V >&5
> g++: `-V' option must have argument
> configure:2380: $? = 1
> configure:2403: checking for C++ compiler default output file name
> configure:2430: g++    conftest.cpp  >&5
> configure:2433: $? = 0
> configure:2479: result: a.exe
> configure:2484: checking whether the C++ compiler works
> configure:2494: ./a.exe
> configure:2497: $? = 0
> configure:2514: result: yes
> configure:2521: checking whether we are cross compiling
> configure:2523: result: no
> configure:2526: checking for suffix of executables
> configure:2533: g++ -o conftest.exe    conftest.cpp  >&5
> configure:2536: $? = 0
> configure:2560: result: .exe
> configure:2566: checking for suffix of object files
> configure:2592: g++ -c   conftest.cpp >&5
> configure:2595: $? = 0
> configure:2618: result: o
> configure:2622: checking whether we are using the GNU C++ compiler
> configure:2651: g++ -c   conftest.cpp >&5
> configure:2657: $? = 0
> configure:2664: test -z "$ac_cxx_werror_flag" || test ! -s
> conftest.err
> configure:2667: $? = 0
> configure:2674: test -s conftest.o
> configure:2677: $? = 0
> configure:2691: result: yes
> configure:2696: checking whether g++ accepts -g
> configure:2726: g++ -c -g  conftest.cpp >&5
> configure:2732: $? = 0
> configure:2739: test -z "$ac_cxx_werror_flag" || test ! -s
> conftest.err
> configure:2742: $? = 0
> configure:2749: test -s conftest.o
> configure:2752: $? = 0
> configure:2882: result: yes
> configure:2916: checking for style of include used by make
> configure:2944: result: GNU
> configure:2972: checking dependency style of g++
> configure:3062: result: gcc3
> configure:3127: checking for gcc
> configure:3143: found /usr/bin/gcc
> configure:3154: result: gcc
> configure:3392: checking for C compiler version
> configure:3399: gcc --version >&5
> gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> Copyright © 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> configure:3402: $? = 0
> configure:3409: gcc -v >&5
> Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
> Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/
> configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/
> usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --
> mandir=/usr/share/man --infodir=/usr/share/info --enable-
> languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-
> included-gettext --enable-version-specific-runtime-libs --without-x --
> enable-libgcj --disable-java-awt --with-system-zlib --enable-
> interpreter --disable-libgcj-debug --enable-threads=posix --enable-
> java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --
> enable-hash-synchronization --enable-libstdcxx-debug
> Thread model: posix
> gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> configure:3412: $? = 0
> configure:3419: gcc -V >&5
> gcc: `-V' option must have argument
> configure:3422: $? = 1
> configure:3425: checking whether we are using the GNU C compiler
> configure:3454: gcc -c   conftest.c >&5
> configure:3460: $? = 0
> configure:3467: test -z "$ac_c_werror_flag" || test ! -s conftest.err
> configure:3470: $? = 0
> configure:3477: test -s conftest.o
> configure:3480: $? = 0
> configure:3494: result: yes
> configure:3499: checking whether gcc accepts -g
> configure:3529: gcc -c -g  conftest.c >&5
> configure:3535: $? = 0
> configure:3542: test -z "$ac_c_werror_flag" || test ! -s conftest.err
> configure:3545: $? = 0
> configure:3552: test -s conftest.o
> configure:3555: $? = 0
> configure:3685: result: yes
> configure:3702: checking for gcc option to accept ISO C89
> configure:3776: gcc  -c -g -O2  conftest.c >&5
> configure:3782: $? = 0
> configure:3789: test -z "$ac_c_werror_flag" || test ! -s conftest.err
> configure:3792: $? = 0
> configure:3799: test -s conftest.o
> configure:3802: $? = 0
> configure:3822: result: none needed
> configure:3842: checking dependency style of gcc
> configure:3932: result: gcc3
> configure:3992: checking for ranlib
> configure:4008: found /usr/bin/ranlib
> configure:4019: result: ranlib
> configure:4050: checking how to run the C preprocessor
> configure:4090: gcc -E  conftest.c
> configure:4096: $? = 0
> configure:4134: gcc -E  conftest.c
> conftest.c:10:28: ac_nonexistent.h: No such file or directory
> configure:4140: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "linknx"
> | #define PACKAGE_TARNAME "linknx"
> | #define PACKAGE_VERSION "0.0.1.26"
> | #define PACKAGE_STRING "linknx 0.0.1.26"
> | #define PACKAGE_BUGREPORT "lin...@ouaye.net"
> | #define PACKAGE "linknx"
> | #define VERSION "0.0.1.26"
> | /* end confdefs.h.  */
> | #include <ac_nonexistent.h>
> configure:4180: result: gcc -E
> configure:4209: gcc -E  conftest.c
> configure:4215: $? = 0
> configure:4253: gcc -E  conftest.c
> conftest.c:10:28: ac_nonexistent.h: No such file or directory
> configure:4259: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "linknx"
> | #define PACKAGE_TARNAME "linknx"
> | #define PACKAGE_VERSION "0.0.1.26"
> | #define PACKAGE_STRING "linknx 0.0.1.26"
> | #define PACKAGE_BUGREPORT "lin...@ouaye.net"
> | #define PACKAGE "linknx"
> | #define VERSION "0.0.1.26"
> | /* end confdefs.h.  */
> | #include <ac_nonexistent.h>
> configure:4313: checking for GNU Pth
> configure:4618: gcc -E  -I/usr/local/include conftest.c
> configure:4624: $? = 0
> configure:4706: gcc -o conftest.exe -g -O2 -I/usr/local/include  -I/
> usr/local/include  -L/usr/local/lib conftest.c  -lpthsem -ldl >&5
> configure:4712: $? = 0
> configure:4719: test -z "$ac_c_werror_flag" || test ! -s conftest.err
> configure:4722: $? = 0
> configure:4729: test -s conftest.exe
> configure:4732: $? = 0
> configure:4803: gcc -o conftest.exe -g -O2 -I/usr/local/include  -I/
> usr/local/include  -L/usr/local/lib conftest.c  -lpthsem -ldl >&5
> configure:4806: $? = 0
> configure:4812: ./conftest.exe
> configure:4815: $? = 0
> configure:4931: result: version 2.0.7, installed under /usr/local
> configure:4940: checking for grep that handles long lines and -e
> configure:5014: result: /usr/bin/grep
> configure:5019: checking for egrep
> configure:5097: result: /usr/bin/grep -E
> configure:5102: checking for ANSI C header files
> configure:5132: gcc -c -g -O2  conftest.c >&5
> configure:5138: $? = 0
> configure:5145: test -z "$ac_c_werror_flag" || test ! -s conftest.err
> configure:5148: $? = 0
> configure:5155: test -s conftest.o
> configure:5158: $? = 0
> configure:5254: gcc -o conftest.exe -g -O2   conftest.c  >&5
> configure:5257: $? = 0
> configure:5263: ./conftest.exe
> configure:5266: $? = 0
> configure:5283: result: yes
> configure:5307: checking for sys/types.h
> configure:5328: gcc -c -g -O2  conftest.c >&5
> configure:5334: $? = 0
> configure:5341: test -z "$ac_c_werror_flag" || test ! -s conftest.err
> configure:5344: $? = 0
> configure:5351: test -s conftest.o
> configure:5354: $? = 0 ...
>
> plus de détails »
#6
Salut,

Le script de configuration ne trouve pas le fichier lua.pc qui devrait
se trouver dans /usr/local/lib/pkgconfig
De quelle manière as tu installé lua?

Que renvoie la commande:
/usr/bin/pkg-config --modversion lua
/usr/bin/pkg-config --libs lua

A+

Jean-François
#7
J'ai pas mal galéré pour trouver le bon package qui correspondait a
cygwin sur lua.org et je pense que au final j'ai pas pris et donc pas
installé le bon....

Voici ce que renvois la première commande:

$ /usr/bin/pkg-config --modversion lua
Package lua was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua' found

Physiquement j'ai pas de dossier nommé "pkgconfig" dans /usr/local/lib

Sinon j'ai bien le fichier lua5.1.pc dans le path /usr/local/lib/
pkgconfig

En voici son contenu :

# lua.pc -- pkg-config data for Lua

# vars from install Makefile

# grep '^V=' ../Makefile
V= 5.1
# grep '^R=' ../Makefile
R= 5.1.4

# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
prefix= /usr/local
INSTALL_BIN= ${prefix}/bin
INSTALL_INC= ${prefix}/include
INSTALL_LIB= ${prefix}/lib
INSTALL_MAN= ${prefix}/man/man1
INSTALL_LMOD= ${prefix}/share/lua/${V}
INSTALL_CMOD= ${prefix}/lib/lua/${V}

# canonical vars
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Lua
Description: An Extensible Extension Language
Version: ${R}
Requires:
Libs: -L${libdir} -llua -lm
Cflags: -I${includedir}

# (end of lua.pc)


On 6 mai, 08:24, jef2000 <jef2...@ouaye.net> wrote:
> Salut,
>
> Le script de configuration ne trouve pas le fichier lua.pc qui devrait
> se trouver dans /usr/local/lib/pkgconfig
> De quelle manière as tu installé lua?
>
> Que renvoie la commande:
> /usr/bin/pkg-config --modversion lua
> /usr/bin/pkg-config --libs lua
>
> A+
>
> Jean-François
#8
Le mieux serait peut-etre de m'envoyer le fichier linknx.exe compilé
je crois que ce serait plus simple!!!!! je me tue la dessus depuis
hier!!!

On 6 mai, 17:26, Casi <supp...@magikdo.com> wrote:
> J'ai pas mal galéré pour trouver le bon package qui correspondait a
> cygwin sur lua.org et je pense que au final j'ai pas pris et donc pas
> installé le bon....
>
> Voici ce que renvois la première commande:
>
> $ /usr/bin/pkg-config --modversion lua
> Package lua was not found in the pkg-config search path.
> Perhaps you should add the directory containing `lua.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'lua' found
>
> Physiquement j'ai pas de dossier nommé "pkgconfig" dans /usr/local/lib
>
> Sinon j'ai bien le fichier lua5.1.pc dans le path /usr/local/lib/
> pkgconfig
>
> En voici son contenu :
>
> # lua.pc -- pkg-config data for Lua
>
> # vars from install Makefile
>
> # grep '^V=' ../Makefile
> V= 5.1
> # grep '^R=' ../Makefile
> R= 5.1.4
>
> # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
> prefix= /usr/local
> INSTALL_BIN= ${prefix}/bin
> INSTALL_INC= ${prefix}/include
> INSTALL_LIB= ${prefix}/lib
> INSTALL_MAN= ${prefix}/man/man1
> INSTALL_LMOD= ${prefix}/share/lua/${V}
> INSTALL_CMOD= ${prefix}/lib/lua/${V}
>
> # canonical vars
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
>
> Name: Lua
> Description: An Extensible Extension Language
> Version: ${R}
> Requires:
> Libs: -L${libdir} -llua -lm
> Cflags: -I${includedir}
>
> # (end of lua.pc)
>
> On 6 mai, 08:24, jef2000 <jef2...@ouaye.net> wrote:
>
>
>
> > Salut,
>
> > Le script de configuration ne trouve pas le fichier lua.pc qui devrait
> > se trouver dans /usr/local/lib/pkgconfig
> > De quelle manière as tu installé lua?
>
> > Que renvoie la commande:
> > /usr/bin/pkg-config --modversion lua
> > /usr/bin/pkg-config --libs lua
>
> > A+
>
> > Jean-François- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -
#9
Salut,

Je n'ai pas encore eu l'occasion de tester lua avec cygwin. Pour la
version 0.0.1.26, j'ai utilisé les options --without-log4cpp --without-
lua pour la commande "configure". J'essaierai dès que j'ai un peu de
temps libre.

A+

Jean-François

On 6 mai, 22:26, Casi <supp...@magikdo.com> wrote:
> Le mieux serait peut-etre de m'envoyer le fichier linknx.exe compilé
> je crois que ce serait plus simple!!!!! je me tue la dessus depuis
> hier!!!
>
> On 6 mai, 17:26, Casi <supp...@magikdo.com> wrote:
>
> > J'ai pas mal galéré pour trouver le bon package qui correspondait a
> > cygwin sur lua.org et je pense que au final j'ai pas pris et donc pas
> > installé le bon....
>
> > Voici ce que renvois la première commande:
>
> > $ /usr/bin/pkg-config --modversion lua
> > Package lua was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `lua.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'lua' found
>
> > Physiquement j'ai pas de dossier nommé "pkgconfig" dans /usr/local/lib
>
> > Sinon j'ai bien le fichier lua5.1.pc dans le path /usr/local/lib/
> > pkgconfig
>
> > En voici son contenu :
>
> > # lua.pc -- pkg-config data for Lua
>
> > # vars from install Makefile
>
> > # grep '^V=' ../Makefile
> > V= 5.1
> > # grep '^R=' ../Makefile
> > R= 5.1.4
>
> > # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
> > prefix= /usr/local
> > INSTALL_BIN= ${prefix}/bin
> > INSTALL_INC= ${prefix}/include
> > INSTALL_LIB= ${prefix}/lib
> > INSTALL_MAN= ${prefix}/man/man1
> > INSTALL_LMOD= ${prefix}/share/lua/${V}
> > INSTALL_CMOD= ${prefix}/lib/lua/${V}
>
> > # canonical vars
> > exec_prefix=${prefix}
> > libdir=${exec_prefix}/lib
> > includedir=${prefix}/include
>
> > Name: Lua
> > Description: An Extensible Extension Language
> > Version: ${R}
> > Requires:
> > Libs: -L${libdir} -llua -lm
> > Cflags: -I${includedir}
>
> > # (end of lua.pc)
>
> > On 6 mai, 08:24, jef2000 <jef2...@ouaye.net> wrote:
>
> > > Salut,
>
> > > Le script de configuration ne trouve pas le fichier lua.pc qui devrait
> > > se trouver dans /usr/local/lib/pkgconfig
> > > De quelle manière as tu installé lua?
>
> > > Que renvoie la commande:
> > > /usr/bin/pkg-config --modversion lua
> > > /usr/bin/pkg-config --libs lua
>
> > > A+
>
> > > Jean-François- Masquer le texte des messages précédents -
>
> > - Afficher le texte des messages précédents -
#10
Bonjour,

Quel type ce fichier est (.h, .c ...?) Et/ou comment installe t-on ce
patch?

Cordialement,
Yannick

On 5 mai, 01:52, jef2000 <jef2...@ouaye.net> wrote:
> Bonjour,
>
> Je viens de tenter une solution.http://www.ouaye.net/linknx/other/object-value-notification-patch.txt
>
> Avec le patch ci dessus, on peut faire  ceci:
>
> Requête :<admin><notification><register id='dim_value_salon'/></
> notification></admin>
> Réponse:<admin status='success'/>
>
> Ensuite, lorsque la valeur change, on reçoit:
> <notify id='dim_value_salon'>64</read>
> <notify id='dim_value_salon'>128</read>
>
> Et on peut le désactiver comme ça:
> Requête :<admin><notification><unregister id='dim_value_salon'/></
> notification></admin>
> Réponse:<admin status='success'/>
>
> Ce n'est pas encore complètement terminé. Par exemple, si tu supprimes
> un objet sans avoir envoyé d'abord le "unregister", ça va probablement
> exploser...
>
> Mais ça donne déjà une idée de la solution pour voir si ça convient.
>
> A+
>
> Jean-François
>
> On 4 mai, 00:17, Casi <supp...@magikdo.com> wrote:
>
>
>
> > Bonjour,
>
> > Y a t-il un espoir dans une future version a ce que le serveur xml
> > renvoie un etat apres changement constaté sur le bus.
>
> > Ceci serait idéal pour avoir une visu en temps reel sans a avoir a
> > interroger regulierement les etats et consommer de la ressource
> > inutilement.
>
> > Je pense ne pas etre le seul utilisateur de LINKNX a avoir besoin de
> > cette fonctionnalité.
>
> > Trés cordialement,
> > Yannick- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -
#11
Merci, j'ai reussis a compiler!

Il fallait aussi utiliser la commande "cat /chemin/vers/le/
fichier.patch | patch -p1" afin de patcher linknx

Merci!

On 12 mai, 09:39, jef2000 <jef2...@ouaye.net> wrote:
> Salut,
>
> Je n'ai pas encore eu l'occasion de tester lua avec cygwin. Pour la
> version 0.0.1.26, j'ai utilisé les options --without-log4cpp --without-
> lua pour la commande "configure". J'essaierai dès que j'ai un peu de
> temps libre.
>
> A+
>
> Jean-François
>
> On 6 mai, 22:26, Casi <supp...@magikdo.com> wrote:
>
>
>
> > Le mieux serait peut-etre de m'envoyer le fichier linknx.exe compilé
> > je crois que ce serait plus simple!!!!! je me tue la dessus depuis
> > hier!!!
>
> > On 6 mai, 17:26, Casi <supp...@magikdo.com> wrote:
>
> > > J'ai pas mal galéré pour trouver le bon package qui correspondait a
> > > cygwin sur lua.org et je pense que au final j'ai pas pris et donc pas
> > > installé le bon....
>
> > > Voici ce que renvois la première commande:
>
> > > $ /usr/bin/pkg-config --modversion lua
> > > Package lua was not found in the pkg-config search path.
> > > Perhaps you should add the directory containing `lua.pc'
> > > to the PKG_CONFIG_PATH environment variable
> > > No package 'lua' found
>
> > > Physiquement j'ai pas de dossier nommé "pkgconfig" dans /usr/local/lib
>
> > > Sinon j'ai bien le fichier lua5.1.pc dans le path /usr/local/lib/
> > > pkgconfig
>
> > > En voici son contenu :
>
> > > # lua.pc -- pkg-config data for Lua
>
> > > # vars from install Makefile
>
> > > # grep '^V=' ../Makefile
> > > V= 5.1
> > > # grep '^R=' ../Makefile
> > > R= 5.1.4
>
> > > # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
> > > prefix= /usr/local
> > > INSTALL_BIN= ${prefix}/bin
> > > INSTALL_INC= ${prefix}/include
> > > INSTALL_LIB= ${prefix}/lib
> > > INSTALL_MAN= ${prefix}/man/man1
> > > INSTALL_LMOD= ${prefix}/share/lua/${V}
> > > INSTALL_CMOD= ${prefix}/lib/lua/${V}
>
> > > # canonical vars
> > > exec_prefix=${prefix}
> > > libdir=${exec_prefix}/lib
> > > includedir=${prefix}/include
>
> > > Name: Lua
> > > Description: An Extensible Extension Language
> > > Version: ${R}
> > > Requires:
> > > Libs: -L${libdir} -llua -lm
> > > Cflags: -I${includedir}
>
> > > # (end of lua.pc)
>
> > > On 6 mai, 08:24, jef2000 <jef2...@ouaye.net> wrote:
>
> > > > Salut,
>
> > > > Le script de configuration ne trouve pas le fichier lua.pc qui devrait
> > > > se trouver dans /usr/local/lib/pkgconfig
> > > > De quelle manière as tu installé lua?
>
> > > > Que renvoie la commande:
> > > > /usr/bin/pkg-config --modversion lua
> > > > /usr/bin/pkg-config --libs lua
>
> > > > A+
>
> > > > Jean-François- Masquer le texte des messages précédents -
>
> > > - Afficher le texte des messages précédents -- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -
#12
Oui, j'utilise la commande suivante, qui est équivalente à la tienne:
patch -p1 < /chemin/vers/le/fichier.patch

En fait, un patch c'est simplement un fichier texte généré avec la
commande "diff -urNp original modifié " et qui reprend la liste des
modifications (les + en début de ligne marquent les lignes ajoutées et
les - les lignes retirées). L'utilitaire patch essaie d'appliquer ces
modifications a tes fichiers source.

Jean-François

On 12 mai, 14:51, Casi <supp...@magikdo.com> wrote:
> Merci, j'ai reussis a compiler!
>
> Il fallait aussi utiliser la commande "cat /chemin/vers/le/
> fichier.patch | patch -p1" afin de patcher linknx
>
> Merci!
>
> On 12 mai, 09:39, jef2000 <jef2...@ouaye.net> wrote:
>
> > Salut,
>
> > Je n'ai pas encore eu l'occasion de tester lua avec cygwin. Pour la
> > version 0.0.1.26, j'ai utilisé les options --without-log4cpp --without-
> > lua pour la commande "configure". J'essaierai dès que j'ai un peu de
> > temps libre.
>
> > A+
>
> > Jean-François
>
> > On 6 mai, 22:26, Casi <supp...@magikdo.com> wrote:
>
> > > Le mieux serait peut-etre de m'envoyer le fichier linknx.exe compilé
> > > je crois que ce serait plus simple!!!!! je me tue la dessus depuis
> > > hier!!!
>
> > > On 6 mai, 17:26, Casi <supp...@magikdo.com> wrote:
>
> > > > J'ai pas mal galéré pour trouver le bon package qui correspondait a
> > > > cygwin sur lua.org et je pense que au final j'ai pas pris et donc pas
> > > > installé le bon....
>
> > > > Voici ce que renvois la première commande:
>
> > > > $ /usr/bin/pkg-config --modversion lua
> > > > Package lua was not found in the pkg-config search path.
> > > > Perhaps you should add the directory containing `lua.pc'
> > > > to the PKG_CONFIG_PATH environment variable
> > > > No package 'lua' found
>
> > > > Physiquement j'ai pas de dossier nommé "pkgconfig" dans /usr/local/lib
>
> > > > Sinon j'ai bien le fichier lua5.1.pc dans le path /usr/local/lib/
> > > > pkgconfig
>
> > > > En voici son contenu :
>
> > > > # lua.pc -- pkg-config data for Lua
>
> > > > # vars from install Makefile
>
> > > > # grep '^V=' ../Makefile
> > > > V= 5.1
> > > > # grep '^R=' ../Makefile
> > > > R= 5.1.4
>
> > > > # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
> > > > prefix= /usr/local
> > > > INSTALL_BIN= ${prefix}/bin
> > > > INSTALL_INC= ${prefix}/include
> > > > INSTALL_LIB= ${prefix}/lib
> > > > INSTALL_MAN= ${prefix}/man/man1
> > > > INSTALL_LMOD= ${prefix}/share/lua/${V}
> > > > INSTALL_CMOD= ${prefix}/lib/lua/${V}
>
> > > > # canonical vars
> > > > exec_prefix=${prefix}
> > > > libdir=${exec_prefix}/lib
> > > > includedir=${prefix}/include
>
> > > > Name: Lua
> > > > Description: An Extensible Extension Language
> > > > Version: ${R}
> > > > Requires:
> > > > Libs: -L${libdir} -llua -lm
> > > > Cflags: -I${includedir}
>
> > > > # (end of lua.pc)
>
> > > > On 6 mai, 08:24, jef2000 <jef2...@ouaye.net> wrote:
>
> > > > > Salut,
>
> > > > > Le script de configuration ne trouve pas le fichier lua.pc qui devrait
> > > > > se trouver dans /usr/local/lib/pkgconfig
> > > > > De quelle manière as tu installé lua?
>
> > > > > Que renvoie la commande:
> > > > > /usr/bin/pkg-config --modversion lua
> > > > > /usr/bin/pkg-config --libs lua
>
> > > > > A+
>
> > > > > Jean-François- Masquer le texte des messages précédents -
>
> > > > - Afficher le texte des messages précédents -- Masquer le texte des messages précédents -
>
> > - Afficher le texte des messages précédents -


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)