Cmake compiler Problem with libusb and pcsc and reader/webif
|Reported by:||gabberhead||Owned by:||Gorgone Impertinence|
|Severity:||Please fill in||Keywords:||build|
in the config i have -DHAVE_PCSC=0 -DHAVE_LIBUSB=0. when i compile it with 0 no pcsc or libusb suport is compiled. thats ok. with 1 on both, both are compiled. thats also ok. but in the webinterface there is:
Reader support: no
normaly if i disable all readers and enable at least 1 there is reader support: yes in the webif. but not when i compile pcsc and libusb with -DHAVE_PCSC=1 -DHAVE_LIBUSB=1
in config.h is see those two entries:
#define CARDREADER_PCSC 1
#define CARDREADER_SMART 1
and there is i think the problem. cmake only compile pcsc and libusb support with -DHAVE_PCSC=1 -DHAVE_LIBUSB=1 commands.
when i use -DWITH_LIBUSB and -DWITH_PCSC i get this warning when i compile:
Manually-specified variables were not used by the project:
i think this is only a cometic problem in the webif only. because even though i compile pcsc and libusc with -DHAVE_PCSC=1 -DHAVE_LIBUSB=1 and in the webif there is the reader support: no entry, libusb and pcsc is correctly compile.
Ausgecheckt, Revision 11499.
-- pthread found. Adding pthread support
-- ssl is added by You but it was already enabled by config file
status SSL is added by config file Y compiling with ssl included
-- openssl found.
-- librt found (needed by libusb).
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - found
-- libusb 1.0 found (libusb-1.0.so) Adding smartreader support
-- PCSC headers found (/usr/include/PCSC). Adding PCSC support
GEN Compressed 353472 template bytes into 148508 bytes. 204964 saved bytes (57.99%).
-- Utils: operating system: Linux
-- Utils: target system: arm-linux-gnueabihf
-- utils use system libusb functions
-- operating system: Linux
-- target system: arm-linux-gnueabihf
-- revision: 11499
-- use system libcrypto functions
-- use system pcsc functions
-- use system pthread functions
-- use system libusb functions
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gabberhead/oscam/build_dir