[vz-dev] Probleme beim Kompilieren des C++-Ports von vzlogger

Rainer Gauweiler volkszaehler at moppl.inka.de
Sat Jan 12 20:47:39 CET 2013


Hallo,

Am 11.01.2013 10:52, schrieb Dimitrios Bogiatzoules:
> target_link_libraries(vzlogger proto vz vz-api)
> target_link_libraries(vzlogger ${JSON_LIBRARY})
> target_link_libraries(vzlogger ${SML_LIBRARY})
> target_link_libraries(vzlogger ${MICROHTTPD_LIBRARY})
> target_link_libraries(vzlogger pthread m ${LIBUUID})
> target_link_libraries(vzlogger dl)

Ich versuche auf einer Dockstar mit debian zu kompilieren. Obige 
Einträge sind in der git-Version drin.

Ich scheitere aber schon vorher:

dockstar:/usr/local/src/vzlogger-c++/vzlogger/build# cmake 
-DSML_HOME=/usr/local/src/libsml ../../vzlogger
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- 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
-- FindSml check
-- checking for module 'sml>=0.9'
--   package 'sml>=0.9' not found
-- SML_HOME is not empty: "/usr/local/src/libsml"
-- Looking for sml in /usr/local/src/libsml
-- FindMicrohttpd check
-- 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 files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - 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.9
-- 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.21.0
-- ==> ''
-- CURL_HOME env is not set, setting it to /usr/local
-- Looking for curl in /usr/local
==> 
CURL_LIBRARIES='/usr/lib/libcurl.a;/usr/lib/libidn.a;/usr/lib/libssh2.a;/usr/lib/liblber.a;/usr/lib/libldap.a;/usr/lib/librt.a;-lgssapi_krb5;/usr/lib/libssl.a;/usr/lib/libcrypto.a;/usr/lib/libz.a'
-- Found CURL: 
/usr/lib/libcurl.a;/usr/lib/libidn.a;/usr/lib/libssh2.a;/usr/lib/liblber.a;/usr/lib/libldap.a;/usr/lib/librt.a;-lgssapi_krb5;/usr/lib/libssl.a;/usr/lib/libcrypto.a;/usr/lib/libz.a
-- FindGnuTls check
-- checking for module 'gnutls>=2.8'
--   package 'gnutls>=2.8' not found
-- ==> ''
-- GNUTLS_HOME env is not set, setting it to /usr/local
-- Looking for gnutls in /usr/local
==> GNUTLS_LIBRARIES=''
-- Could NOT find GNUTLS  (missing:  GNUTLS_LIBRARIES GNUTLS_INCLUDE_DIR)

         ***** Configuration parameters *****
              prefix: /usr/local
              json: -L/usr/lib/libjson.a;-lrt -I/usr/include
              sml:  -LSML_LIBRARY-NOTFOUND;-lrt -ISML_INCLUDE_DIR-NOTFOUND
              microhttpd: -L/usr/lib/libmicrohttpd.a;-lrt -I/usr/include
CMake Error: The following variables are used in this project, but they 
are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the 
CMake files:
SML_LIBRARY (ADVANCED)
     linked by target "vzlogger" in directory 
/usr/local/src/vzlogger-c++/vzlogger/src

-- Configuring incomplete, errors occurred!
dockstar:/usr/local/src/vzlogger-c++/vzlogger/build#

Verwende ich  cmake -DSML_HOME=/usr/local/src/libsml/sml läuft cmake 
durch. Dann scheitert es aber beim Make:

[ 52%] Building CXX object src/protocols/CMakeFiles/proto.dir/MeterSML.cpp.o
/usr/local/src/vzlogger-c++/vzlogger/src/protocols/MeterSML.cpp:47:26: 
error: sml/sml_file.h: Datei oder Verzeichnis nicht gefunden

Ideen? Beim Durchlauf per autotool gebe ich include und lib von sml 
explizit an. Geht das mit cmake auf irgendwie?

Gruss
      Rainer




More information about the volkszaehler-dev mailing list