Comments (11)
can you be a bit more specific?
microhttpd should be enabled automatically if it's installed, at least that is the case for me.
actually is is not even optional and the build will fail if it's not available.
what does the output of 'cmake' say?
should say something like:
***** Configuration parameters *****
microhttpd: -L/usr/lib/arm-linux-gnueabihf/libmicrohttpd.a;-lrt -I/usr/include
what makes you assume it's disabled?
from vzlogger.
what makes you assume it's disabled?
ML discussion: nothing listening on the local port...
from vzlogger.
then this is unrelated to cmake...
from vzlogger.
Recompiled everything, forcing uhttpd to be included as follows in src/vzlogger.cpp
:
#define LOCAL_SUPPORT 1
Now uhttpd indeed is included and working.
from vzlogger.
Now uhttpd indeed is included and working.
I still don't get how the cmake
option is supposed to work and why it doesn't. Or are you saying if the #define
is in then cmake
can change the behaviour?
from vzlogger.
curious...
the cmake configuration considers it a fatal error if sml or microhttpd are not available,
while it's actually supported to build without them...
will investigate.
from vzlogger.
On 2014-12-23 14:59 , andig wrote:
Now uhttpd indeed is included and working.
I still don't get how the |cmake|option is supposed to work and why it
doesn't.Same here. CMake, IMake, etc. have always been "black magic" to me... ;-)
Or are you saying if the |#define| is in then |cmake| can change the
behaviour?No, I'm just saying that by hard-coding the #define uhttpd will be
actually included (not surprising).
I don't think that if you hard-code the #define into the source code
/any/ CMake setting could "override" this...
from vzlogger.
so, the correct bug-report is:
~/vzlogger# rm config.hpp
~/vzlogger# cmake -DENABLE_LOCAL=on .
~/vzlogger_r00t# grep LOCAL config.hpp
/* #undef LOCAL_SUPPORT */
from vzlogger.
[/vzlogger_r00t]$ rm config.hpp/vzlogger_r00t]$ cmake -DENABLE_LOCAL=on .
[
[/vzlogger_r00t]$ grep LOCAL config.hpp/vzlogger_r00t]$ git commit -m 'fix cmake -DENABLE_LOCAL=on (to generate "#define LOCAL_SUPPORT 1" in config.h)' CMakeLists.txt
#define LOCAL_SUPPORT 1
[
from vzlogger.
note that ENABLE_LOCAL DEFAULTS to on anyway,
so specifying -DENABLE_LOCAL=on is redundant.
from vzlogger.
i suggest we also change the default to off, most users will not need it, and it adds an extra dependency.
my preference would be to enable it if microhttp is available, which is what automake setups usually do...
not sure how to do that with cmake...
can we have an "auto" value for the enable flag?
or should we just print a warning and continue without local support, if it's requested but microhttpd is missing?
from vzlogger.
Related Issues (20)
- MQTT stop working HOT 10
- Libraries are linked dynamic and static HOT 11
- s0 impuls counter inverted signal possible to configure? HOT 1
- read from file, instead of device HOT 4
- CMake Error: Unknown argument -ENABLE_MQTT=on HOT 6
- vzlogger - Illegal instruction HOT 29
- Get live data from HTTP server with active aggregation HOT 3
- vzlogger.service has hardcoded install location, should be templated and generated according to build configuration
- measurements discarded due to invalid timestamp evaluation in version 0.8.3 HOT 7
- Dockerfile throws cmake error - fix proposal HOT 1
- install.sh gives "Unknown argument -ENABLE_MQTT=on" error HOT 7
- remove install.sh (or maintain it better) HOT 5
- no logging HOT 6
- VZLOGGER V0.8.3 without "oms" protocol HOT 13
- Version information is inconsistent HOT 2
- Future of OMS support HOT 9
- MQTT not publishing any messages HOT 5
- Integration Wasserzähler / Integration Water Metering HOT 3
- Gateway Timeout HOT 2
- Test fails when builing with OMS HOT 37
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vzlogger.