Chinaunix首页 | 论坛 | 博客
  • 博客访问: 104040
  • 博文数量: 80
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 600
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-14 09:52
文章分类

全部博文(80)

文章存档

2026年(37)

2025年(6)

2022年(2)

2017年(14)

2016年(16)

我的朋友

分类: C/C++

2016-05-13 16:57:21

1、安装好ubuntu14.04的桌面版,这里我是64位。

2、安装好jdk1.7 这里我是64位。

3、配置ubuntu开发环境:


一. 安装C/C++程序的开发环境 
    1. sudo apt-get install build-essential //安装主要编译工具 gcc, g++, make 
    2. sudo apt-get install autoconf automake1.9 
    3. sudo apt-get install flex bison  
    4. sudo apt-get install manpages-dev //安装C语言函数man文档 
    5. sudo apt-get install binutils-doc cpp-doc gcc-doc glibc-doc stl-manual  //安装相关文档 

二. 安装Gnome桌面程序的开发环境 
    1. sudo apt-get install gnome-core-devel //安装核心文件 
    2. sudo apt-get install pkg-config         
    3. sudo apt-get install devhelp           //安装GTK文档查看程序 
    4. sudo apt-get install libglib2.0-doc libgtk2.0-doc //安装 API参考手册及其它帮助文档 
    5. sudo apt-get instal glade libglade2-dev //安装GTK界面构造程序 

centos 环境:

yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel



4、按照官网的顺序执行,应该不会有什么问题:



[html] view plain copy
 print?在CODE上查看代码片派生到我的代码片
  1. sudo apt-get install git  
  2. git clone https://github.com/lynckia/licode.git
  3. cd licode

Install dependencies

This step installs the dependencies of all the Licode components. This is the only step that depends on your OS

Ubuntu

./scripts/installUbuntuDeps.sh 

Mac OS X

./scripts/installMacDeps.sh 

Install Licode

Here we will install all the Licode components in your computer.

./scripts/installNuve.sh ./scripts/installErizo.sh 

Install basicExample

The basicExample is a really simple node-based web application that relies on Licode to provide a videoconferencing room.

./scripts/installBasicExample.sh 

Start Licode!

At this points, you have successfully installed all the Licode components in your computer and also a simple application that will let you try it. Let's use the convenience script to start all Licode components:

./scripts/initLicode.sh 

After that, we just have to start our node application, we also have a script for that:

./scripts/initBasicExample.sh 

Now you can connect to  with Chrome or Firefox and test your basic videoconference example!

What's next?

Well you now have a taste of what Licode can do. You can start by modifying basicExample. You can find the code in licode/extras/basic_example: * basicServer.js is the node.js server that manages the communication between the clients and Nuve. Here you can add your own methods using the server side API (NuveAPI)

Head to Licode Architecture for more information about different Licode components, or start developing your custom service getting into the client or server APIs.


5、运行licode和例子,分别在两个终端执行,或者后台执行:



[html] view plain copy
 print?在CODE上查看代码片派生到我的代码片
  1. ./licode/scripts/initLicode.sh  
  2. ./licode/scripts/initBasicExample.sh  

6、在浏览器地址:localhost:3001,允许访问麦克风和摄像头就行了。



lynckia.com/licode/install.html

阅读(3058) | 评论(0) | 转发(0) |
0

上一篇:epoll详解

下一篇:kurento

给主人留下些什么吧!~~