我试图在我自己的版本中创建“Wt”库(在版本3.3.5中),但在尝试运行示例时失败。Wt:致命错误:调用空boost :: function
我的环境是使用Boost 1.53.0的Debian,为此我想构建这个库。
编译和链接(GCC 4.7.2)效果很好,但是当我尝试运行重量-例(http://www.webtoolkit.eu/wt/doc/tutorial/wt.html),服务器失败:
重量:致命错误:调用空升压: :功能
完整的日志是:
[email protected]:/tmp/$ wt_test --docroot . --http-address 0.0.0.0 --http-port 9090
Option no-compression is implied because wthttp was built without zlib support.
[2016-Feb-11 10:35:29.326974] 6436 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = 'wt_test')"
Option no-compression is implied because wthttp was built without zlib support.
[2016-Feb-11 10:35:29.327938] 6436 - [info] "WServer/wthttp: initializing built-in wthttpd"
[2016-Feb-11 10:35:29.328281] 6436 - [info] "wthttp: started server: http://0.0.0.0:9090"
[2016-Feb-11 10:35:33.971973] 6436 - [info] "Wt: session created (#sessions = 1)"
[2016-Feb-11 10:35:33.972423] 6436 [/ mZ4BIN0ZPoVnqQTG] [info] "WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"
10.12.5.50 - - [2016-Feb-11 10:35:33.974561] "GET/HTTP/1.1" 200 4691
[2016-Feb-11 10:35:33.974722] 6436 - [info] "WebRequest: took 3.044ms"
[2016-Feb-11 10:35:34.026134] 6436 [/ mZ4BIN0ZPoVnqQTG] [error] "Wt: fatal error: call to empty boost::function"
[2016-Feb-11 10:35:34.026242] 6436 - [info] "WebController: Removing session mZ4BIN0ZPoVnqQTG"
[2016-Feb-11 10:35:34.026293] 6436 [/ mZ4BIN0ZPoVnqQTG] [info] "Wt: session destroyed (#sessions = 0)"
10.12.5.50 - - [2016-Feb-11 10:35:34.026374] "GET /?wtd=mZ4BIN0ZPoVnqQTG&sid=2063522618&webGL=true&scrW=1680&scrH=1050&tz=60&htmlHistory=true&deployPath=%2F&request=script&rand=4063601615 HTTP/1.1" 500 84
10.12.5.50 - - [2016-Feb-11 10:35:34.026375] "GET /?wtd=mZ4BIN0ZPoVnqQTG&request=style&page=1 HTTP/1.1" 200 0
[2016-Feb-11 10:35:34.026414] 6436 - [info] "WebRequest: took 0.5ms"
[2016-Feb-11 10:35:34.026430] 6436 - [info] "WebRequest: took 30.593ms"
有谁有一个想法如何找出什么错误吗?
我知道Boost版本不是最新的,但我猜这应该不成问题?
Regads, VanDahlen
不,它在使用Boost 1.60.0和Signals2时没有影响。该错误仍然相同。很奇怪.. – VanDahlen
呵呵。你是如何用信号2来测试的? – sehe
我设置了Boost 1.60.0并运行cmake; Wconfig.h包含'#define WT_USE_BOOST_SIGNALS2'。 – VanDahlen