编译mcu media server

来源:互联网 时间:1970-01-01

Building http://sourceforge.net/projects/mcumediaserver/

install jdk1.6.0_30
vi /etc/environment

add following lines:
------------------------------------------------------------------------------------------
export JAVA_HOME=/usr/local/jdk1.6.0_30
export JRE_Home=/usr/local/jdk1.6.0_30/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
------------------------------------------------------------------------------------------

vi /etc/profile

add following lines:
------------------------------------------------------------------------------------------
export JAVA_HOME=/usr/local/jdk1.6.0_30
export JRE_Home=/usr/local/jdk1.6.0_30/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
------------------------------------------------------------------------------------------

logout and reloggin in

1. cd /usr/local/src/mcu
and run svn update -revision 423
2. add -lcrypto to the media/Makefile (after -lssl)
3. [email protected]:/usr/local/src/mcu# cp XmlRpcMcuClient/nbproject/project.properties XmlRpcMcuClient/nbproject/project.properties.bak
4. cd /usr/local
5. [email protected]:/usr/local# wget http://www.apache.org/dist/ws/xmlrpc/binaries/apache-xmlrpc-3.1.3-bin.tar.gz
6. tar zvxf apache-xmlrpc-3.1.3-bin.tar.gz
7. vi /usr/local/src/mcu/XmlRpcMcuClient/nbproject/project.properties:

file.reference.commons-logging-1.1.jar=/usr/local/apache-xmlrpc-3.1.3/lib/commons-logging-1.1.jar
file.reference.ws-commons-util-1.0.2.jar=/usr/local/apache-xmlrpc-3.1.3/lib/ws-commons-util-1.0.2.jar
file.reference.xmlrpc-client-3.1.3.jar=/usr/local/apache-xmlrpc-3.1.3/lib/xmlrpc-client-3.1.3.jar
file.reference.xmlrpc-common-3.1.3.jar=/usr/local/apache-xmlrpc-3.1.3/lib/xmlrpc-common-3.1.3.jar

8. vi /usr/local/src/mcu/mcuWeb/nbproject/project.properties:

file.reference.commons-logging-1.1.jar=/usr/local//apache-xmlrpc-3.1.3/lib/commons-logging-1.1.jar
file.reference.ssa-api.jar=/usr/local/sailfin/lib/ssa-api.jar
file.reference.ws-commons-util-1.0.2.jar=/usr/local//apache-xmlrpc-3.1.3/lib/ws-commons-util-1.0.2.jar
file.reference.xmlrpc-client-3.1.3.jar=/usr/local/apache-xmlrpc-3.1.3/lib/xmlrpc-client-3.1.3.jar
file.reference.xmlrpc-common-3.1.3.jar=/usr/local/apache-xmlrpc-3.1.3/lib/xmlrpc-common-3.1.3.jar
file.reference.XmlRpcMcuClient.jar=../XmlRpcMcuClient/dist/XmlRpcMcuClient.jar

9. cd /usr/local/src/mcu/mcuWeb
ant -Dj2ee.server.home=/usr/local/sailfin -Dlibs.CopyLibs.classpath=/usr/share/netbeans/java4/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar

after build, you could get the mcuWeb.sar under /usr/local/src/mcu/mcuWeb/dist

following is the build log
--------------------------------------------- console output -------------------------------------------
[email protected]:/usr/local/src/mcu/mcuWeb# ant -Dj2ee.server.home=/usr/local/sailfin -Dlibs.CopyLibs.classpath=/usr/share/netbeans/java4/ant/extra/org-netb
eans-modules-java-j2seproject-copylibstask.jar
Buildfile: /usr/local/src/mcu/mcuWeb/build.xml

-pre-init:

-init-private:

-init-user:

-init-project:

-init-macrodef-property:

-do-init:

-post-init:

-init-check:

-init-ap-cmdline-properties:

-init-macrodef-javac-with-processors:

-init-macrodef-javac-without-processors:

-init-macrodef-javac:

-init-macrodef-junit:

-init-macrodef-java:

-init-debug-args:

-init-macrodef-nbjpda:

-init-macrodef-nbjsdebug:

-init-macrodef-debug:

-init-taskdefs:

-init-ap-cmdline-supported:

-init-ap-cmdline:

init:

deps-module-jar:

