Closed ola-importer closed 10 years ago
From dx9...@gmail.com on September 21, 2010 08:51:57
I added:
to the stop of OlaHttpServer.cpp and it compiled... (FWIW)
--Doug
From nomis52 on September 21, 2010 09:15:16
Yeah, that's the problem. The header file for microhttpd 0.4.6 doesn't #include
From nomis52 on September 21, 2010 09:16:38
Pushed to the git repo. Try building from there if you like.
Status: Fixed
From dx9...@gmail.com on September 21, 2010 10:30:35
already have it compiled... I'll wait for next release if necessary
From dx9...@gmail.com on September 21, 2010 11:45:59
Not sure if I should put this here (not 100% focused on compiling this, spare time kind of thing):
make[2]: Entering directory /home/dx/src/dmx-software/ola-examples-0.8.2/src' g++ -DHAVE_CONFIG_H -I. -I.. -Wall -Werror -I/usr/local/include/libola -g -O2 -MT ola-client.o -MD -MP -MF .deps/ola-client.Tpo -c -o ola-client.o ola-client.cpp ola-client.cpp: In member function ‘virtual void Observer::Devices(const std::vector<ola::OlaDevice, std::allocator<ola::OlaDevice> >&, const std::string&)’: ola-client.cpp:190: error: ‘printf’ was not declared in this scope ola-client.cpp: In function ‘int FetchDeviceInfo(ola::OlaClient*, const options&)’: ola-client.cpp:671: error: ‘printf’ was not declared in this scope make[2]: *** [ola-client.o] Error 1 make[2]: Leaving directory
/home/dx/src/dmx-software/ola-examples-0.8.2/src'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/home/dx/src/dmx-software/ola-examples-0.8.2'
make: * [all] Error 2
added:
near top of src/ola-client.cpp
and fixed it as well
--Doug
From dx9...@gmail.com on September 21, 2010 08:21:52
I searched for va_list in all issues didn't find anything:
summary information
Source Files:
2010-09-21 07:50 artnet-examples-0.3.11.tar.gz 2010-09-21 08:00 ctemplate-0.97 (src-dir installed /usr/local ) 2010-09-21 07:58 ctemplate-0.97.tar.gz 2010-09-21 07:50 libartnet-1.1.0.tar.gz 2010-09-21 07:59 libmicrohttpd-0.4.6 (src-dir installed /usr/local ) 2010-09-21 07:58 libmicrohttpd-0.4.6.tar.gz 2010-09-21 08:04 ola-0.8.2 (src-dir build problem in OlaHttpServer.cpp) 2010-09-21 07:50 ola-0.8.2.tar.gz 2010-09-21 07:49 ola-examples-0.8.2.tar.gz 2010-09-21 07:54 protobuf-2.3.0 (src-dir installed /usr ) 2010-09-21 07:54 protobuf-2.3.0.tar.gz
[...] make[3]: Entering directory
/home/dx/src/dmx-software/ola-0.8.2/olad/testdata' make[3]: Nothing to be done for
all'. make[3]: Leaving directory/home/dx/src/dmx-software/ola-0.8.2/olad/testdata' make[3]: Entering directory
/home/dx/src/dmx-software/ola-0.8.2/olad' /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wformat -W -Werror -Wno-deprecated -Wall -Wformat -W -DHTTP_DATA_DIR=\"/usr/local/share/olad/www\" -DPLUGIN_DIR=\"/usr/local/lib/olad\" -g -O2 -MT libolaserver_la-OlaHttpServer.lo -MD -MP -MF .deps/libolaserver_la-OlaHttpServer.Tpo -c -o libolaserver_la-OlaHttpServer.lotest -f 'OlaHttpServer.cpp' || echo './'
OlaHttpServer.cpp g++ -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -Wformat -W -Werror -Wno-deprecated -Wall -Wformat -W -DHTTP_DATA_DIR=\"/usr/local/share/olad/www\" -DPLUGIN_DIR=\"/usr/local/lib/olad\" -g -O2 -MT libolaserver_la-OlaHttpServer.lo -MD -MP -MF .deps/libolaserver_la-OlaHttpServer.Tpo -c OlaHttpServer.cpp -fPIC -DPIC -o .libs/libolaserver_la-OlaHttpServer.o In file included from ../olad/HttpServer.h:32, from ../olad/OlaHttpServer.h:31, from OlaHttpServer.cpp:35: /usr/local/include/microhttpd.h:893: error: 'va_list' has not been declared make[3]: * [libolaserver_la-OlaHttpServer.lo] Error 1 make[3]: Leaving directory/home/dx/src/dmx-software/ola-0.8.2/olad' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/home/dx/src/dmx-software/ola-0.8.2/olad' make[1]: *\ [all-recursive] Error 1 make[1]: Leaving directory `/home/dx/src/dmx-software/ola-0.8.2' make: * [all] Error 2Guessing an include file is missing ... the webserver portion might not have been tested before releasing 0.8.2 ?!?
--Doug
Original issue: http://code.google.com/p/open-lighting/issues/detail?id=115