如何使用libwebsockets Library编译程序?

时间:2016-01-28 21:18:13

标签: c libwebsockets

我将libwebsockets用于项目。我在debian jessie上使用Packet Manger安装它。 它工作得很好,但是这个数据包很旧,所以我从github克隆了最新的稳定版本。现在,当我尝试编译程序时,我收到错误消息

  

未定义引用`libwebsocket_create_context,
未定义引用' libwebsocket_create_context'

...等 我用命令编译:

if(unescape(location.href).indexOf("http://football")!=-1||unescape(location.href).indexOf("http://6")!=-1) { 
    var currentServer=baseURLDynamic;
    xmlBaseURL = baseURLDynamic + '/fflnetdynamic' + year + '/';
} else {
    var currentServer=baseURLStatic;
}
function getHomePageModule(thisSelection) {
    if(thisSelection=="")
    document.getElementById("homePageModule").innerHTML = "Your selected module will appear here!";
    else {
    var url = currentServer + "/" + year + "/home/" + league_id + "?MODULE=" + thisSelection.toUpperCase();
    $.get(url, function(data){
    document.getElementById("homePageModule").innerHTML = $(data).find('#pageContent').html();
    });
    }
}    


<select onchange="getHomePageModule(this.value)">
<option value="default">Select A Module</option>
<option value="MESSAGE12" >Get HPM#12</option>
<option value="LIVESCORING" >Link To Live Scoring</option>
<option value="LIVESCORING_SUMMARY" >Live Scoring Summary</option>
</select>

<div id="homePageModule">Your selected module will appear here!</div>

0 个答案:

没有答案