deps-ear-jar:

deps-jar:

-pre-pre-compile:

-pre-compile:

-copy-manifest:

-copy-persistence-xml:

-copy-webdir:

library-inclusion-in-archive:

library-inclusion-in-manifest:

-do-compile:
[javac] Compiling 6 source files to /usr/local/src/mcu/mcuWeb/build/web/WEB-INF/classes
[javac] /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java:22: warning: com.sun.org.apache.xml.internal.serialize.XMLSerial
izer is Sun proprietary API and may be removed in a future release
[javac] import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
[javac] ^
[javac] /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java:213: warning: com.sun.org.apache.xml.internal.serialize.XMLSeria
lizer is Sun proprietary API and may be removed in a future release
[javac] XMLSerializer serializer = new XMLSerializer();
[javac] ^
[javac] /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java:213: warning: com.sun.org.apache.xml.internal.serialize.XMLSeria
lizer is Sun proprietary API and may be removed in a future release
[javac] XMLSerializer serializer = new XMLSerializer();
[javac] ^
[javac] /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java:257: warning: com.sun.org.apache.xml.internal.serialize.XMLSeria
lizer is Sun proprietary API and may be removed in a future release
[javac] XMLSerializer serializer = new XMLSerializer();
[javac] ^
[javac] /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java:257: warning: com.sun.org.apache.xml.internal.serialize.XMLSeria
lizer is Sun proprietary API and may be removed in a future release
[javac] XMLSerializer serializer = new XMLSerializer();
[javac] ^
[javac] /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java:298: warning: com.sun.org.apache.xml.internal.serialize.XMLSeria
lizer is Sun proprietary API and may be removed in a future release
[javac] XMLSerializer serializer = new XMLSerializer();
[javac] ^
[javac] /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java:298: warning: com.sun.org.apache.xml.internal.serialize.XMLSeria
lizer is Sun proprietary API and may be removed in a future release
[javac] XMLSerializer serializer = new XMLSerializer();
[javac] ^
[javac] 7 warnings

-post-compile:

compile:

-pre-dist:

compile-jsps:

-do-dist-with-manifest:
[mkdir] Created dir: /usr/local/src/mcu/mcuWeb/dist
[jar] Building jar: /usr/local/src/mcu/mcuWeb/dist/mcuWeb.sar

-do-dist-without-manifest:

do-dist:

-post-dist:

dist:

javadoc-build:
[mkdir] Created dir: /usr/local/src/mcu/mcuWeb/dist/javadoc
[javadoc] Warning: Leaving out empty argument '-windowtitle'
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/Broadcast.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/Conference.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceTemplate.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/MCUHttpServlet.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/MCUSipServlet.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/MediaMixer.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/Participant.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/Profile.java...
[javadoc] Loading source file /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/RTMPUrl.java...
[javadoc] Constructing Javadoc information...
[javadoc] /usr/local/src/mcu/mcuWeb/src/java/org/murillo/mcuWeb/ConferenceMngr.java:22: warning: com.sun.org.apache.xml.internal.serialize.XMLSerial
izer is Sun proprietary API and may be removed in a future release
[javadoc] import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
[javadoc] ^
[javadoc] Standard Doclet version 1.6.0_30
[javadoc] Building tree for all the packages and classes...
[javadoc] Building index for all the packages and classes...
[javadoc] Building index for all classes...
[javadoc] Generating /usr/local/src/mcu/mcuWeb/dist/javadoc/stylesheet.css...
[javadoc] 1 warning

javadoc-browse:

javadoc:

default:

BUILD SUCCESSFUL
Total time: 10 seconds
[email protected]:/usr/local/src/mcu/mcuWeb# ls
build build.xml catalog.xml dist myfile nbproject src test web
[email protected]:/usr/local/src/mcu/mcuWeb# cd dist/
[email protected]:/usr/local/src/mcu/mcuWeb/dist# ls
javadoc mcuWeb.sar
[email protected]:/usr/local/src/mcu/mcuWeb/dist# ls -l
total 1164
drwxr-xr-x 5 root root 4096 2011-12-25 07:14 javadoc
-rw-r--r-- 1 root root 1185121 2011-12-25 07:14 mcuWeb.sar
[email protected]:/usr/local/src/mcu/mcuWeb/dist#



相关阅读:
Top