Cross compile H323Plus CVS vs. PTLIB-2.12.x

Discussion related to implementation and use of the H.323 Plus H.323 stack at http://www.h323plus.org.
Post Reply
mazilo
Posts: 45
Joined: Thu Sep 15, 2011 2:12 pm

Cross compile H323Plus CVS vs. PTLIB-2.12.x

Post by mazilo » Thu Aug 29, 2013 3:48 pm

With a PTLIB-2-12.x, has anyone managed to (cross) compile the latest H323Plus from CVS repo? I tried it to no avail. First, it complains with no ptlib/make/lib.mak file. To resolve this issue, I created the following patch.

Code: Select all

--- a/src/Makefile
+++ b/src/Makefile
@@ -31,6 +31,7 @@ endif
 
 LIBRARY_MAKEFILE:=1
 
+include $(PTLIBDIR)/make/toplevel.mak
 include $(OPENH323DIR)/openh323u.mak
 
 # turn off strict-aliasing optimization, because it breaks the PDynaLink code
@@ -373,7 +374,7 @@ SYSLIBS        += -l$(PTLIB_BASE)$(LIB_T
 LIB_BASENAME=$(OH323_BASE)
 LIB_FILENAME=$(OH323_FILE)
 
-include $(PTLIBDIR)/make/lib.mak
+include $(PTLIBDIR)/make/ptlib.mak
 
 ####################################################
After the above patch, the the cross compilation produced the following error messages:

Code: Select all

[debian@Debian:/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs 975%] ~ make all
make[1]: Entering directory `/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs'
make[1]: Nothing to be done for `default_depend'.
make[1]: Leaving directory `/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs'
make -C src optdepend
make[1]: Entering directory `/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs/src'
make[2]: Entering directory `/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs/src'
[DEP] h225_1.cxx
h225_1.cxx:12:18: fatal error: h225.h: No such file or directory
 #include "h225.h"
                  ^
compilation terminated.
make[2]: *** [/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs/lib/n/h225_1.dep] Error 1
make[2]: *** Deleting file `/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs/lib/n/h225_1.dep'
make[2]: Leaving directory `/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs/src'
make[1]: *** [optdepend] Error 2
make[1]: Leaving directory `/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs/src'
make: *** [optdepend] Error 2
[debian@Debian:/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs 976%] ~ quilt top
000-Makefile_in.patch
[debian@Debian:/opt/tmp/openwrt-svn-trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/h323plus_cvs 977%] ~
I certainly would appreciate some helps here. Thank you.

User avatar
willamowius
Posts: 39
Joined: Tue Sep 01, 2009 7:25 am
Contact:

Re: Cross compile H323Plus CVS vs. PTLIB-2.12.x

Post by willamowius » Thu Aug 29, 2013 5:58 pm

H323Plus currently doesn't build with PTLib 2.12.x on Linux at all. Some time during the PTLib 2.11.x cycle they changed the build system. For now you should stay with PTLib 2.10.9.

Once the H323Plus build system is rewritten, cross compiling with it could be the next step.
Unfortunately changing the build system is a pretty heavy task. If you want to tackle it, that would be even better.

- Jan
Jan Willamowius
Founder of the GNU Gatekeeper Project
https://www.gnugk.org
https://www.willamowius.com (H.323 support)

mazilo
Posts: 45
Joined: Thu Sep 15, 2011 2:12 pm

Re: Cross compile H323Plus CVS vs. PTLIB-2.12.x

Post by mazilo » Thu Aug 29, 2013 9:37 pm

Thank you for your quick response to make things clear. I wished I had knowledge on how to resolve this issue. However, I will give it a try.

hello_kitty
Posts: 3
Joined: Thu May 22, 2014 9:10 am

Re: Cross compile H323Plus CVS vs. PTLIB-2.12.x

Post by hello_kitty » Fri May 23, 2014 8:14 pm

Are you planning to build PTLib 2.12.x on Linux at all?

User avatar
willamowius
Posts: 39
Joined: Tue Sep 01, 2009 7:25 am
Contact:

Re: Cross compile H323Plus CVS vs. PTLIB-2.12.x

Post by willamowius » Sat May 24, 2014 5:59 am

The latest H323Plus from CVS should compile with PTLib 2.12.x.
Jan Willamowius
Founder of the GNU Gatekeeper Project
https://www.gnugk.org
https://www.willamowius.com (H.323 support)

Post Reply