Module: sip-router
Branch: master
Commit: 815dbe7a4b0fa93380bf75bfb30afe5e174360c2
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=815dbe7…
Author: Konstantin Mosesov <ez(a)voipgroup.org.ua>
Committer: Konstantin Mosesov <ez(a)voipgroup.org.ua>
Date: Sat May 24 17:14:30 2014 +0400
Added requirements for modules app_python and app_java
---
INSTALL | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/INSTALL b/INSTALL
index b69b409..dcf8766 100644
--- a/INSTALL
+++ b/INSTALL
@@ -131,6 +131,8 @@ Requirements:
- libsctp devel headers - if you want to compile the SCTP transport in the core
- libssl devel headers (openssl project) - if you want to compule the TLS module
- linunistring - for the Websockets module
+- python and devel headers for python module
+- jdk and gcj for java module
OS Notes:
Module: sip-router
Branch: master
Commit: 5a05370f35bdeb7277b2f53f5c3e95fb672d4024
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5a05370…
Author: Konstantin Mosesov <ez(a)voipgroup.org.ua>
Committer: Konstantin Mosesov <ez(a)voipgroup.org.ua>
Date: Sat May 24 05:57:16 2014 +0400
Fixed bug with JAVA_HOME detection.
---
modules/app_java/Makefile | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/modules/app_java/Makefile b/modules/app_java/Makefile
index 68b8f8a..792a116 100644
--- a/modules/app_java/Makefile
+++ b/modules/app_java/Makefile
@@ -20,6 +20,15 @@ JAVA_HOME ?= $(shell readlink -f /usr/bin/javac | sed "s:bin/javac::")
DEFS += $(shell pkg-config libgcj12 --cflags) -I$(JAVA_HOME)/include
LIBS += $(shell pkg-config libgcj12 --libs) -L$(JAVA_HOME)/lib -ljvm
+# On Debian 7.5 there is a bug with JAVA_HOME detection.
+# $(shell readlink -f /usr/bin/javac | sed "s:bin/javac::") points to perl wrapper script (/usr/bin/gcj-wrapper-4.7)
+# whereas the real compiler is at /usr/bin/gcj-4.7. As the result, JAVA_HOME will not be a directory, that is incorrect.
+# At this point I don't see any universal method as explicit setting this variable at the compile phase.
+# -- ez
+ifeq ($(shell [ -d "${JAVA_HOME}" -a -f "$(JAVA_HOME)/include/jni.h" -a -f "$(JAVA_HOME)/lib/libjvm.so" ] && echo 1 || echo 0),0)
+ $(error Can't locate Java Development Kit. You have to specify environment JAVA_HOME to build app_java)
+endif
+
ifeq ($(OS), freebsd)
LIBS+=-pthread
endif