Re: [Cppcms-users] Running cppcms-0.99.5 examples
Brought to you by:
artyom-beilis
|
From: hce <web...@gm...> - 2011-01-07 10:17:16
|
On Fri, Jan 7, 2011 at 7:08 PM, Artyom <art...@ya...> wrote:
> How did you build the example?
> With makefile? What configuration are you using?
I compiled examples from cppcms-0.99.5/examples.
>
> Note: there are two makefiles and configuration files
> for dynamic templates loading and for static templates linking.
>
Actually there is only one Makefile in each example, see following
Makefile from forms:
LIBS=-lcppcms -lbooster
all: clean hello
hello: hello.cpp view.cpp content.h
$(CXX) -Wall hello.cpp view.cpp -o hello $(LIBS)
view.cpp: view.tmpl content.h
cppcms_tmpl_cc view.tmpl -o view.cpp
clean:
rm -fr *.exe *.so view.cpp cppcms_rundir hello
> Make sure you use right one, I assume you compiled with
> Makefile.dyn but run with config.js instead of config-dyn.js
>
There is also only one config.js in each example, please see config.js:
{
"service" : {
"api" : "http",
"port" : 8080
},
"http" : {
"script" : "/hello"
},
}
Seems something is not right, did I downloaded wrong version of
cppcms-0.99.5.tar.bz2?
Thanks.
Kind regards.
|