Skip to content

Commit

Permalink
Fixed some missing steps in the new configure/compile/install process…
Browse files Browse the repository at this point in the history
… (see meetecho#68 for details)
  • Loading branch information
meetecho committed Sep 23, 2014
1 parent 4568f0d commit ea61ba1
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 25 deletions.
9 changes: 7 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ cert_DATA = certs/mycert.key certs/mycert.pem
plugindir = $(libdir)/janus/plugins
plugin_LTLIBRARIES = $(NULL)

SUBDIRS = html
html_DATA = README.md

streamdir = $(datadir)/janus/streams
stream_DATA = $(NULL)

Expand Down Expand Up @@ -162,7 +165,9 @@ plugins_libjanus_streaming_la_LIBADD = $(plugins_libadd)
conf_DATA += conf/janus.plugin.streaming.cfg
stream_DATA += \
plugins/streams/music.mulaw \
plugins/streams/radio.alaw
plugins/streams/radio.alaw \
plugins/streams/test_gstreamer.sh \
plugins/streams/test_gstreamer_1.sh
EXTRA_DIST += \
conf/janus.plugin.streaming.cfg.in \
$(stream_DATA)
Expand Down Expand Up @@ -230,5 +235,5 @@ endif
##

if ENABLE_DOCS
SUBDIRS = docs
SUBDIRS += docs
endif
41 changes: 22 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,37 +109,40 @@ On Ubuntu/Debian:
##Compile
Once you have installed all the dependencies, just use:

sh install.sh
sh autogen.sh

to start the whole compilation process. If you're not interested in
Data Channels or WebSockets (or you don't care about either of them)
you can pass a specific compilation flag to disable them:
to generate the configure file. After that, configure and compile as
usual to start the whole compilation process:

sh install.sh nodatachans nowebsockets
./configure --prefix=/opt/janus
make
make install

As the flag names suggest, 'nodatachans' disables support for Data
Channels, while 'nowebsockets' disables WebSockets.
If you're not interested in Data Channels or WebSockets (or you don't
care about either of them) you can disable them when configuring:

The script will then try to check whether you have all the dependencies
installed, and then issue a 'make' for you to start compiling. If
Doxygen and graphviz are available, it will also build the documentation
for you as well in the docs/html subfolder. If you prefer not to build
the documentation (or not to build it again and again every time you
compile!) use the 'nodocs' option (along 'nodatachans' and
'nowebsockets', if needed):
./configure --disable-websockets --disable-data-channels

sh install.sh nodocs
If Doxygen and graphviz are available, the process will also build the
documentation for you. If you prefer not to build it, use the
--disable-docs configuration option:

./configure --disable-docs

You can also selectively enable/disable other features (e.g., specific
plugins you don't care about). Use the --help option when configuring
for more info.


##Configure and start
To start the gateway, you can use the janus executable. There are several
things you can configure, either in a configuration file:

./conf/janus.cfg
<installdir>/etc/janus/janus.cfg

or on the command line:

./janus --help
<installdir>/bin/janus --help

janus 0.0.5

Expand Down Expand Up @@ -203,7 +206,7 @@ or on the command line:
Options passed through the command line have the precedence on those
specified in the configuration file. To start the gateway, simply run:

./janus
<installdir>/bin/janus

This will start the gateway, and have it look at the configuration file.
By default, only an HTTP webserver is started. To enable HTTPS support,
Expand All @@ -222,7 +225,7 @@ specify in the command line are the ones related to the DTLS certificate.
A default certificate is provided with this package in the certs folder,
which you can use launching the executable with these parameters:

./janus -c certs/mycert.pem -k certs/mycert.key
<installdir>/bin/janus -c /path/to/mycert.pem -k /path/to/mycert.key

At this point, the gateway will be listening on the 8088 port (or whatever
you changed that to) of your machine. To test whether it's working
Expand Down
4 changes: 0 additions & 4 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

autoreconf --verbose --force --install || exit 1

if test -z "$NOCONFIGURE"; then
$srcdir/configure "$@"
fi
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ AM_CONDITIONAL([ENABLE_POST_PROCESSING], [test "x$enable_post_processing" = "xye

AC_CONFIG_FILES([
Makefile
html/Makefile
docs/Makefile
])

Expand Down
15 changes: 15 additions & 0 deletions html/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
demodir = $(datadir)/janus/demos

html-local:
true

install-data-local: html-local
$(MKDIR_P) $(DESTDIR)$(demodir)
cp -r * $(DESTDIR)$(demodir)
rm $(DESTDIR)$(demodir)/Makefile*

uninstall-local:
rm -rf $(DESTDIR)$(demodir)

clean-local:
true

0 comments on commit ea61ba1

Please sign in to comment.