我试图建立这个 https://github.com/patrikhuber/eos 但是我遇到了麻烦。
说明非常简单,就像在gitHub上说的那样
构建:
<!DOCTYPE html>
<html>
<head>
<title>vchat - a simple video chat app</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://webrtc.github.io/adapter/adapter-4.2.2.js"></script>
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div id="enter-form-container" class="jumbotron col-md-6 banner">
<h1 class="display-4">Web Chat</h1>
<p class="lead">This is a simple free webRTC video chat.</p>
<hr class="my-4">
<!-- <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>-->
<div id="enter-form" class="form">
<p>Enter a username followed by a room name to join a preexisting room or create a new one.</p>
<div class="form-group">
<label for="exampleInputUsername1">Username</label>
<input type="text" class="form-control" id="inputUsername" name="username" aria-describedby="usernameHelp" placeholder="Enter Username">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Room Name</label>
<input type="text" class="form-control" id="inputRoomname" name="roomname" placeholder="Room Name">
</div>
<button id="join-btn" class="btn btn-primary submit">Enter Room</button>
</div>
<div id="url" class="alert alert-dark" role="alert">
<span id="roomIntro">ROOM URL</span>:
<span id="roomUrl"></span>
</div>
<div id="chat"></div>
</div>
</div>
<div id="remotes" class="row">
<div class="col-md-6">
<div class="videoContainer">
<video id="selfVideo" oncontextmenu="return false;"></video>
<meter id="localVolume" class="volume" min="-45" max="-20" high="-25" low="-40"></meter>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>
我正在使用&#34; Ninja&#34;作为生成器,看起来cmake部分成功通过
git clone --recursive https://github.com/patrikhuber/eos.git
mkdir build && cd build # creates a build directory next to the 'eos' folder
cmake -G "<your favourite generator>" ../eos -DCMAKE_INSTALL_PREFIX=../install/
make && make install # or open the project file and build in an IDE like Visual Studio
事情停止的地方&#34;工作&#34;对我来说,或者我不明白接下来会发生什么。按照说明操作,我输入
-- Configuring done
-- Generating done
-- Build files have been written to: /home/francesco/eos/build
我收到此消息
make && make install
我四处寻找解决方案,但我不明白我应该做什么:我试过了 的./configure
但我正在
make: *** No targets specified and no makefile found. Stop.
任何人都可以帮忙吗?
由于
答案 0 :(得分:1)
它总是取决于你的CMake&#34; Generator&#34;。 &#39;制作&#39;是linux / mingw工具/命令。对于VisualStudio,您可以使用nmake或sln / proj生成的东西。
更可靠的是可以利用CMake进行构建,即用于&#34; NMake Makefiles&#34;发生器:
cmake --build <build folder> --config release --target install
或
{{1}}
用于VisualStudio生成器