[vz-dev] [vz-users] Funktionsweise vzlogger

Andreas Goetz cpuidle at gmail.com
Tue Aug 26 09:03:02 CEST 2014


Hi Udo,

2014-08-25 21:49 GMT+02:00 Udo1 <udo1 at gmx.net>:

> Am 25.08.2014 21:42, schrieb Andreas Götz:
>
>  Die lib kommt auch aus github?
>>
> Schon, aber du hast doch vorher:
> "sudo apt-get install build-essential cmake pkg-config libcurl3-dev
> libjson0-dev libmicrohttpd-dev libgnutls-dev libsasl2-dev uuid-dev
> uuid-runtime" gemacht.
> Vielleicht hat er da was nicht gefunden.
> Also erst 'sudo apt get update'
> dann 'sudo apt-get install build-essential cmake pkg-config libcurl3-dev
> libjson0-dev libmicrohttpd-dev libgnutls-dev libsasl2-dev uuid-dev
> uuid-runtime'
> dann 'sudo git clone https://github.com/dailab/libsml.git', 'cd libsml',
> 'sudo make'
>

Das ging ja alles schon. Einzig habe ich jetzt mein git neu gecloned und
jetzt tut es nicht mehr.


>
> So hat es bei mir immer funktioniert.
>

Siehe hier:

Das passiert sogar wenn ich SML deaktviere. Kann es sein dass meine defines
keinen Einfluss auf den Build Prozess haben???

Alles mit aktuellem git clone:

pi at devpi ~ $ cd vzlogger3
pi at devpi ~/vzlogger3 $ cmake -DENABLE_SML=off .
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Compiling for target ''
-- checking if -Wno-ignored-qualifiers works
-- Performing Test W_NO_IGNORED_QUALIFIERS
-- Performing Test W_NO_IGNORED_QUALIFIERS - Success
-- FindMicrohttpd check
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'microhttpd>=0.9'
--   package 'microhttpd>=0.9' not found
-- MICROHTTPD_HOME env is not set, setting it to /usr/local
-- Looking for microhttpd in /usr/local
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- FindJson check
-- checking for module 'json>=0.9'
--   found json, version 0.10
-- JSON_HOME env is not set, setting it to /usr/local
-- Looking for json in /usr/local
Jsoon search:
'/usr/local/include;/usr/local/include;/usr/local/include;/usr/include'
-- FindCURL check
-- checking for module 'libcurl>=7.19'
--   found libcurl, version 7.26.0
-- ==> ''
-- CURL_HOME env is not set, setting it to /usr/local
-- Looking for curl in /usr/local
==>
CURL_LIBRARIES='/usr/lib/arm-linux-gnueabihf/libcurl.a;/usr/lib/arm-linux-gnueabihf/libidn.a;/usr/lib/arm-linux-gnueabihf/libssh2.a;/usr/lib/arm-linux-gnueabihf/liblber.a;/usr/lib/arm-linux-gnueabihf/libldap.a;/usr/lib/arm-linux-gnueabihf/librt.a;-lgssapi_krb5;-lkrb5;-lk5crypto;/usr/lib/arm-linux-gnueabihf/libcom_err.a;/usr/lib/arm-linux-gnueabihf/libssl.a;/usr/lib/arm-linux-gnueabihf/libcrypto.a;/usr/lib/arm-linux-gnueabihf/librtmp.a;/usr/lib/arm-linux-gnueabihf/libz.a;/usr/lib/arm-linux-gnueabihf/libgnutls.a'
-- Found CURL:
/usr/lib/arm-linux-gnueabihf/libcurl.a;/usr/lib/arm-linux-gnueabihf/libidn.a;/usr/lib/arm-linux-gnueabihf/libssh2.a;/usr/lib/arm-linux-gnueabihf/liblber.a;/usr/lib/arm-linux-gnueabihf/libldap.a;/usr/lib/arm-linux-gnueabihf/librt.a;-lgssapi_krb5;-lkrb5;-lk5crypto;/usr/lib/arm-linux-gnueabihf/libcom_err.a;/usr/lib/arm-linux-gnueabihf/libssl.a;/usr/lib/arm-linux-gnueabihf/libcrypto.a;/usr/lib/arm-linux-gnueabihf/librtmp.a;/usr/lib/arm-linux-gnueabihf/libz.a;/usr/lib/arm-linux-gnueabihf/libgnutls.a
-- FindGnuTls check
-- checking for module 'gnutls>=2.8'
--   found gnutls, version 2.12.20
-- ==> ''
-- GNUTLS_HOME env is not set, setting it to /usr/local
-- Looking for gnutls in /usr/local
==>
GNUTLS_LIBRARIES='/usr/lib/arm-linux-gnueabihf/libgnutls.a;/lib/arm-linux-gnueabihf/libgcrypt.a;/usr/lib/arm-linux-gnueabihf/libgpg-error.a;/usr/lib/arm-linux-gnueabihf/libtasn1.a;/usr/lib/arm-linux-gnueabihf/libz.a;-lp11-kit;-lsasl2;/lib/arm-linux-gnueabihf/libgcrypt.a'
-- Found GNUTLS:
/usr/lib/arm-linux-gnueabihf/libgnutls.a;/lib/arm-linux-gnueabihf/libgcrypt.a;/usr/lib/arm-linux-gnueabihf/libgpg-error.a;/usr/lib/arm-linux-gnueabihf/libtasn1.a;/usr/lib/arm-linux-gnueabihf/libz.a;-lp11-kit;-lsasl2;/lib/arm-linux-gnueabihf/libgcrypt.a

        ***** Configuration parameters *****
             prefix: /usr/local
             json: -L/usr/lib/arm-linux-gnueabihf/libjson.a;-lrt
-I/usr/include
             sml:  -L -I
             microhttpd:
-L/usr/lib/arm-linux-gnueabihf/libmicrohttpd.a;-lrt -I/usr/include
CMake Error at CMakeLists.txt:118 (message):
  libsml ist required.

  Install libsml or call cmake -DSML_HOME=path_to_sml_install


-- Configuring incomplete, errors occurred!


>
> Gruß
> Udo
>

Das scheint als würden die -DSML Parameter völlig ignoriert. Gibt es vllt
sowas wie `cmake clean` o.ä.?

Am 25.08.2014 19:49, schrieb Andreas Goetz:

> und vllt. auch mal den Compiler drüber laufen lassen kannst
>
hast du mal die Adresse von der ich deine Version herunter laden kann?

Klar. Hier ist der PR als vollständiger Tree (also auschecken und tree
wechseln): https://github.com/andig/vzlogger/tree/master-remove-foreground

vd
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-dev/attachments/20140826/acd4334e/attachment-0001.html>


More information about the volkszaehler-dev mailing list