java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic HowToBuildJXTA-C (21 - 30 Jan 2008 - Main.HenryJen)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Line: 22 to 22
 

Check out from CVS

Changed:
<
<
svn checkout https://jxta-c.dev.java.net/svn/jxta-c/trunk jxta-c --username guest
>
>
svn checkout https://jxta-c.dev.java.net/svn/jxta-c/jxta-c/trunk jxta-c --username guest
 

Step 2: Prepare for prerequisite


 <<O>>  Difference Topic HowToBuildJXTA-C (20 - 10 Sep 2007 - Main.vfinley)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Added:
>
>

Updates


Note: this page is deprecated for Linux/Unix platforms.

 This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list

The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here


 <<O>>  Difference Topic HowToBuildJXTA-C (19 - 04 Jun 2007 - Main.mrpugh)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 13 to 13
 

Check out from CVS

Changed:
<
<
svn checkout https://jxta-c.dev.java.net/svn/jxta-c/jxta-c/trunk --username guest
>
>
svn checkout https://jxta-c.dev.java.net/svn/jxta-c/trunk jxta-c --username guest
 

Step 2: Prepare for prerequisite


 <<O>>  Difference Topic HowToBuildJXTA-C (18 - 04 Jun 2007 - Main.mrpugh)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 13 to 13
 

Check out from CVS

Changed:
<
<
cvs -d :pserver:guest@cvs.jxta.org:/cvs login cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c
>
>
svn checkout https://jxta-c.dev.java.net/svn/jxta-c/jxta-c/trunk --username guest
 

Step 2: Prepare for prerequisite

Line: 30 to 29
 
Changed:
<
<
As how to prepare those prerequiste, it various on different operating systems. Please add information for your favorite system here:
>
>
As how to prepare those prerequisite, it various on different operating systems. Please add information for your favorite system here:
 
Win32 A pre-build of the libraries can be found at http://www.lfbs.rwth-aachen.de/~ruben/JXTA_libs.zip
Debian apt-get install libapr1-dev libaprutil1-dev libsqlite3-dev libxml2-dev zlib1g-dev
Line: 87 to 86
 

For Win32

Changed:
<
<
Stefan Lankes maintains the Win32 build environment. Goes to the win32 folder and you will find the jxta.sln file. Here is the instruction as in the README.txt file.
>
>
Ruben Niederhagen maintains the Win32 build environment. Go to the win32 folder and you will find the jxta.sln file. Here is the instruction as in the README.txt file.

For Win32 you do also need the expat-library as described in the readme-file.

 
General
=======
Changed:
<
<
Currently, we support only Visual Studio .NET 2003 to build JXTA-C. Therefore, the old VC6 project files in the current CVS tree are obsolete.
>
>
Currently, we support only Visual Studio .NET 2005 to build JXTA-C.
 To create JXTA-C on Windows you need following libraries:
Line: 103 to 103
  - zlib (http://www.zlib.net/) - sqlite3 (http://www.sqlite.org/) - xml2 (http://xmlsoft.org/index.html)
Added:
>
>
- expat (http://expat.sourceforge.net/)
 Beside XML2 you can use the official distribution of these libraries. The XML2 library has been modified in order to provide wild card searching
Line: 111 to 112
 building this version of XML2.
Changed:
<
<
Check out the sources from CVS
>
>
Check out the sources from SVN
 ==========================
Changed:
<
<
cvs -d :pserver:guest@cvs.jxta.org:/cvs login cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c
>
>
svn checkout https://jxta-c.dev.java.net/svn/jxta-c/jxta-c/trunk --username guest
 

Configuring the sources

Line: 123 to 123
 You have to specify the environment variables (APACHE2, XML2, ZLIB, SQLITE3 and OPENSSL) to the location of the necessary libraries. It is assumed that
Changed:
<
<
the headers are located in the subdirectory "include", the DLLs in the subdirtectory
>
>
the headers are located in the subdirectory "include", the DLLs in the subdirectory
 "bin" and the link libraries in the subdirectory "lib". For instance, zlib.h is located at $(ZLIB)/include.
Added:
>
>
The expat-stuff does not reside in an own directory for historical reasons; the library and the header file need to be put into the APACHE2 directory.
 

Building the sources ================

Changed:
<
<
Open with Visual Studio .NET 2003 the project file jxta.sln in the directory "win32".
>
>
Open with Visual Studio .NET 2005 the project file jxta.sln in the directory "win32".
 Afterwards, press F7 to build the JXTA libraries and all examples.


 <<O>>  Difference Topic HowToBuildJXTA-C (17 - 04 Jun 2007 - Main.mrpugh)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 31 to 31
 

As how to prepare those prerequiste, it various on different operating systems. Please add information for your favorite system here:

Changed:
<
<
Win32 Stefan is kind enough to provide the library he had built. You can find those libraries at http://www.lfbs.rwth-aachen.de/~stefan/necessary_jxta_libs.zip
>
>
Win32 A pre-build of the libraries can be found at http://www.lfbs.rwth-aachen.de/~ruben/JXTA_libs.zip
 
Debian apt-get install libapr1-dev libaprutil1-dev libsqlite3-dev libxml2-dev zlib1g-dev

 <<O>>  Difference Topic HowToBuildJXTA-C (16 - 22 Apr 2007 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<
>
>
 This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list

The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here

Line: 9 to 9
 

Download a source archive

You can get source code for JXTA-C releases at
Changed:
<
<
>
>
 

Check out from CVS

Line: 30 to 30
 
Changed:
<
<
As how to prepare those prerequiste, it various on different operating systems. For example, on a Debian based Linux distribution, apt-get with correct package names should give you most of it.
>
>
As how to prepare those prerequiste, it various on different operating systems. Please add information for your favorite system here:
Win32 Stefan is kind enough to provide the library he had built. You can find those libraries at http://www.lfbs.rwth-aachen.de/~stefan/necessary_jxta_libs.zip
Debian apt-get install libapr1-dev libaprutil1-dev libsqlite3-dev libxml2-dev zlib1g-dev
 Building Prerequisite Libraries from Source

 <<O>>  Difference Topic HowToBuildJXTA-C (15 - 28 Jul 2006 - Main.feldmann)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 18 to 18
 

Step 2: Prepare for prerequisite

Changed:
<
<
You will need the following libraries:
  • Apache Portable Runtime: apr 1.2.1, apr-util 1.2.7 with SQLite3 support
    • The apr-util driver for SQLite3 requires a patch for transaction support. (see Building Prerequisite Libraries from Source)
  • libxml2: You will apply the patch comes with JXTA-C to enable wildcard search in XPath query

You will also need following libraries:

>
>
You will need following libraries:
 
Added:
>
>

You will also need to build the following libraries from source (see Building Prerequisite Libraries from Source):

  • Apache Portable Runtime: apr-util 1.2.7 with SQLite3 support
    • The apr-util driver for SQLite3 requires a patch for transaction support.
  • libxml2: You will apply the patch comes with JXTA-C to enable wildcard search in XPath query
  • SQLite3
 As how to prepare those prerequiste, it various on different operating systems. For example, on a Debian based Linux distribution, apt-get with correct package names should give you most of it.
Line: 34 to 36
 TIP You can always build from source code, refer to those projects for instructions on how to build them on your platform. The following are the considerations for JXTA-C.
Added:
>
>
  • libXML2
    • Apply the patch that comes with JXTA-C. Follow the directions in: JXTA-C directory/lib/libxml2/INSTALL

  • SQLite
    • Should be built with --enable-threadsafe option
    • When using ephemeral address spaces, there is a problem in SQLite that creates a memory leak. The current CVS repository contains a fix for this problem and should be rebuilt. If ephemeral address spaces are not used the official release 3.3.6 is recommended.
 
  • apr-util
    • Version 1.2.7 of apr-util is required along with a fix for SQL transaction support. You have 2 options for building apr-util.
      • You can download from the SVN repository revision 398048. This revision has been tested.
Line: 65 to 74
  make install
Deleted:
<
<
  • SQLite
    • Should be built with --enable-threadsafe option
    • When using ephemeral address spaces, there is a problem in SQLite that creates a memory leak. The current CVS repository contains a fix for this problem and should be rebuilt. If ephemeral address spaces are not used the official release 3.3.6 is recommended.
 

Step 3: Build

For *nices


 <<O>>  Difference Topic HowToBuildJXTA-C (14 - 27 Jul 2006 - Main.feldmann)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 34 to 34
 TIP You can always build from source code, refer to those projects for instructions on how to build them on your platform. The following are the considerations for JXTA-C.
Changed:
<
<
  • apr-util
    • A patch is required for transaction support. Version 1.2.7 of apr-util is required. The source can be obtained from http://apr.apache.org/download.cgi. This patch fixes a problem with SQL transactions that JXTA-C now requires. The apr project has a fix but isn't in the current 1.2.7 release. This will only be required for the 1.2.7 version of apr-util. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
>
>
  • apr-util
    • Version 1.2.7 of apr-util is required along with a fix for SQL transaction support. You have 2 options for building apr-util.
      • You can download from the SVN repository revision 398048. This revision has been tested.
svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk apr-util -r 398048
      • A patch can be applied to the current 1.2.7 release. The source can be obtained from http://apr.apache.org/download.cgi. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
 
Index: dbd/apr_dbd_sqlite3.c
Line: 55 to 60
 Execute the following commands to patch and build apr-util.
                patch -p0 -i apr_dbd_fix.patch
Changed:
<
<
./configure apr-util --apr=/location --with-sqlite3=/location
>
>
./configure --enable-layout=apr-util --with-apr=/location --with-sqlite3=/location
  make make install
Changed:
<
<
  • SQLite

>
>
  • SQLite
    • Should be built with --enable-threadsafe option
    • When using ephemeral address spaces, there is a problem in SQLite that creates a memory leak. The current CVS repository contains a fix for this problem and should be rebuilt. If ephemeral address spaces are not used the official release 3.3.6 is recommended.
 

Step 3: Build


 <<O>>  Difference Topic HowToBuildJXTA-C (13 - 25 Jul 2006 - Main.exocetrick)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 35 to 35
 TIP You can always build from source code, refer to those projects for instructions on how to build them on your platform. The following are the considerations for JXTA-C.

  • apr-util
Changed:
<
<
    • A patch is required for transaction support. Version 1.2.7 of apr-util is required. The source can be obtained from http://apr.apache.org/download.cgi. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
>
>
    • A patch is required for transaction support. Version 1.2.7 of apr-util is required. The source can be obtained from http://apr.apache.org/download.cgi. This patch fixes a problem with SQL transactions that JXTA-C now requires. The apr project has a fix but isn't in the current 1.2.7 release. This will only be required for the 1.2.7 version of apr-util. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.
 
Index: dbd/apr_dbd_sqlite3.c

 <<O>>  Difference Topic HowToBuildJXTA-C (12 - 25 Jul 2006 - Main.exocetrick)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 42 to 42
 ===============================================================
dbd/apr_dbd_sqlite3.c (revision 392824) +++ dbd/apr_dbd_sqlite3.c (working copy)
Line: 253 to 253
Deleted:
<
<
apr_dbd_mutex_lock();

do { + int retry_count = 0; + ret = sqlite3_prepare(sql->conn, query, length, &stmt, &tail); if (ret = SQLITE_OK) { sqlite3_finalize(stmt); break; } - ret = sqlite3_step(stmt); + + while(retry_count++ <= MAX_RETRY_COUNT) { + ret = sqlite3_step(stmt); + if (ret = SQLITE_BUSY) + break; + + apr_dbd_mutex_unlock(); + apr_sleep(MAX_RETRY_SLEEP); + apr_dbd_mutex_lock(); + } + *nrows = sqlite3_changes(sql->conn); sqlite3_finalize(stmt); length -= (tail - query);

Line: 327 to 339
Deleted:
<
<
int ret = 0; int nrows = 0;

- ret = dbd_sqlite3_query(handle, &nrows, "BEGIN TRANSACTION;"); + ret = dbd_sqlite3_query(handle, &nrows, "BEGIN"); if (*trans) { *trans = apr_pcalloc(pool, sizeof(apr_dbd_transaction_t)); (*trans)->handle = handle;

Line: 339 to 351
Deleted:
<
<
static int dbd_sqlite3_end_transaction(apr_dbd_transaction_t *trans) { - int ret = 0; + int ret = -1; /* ending transaction that was never started is an error */
Line: 335 to 335
  int nrows = 0;

if (trans) { - ret = dbd_sqlite3_query(trans->handle, &nrows, "END TRANSACTION;"); if (trans->errnum) { trans->errnum = 0;

Changed:
<
<
- ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK;"); + ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK"); } else { - ret = dbd_sqlite3_query(trans->handle, &nrows, "COMMIT;"); + ret = dbd_sqlite3_query(trans->handle, &nrows, "COMMIT"); } trans->handle->trans = NULL; }
>
>
ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK;");
 

Execute the following commands to patch and build apr-util.


 <<O>>  Difference Topic HowToBuildJXTA-C (11 - 25 Jul 2006 - Main.exocetrick)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<
>
>
 This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list

The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here

Line: 19 to 19
 

Step 2: Prepare for prerequisite

You will need the following libraries:
Changed:
<
<
>
>
  • Apache Portable Runtime: apr 1.2.1, apr-util 1.2.7 with SQLite3 support
    • The apr-util driver for SQLite3 requires a patch for transaction support. (see Building Prerequisite Libraries from Source)
 
  • libxml2: You will apply the patch comes with JXTA-C to enable wildcard search in XPath query

You will also need following libraries:

Line: 29 to 30
 As how to prepare those prerequiste, it various on different operating systems. For example, on a Debian based Linux distribution, apt-get with correct package names should give you most of it.
Changed:
<
<
TIP You can always build from source code, refer to those projects for instructions on how to build them on your platform.
>
>
Building Prerequisite Libraries from Source

TIP You can always build from source code, refer to those projects for instructions on how to build them on your platform. The following are the considerations for JXTA-C.

  • apr-util
    • A patch is required for transaction support. Version 1.2.7 of apr-util is required. The source can be obtained from http://apr.apache.org/download.cgi. Download the tar ball for your system and extract the files. Create an apr_dbd_fix.patch file in the root directory of apr-util. Copy and paste the following patch into apr_dbd_fix.patch file.

Index: dbd/apr_dbd_sqlite3.c
===================================================================
--- dbd/apr_dbd_sqlite3.c   (revision 392824)
+++ dbd/apr_dbd_sqlite3.c   (working copy)
Line: 253 to 253
Added:
>
>
apr_dbd_mutex_lock();

do { + int retry_count = 0; + ret = sqlite3_prepare(sql->conn, query, length, &stmt, &tail); if (ret = SQLITE_OK) { sqlite3_finalize(stmt); break; } - ret = sqlite3_step(stmt); + + while(retry_count++ <= MAX_RETRY_COUNT) { + ret = sqlite3_step(stmt); + if (ret = SQLITE_BUSY) + break; + + apr_dbd_mutex_unlock(); + apr_sleep(MAX_RETRY_SLEEP); + apr_dbd_mutex_lock(); + } + *nrows = sqlite3_changes(sql->conn); sqlite3_finalize(stmt); length -= (tail - query);

Line: 327 to 339
Added:
>
>
int ret = 0; int nrows = 0;

- ret = dbd_sqlite3_query(handle, &nrows, "BEGIN TRANSACTION;"); + ret = dbd_sqlite3_query(handle, &nrows, "BEGIN"); if (*trans) { *trans = apr_pcalloc(pool, sizeof(apr_dbd_transaction_t)); (*trans)->handle = handle;

Line: 339 to 351
Added:
>
>
static int dbd_sqlite3_end_transaction(apr_dbd_transaction_t *trans) { - int ret = 0; + int ret = -1; /* ending transaction that was never started is an error */ int nrows = 0;

if (trans) { - ret = dbd_sqlite3_query(trans->handle, &nrows, "END TRANSACTION;"); if (trans->errnum) { trans->errnum = 0; - ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK;"); + ret = dbd_sqlite3_query(trans->handle, &nrows, "ROLLBACK"); } else { - ret = dbd_sqlite3_query(trans->handle, &nrows, "COMMIT;"); + ret = dbd_sqlite3_query(trans->handle, &nrows, "COMMIT"); } trans->handle->trans = NULL; }

Execute the following commands to patch and build apr-util.

                patch -p0 -i apr_dbd_fix.patch
                ./configure apr-util --apr=/location --with-sqlite3=/location
                make
                make install

  • SQLite

 

Step 3: Build

For *nices


 <<O>>  Difference Topic HowToBuildJXTA-C (10 - 28 Mar 2006 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 27 to 27
 
Added:
>
>
As how to prepare those prerequiste, it various on different operating systems. For example, on a Debian based Linux distribution, apt-get with correct package names should give you most of it.

TIP You can always build from source code, refer to those projects for instructions on how to build them on your platform.

 

Step 3: Build

For *nices


 <<O>>  Difference Topic HowToBuildJXTA-C (9 - 16 Mar 2006 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 7 to 7
 

Step 1: Get the source code

Download a source archive

Changed:
<
<
You can get source code for 2.2 release at
>
>
You can get source code for JXTA-C releases at
 

 <<O>>  Difference Topic HowToBuildJXTA-C (8 - 08 Mar 2006 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Line: 28 to 28
 

Step 3: Build

Added:
>
>

For *nices

 
./configure
make
make install
Added:
>
>

For Win32

Stefan Lankes maintains the Win32 build environment. Goes to the win32 folder and you will find the jxta.sln file. Here is the instruction as in the README.txt file.

General
=======

Currently, we support only Visual Studio .NET 2003 to build JXTA-C. Therefore, 
the old VC6 project files in the current CVS tree are obsolete.

To create JXTA-C on Windows you need following libraries:

 - APR (http://apr.apache.org/)
 - OpenSSL (http://www.openssl.org/)
 - zlib (http://www.zlib.net/)
 - sqlite3 (http://www.sqlite.org/)
 - xml2 (http://xmlsoft.org/index.html)

Beside XML2 you can use the official distribution of these libraries. The 
XML2 library has been modified in order to provide wild card searching 
of text elements with the Enhanced Discovery Service. Therefore, you need to 
create this custom version of XML2. See INSTALL in lib/xml2 for instructions on 
building this version of XML2.


Check out the sources from CVS
==============================

cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c 


Configuring the sources
=======================

You have to specify the environment variables (APACHE2, XML2, ZLIB, SQLITE3 and OPENSSL) 
to the location of the necessary libraries. It is assumed that 
the headers are located in the subdirectory "include", the DLLs in the subdirtectory 
"bin" and the link libraries in the subdirectory "lib". For instance, zlib.h is located 
at $(ZLIB)/include.


Building the sources
====================

Open with Visual Studio .NET 2003 the project file jxta.sln in the directory "win32".
Afterwards, press F7 to build the JXTA libraries and all examples. 

 

 <<O>>  Difference Topic HowToBuildJXTA-C (7 - 16 Sep 2005 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
Changed:
<
<
The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here?
>
>
The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here
 

Step 1: Get the source code

Download a source archive

Added:
>
>
You can get source code for 2.2 release at
 

Check out from CVS

Line: 15 to 18
 

Step 2: Prepare for prerequisite

Added:
>
>
You will need the following libraries:

You will also need following libraries:

Step 3: Build

./configure
make
make install
 

 <<O>>  Difference Topic HowToBuildJXTA-C (6 - 01 Sep 2005 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<
ALERT! Work in Progress
>
>
This page details steps to build JXTA-C from scratch, if you find anything does not work for you, please send a note to JXTA-C discussion mailing list
 
Changed:
<
<
Before we have a nightly tarball, you will have to check out the code from CVS.
>
>
The steps described here applies to the releases after 2.2 and current CVS head branch. For instructions on how to build JXTA-C 2.1.* releases, look here?
 
Changed:
<
<
TIP With the nightly/release build tarball, you don't need to have autotools, and just replace autogen.sh with configure in the following instruction, then you are ready to go.
>
>

Step 1: Get the source code

Download a source archive

 
Changed:
<
<

Check out from CVS

>
>

Check out from CVS

 
cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c 
Changed:
<
<

Linux

On most Linux distribution, libapr was built with Berkeley DB support. I would recommend you to isntall the libapr distributed by your distribution and use Berkeley DB as the default DBM. I have tested this configuration with Debian and Suse(JDS does not seems to provide apr, however, you can try RPM from Suse 9)

To test if your system have libapr installed and support Berkeley DB,

$ apr-config --includedir
If libapr was installed, you should see it print out the folder which contains the header files. On Debian, it is /usr/include/apr-0, on Suse, it is /usr/include/apache2

Next step, make sure that libapr was built with Berkeley DB support.

grep APU_HAVE_DB /usr/include/apr-0/apu.h
You will see a line like following, if the value is 1, that means Berkeley DB support is built into libapr. You are good to use it to build jxta-c.
#define APU_HAVE_DB     1

System with libapr and Berkely DB isntalled

./autogen.sh --without-apr --with-dbm=db
make
make install

System without libapr, Berkeley DB or with libapr does not support Berkeley DB

You will need a patched build of apr-util for SDBM. You can download a pre-built library at http://jxta-c.jxta.org/servlets/ProjectDocumentList. Create a lib folder in the jxta-c folder and untar the file.

./autogen.sh
make
make install

Windows

You will need a patched build of apr-util for SDBM. You can download a pre-built library at http://jxta-c.jxta.org/files/documents/141/204/apr-0.9.6-win32.zip

Create a lib folder in your jxta-c folder and unzip the file. You should now see a Apache2 folder within the lib folder.

The jxtalib.dsp can be located in win32/jxta/jxtalib/jxtalib.dsp, and the shell is in win32/JxtaShell/JxtaShell.dsp. I believe you know how to build it from here. smile

>
>

Step 2: Prepare for prerequisite

 
Added:
>
>
 

 <<O>>  Difference Topic HowToBuildJXTA-C (5 - 28 Feb 2005 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
ALERT! Work in Progress

Before we have a nightly tarball, you will have to check out the code from CVS.

Changed:
<
<
TIP With the nightly-build tarball, you don't need to have autotools, and just replace autogen.sh with configure in the following instruction, then you are ready to go.
>
>
TIP With the nightly/release build tarball, you don't need to have autotools, and just replace autogen.sh with configure in the following instruction, then you are ready to go.
 

Check out from CVS

Line: 32 to 32
 

System with libapr and Berkely DB isntalled

Changed:
<
<
./autogen --without-apr --with-dbm=db
>
>
./autogen.sh --without-apr --with-dbm=db
 make make install

System without libapr, Berkeley DB or with libapr does not support Berkeley DB

Added:
>
>
You will need a patched build of apr-util for SDBM. You can download a pre-built library at http://jxta-c.jxta.org/servlets/ProjectDocumentList. Create a lib folder in the jxta-c folder and untar the file.
 
./autogen.sh
make
Line: 45 to 48
 

Windows

Changed:
<
<
jxta-c provides a pre-built libapr with appropriate patch, you can find it(apache-2.0.49-win32.zip) in the lib folder. Unzip it into the lib folder.
>
>
You will need a patched build of apr-util for SDBM. You can download a pre-built library at http://jxta-c.jxta.org/files/documents/141/204/apr-0.9.6-win32.zip

Create a lib folder in your jxta-c folder and unzip the file.

 You should now see a Apache2 folder within the lib folder.

The jxtalib.dsp can be located in win32/jxta/jxtalib/jxtalib.dsp, and the shell is in win32/JxtaShell/JxtaShell.dsp. I believe you know how to build it from here. smile


 <<O>>  Difference Topic HowToBuildJXTA-C (4 - 28 Feb 2005 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
ALERT! Work in Progress

Before we have a nightly tarball, you will have to check out the code from CVS.

Added:
>
>
TIP With the nightly-build tarball, you don't need to have autotools, and just replace autogen.sh with configure in the following instruction, then you are ready to go.
 

Check out from CVS

cvs -d :pserver:guest@cvs.jxta.org:/cvs login
Line: 46 to 48
 jxta-c provides a pre-built libapr with appropriate patch, you can find it(apache-2.0.49-win32.zip) in the lib folder. Unzip it into the lib folder. You should now see a Apache2 folder within the lib folder.
Changed:
<
<
The jxtalib.dsp can be located in win32/jxta/jxtalib/jxtalib.dsp, I believe you know how to build it from here. smile
>
>
The jxtalib.dsp can be located in win32/jxta/jxtalib/jxtalib.dsp, and the shell is in win32/JxtaShell/JxtaShell.dsp. I believe you know how to build it from here. smile
 

 <<O>>  Difference Topic HowToBuildJXTA-C (3 - 16 Feb 2005 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
ALERT! Work in Progress
Line: 35 to 35
 make install
Changed:
<
<

System without libapr, Berkeley DB or libapr does not support Berkeley DB

General procedure to build with autotools under *nices
>
>

System without libapr, Berkeley DB or with libapr does not support Berkeley DB

 
./autogen.sh
make
make install
Added:
>
>

Windows

jxta-c provides a pre-built libapr with appropriate patch, you can find it(apache-2.0.49-win32.zip) in the lib folder. Unzip it into the lib folder. You should now see a Apache2 folder within the lib folder.

The jxtalib.dsp can be located in win32/jxta/jxtalib/jxtalib.dsp, I believe you know how to build it from here. smile


 <<O>>  Difference Topic HowToBuildJXTA-C (2 - 15 Feb 2005 - Main.slowhog)
Line: 1 to 1
 
META TOPICPARENT name="WebHome"
ALERT! Work in Progress

Before we have a nightly tarball, you will have to check out the code from CVS.

Changed:
<
<
Check out from CVS
>
>

Check out from CVS

 
cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c 
Changed:
<
<
Build with autotools under *nices
>
>

Linux

On most Linux distribution, libapr was built with Berkeley DB support. I would recommend you to isntall the libapr distributed by your distribution and use Berkeley DB as the default DBM. I have tested this configuration with Debian and Suse(JDS does not seems to provide apr, however, you can try RPM from Suse 9)

To test if your system have libapr installed and support Berkeley DB,

 
Changed:
<
<
./autogen.sh
>
>
$ apr-config --includedir If libapr was installed, you should see it print out the folder which contains the header files. On Debian, it is /usr/include/apr-0, on Suse, it is /usr/include/apache2

Next step, make sure that libapr was built with Berkeley DB support.

grep APU_HAVE_DB /usr/include/apr-0/apu.h
You will see a line like following, if the value is 1, that means Berkeley DB support is built into libapr. You are good to use it to build jxta-c.
#define APU_HAVE_DB     1

System with libapr and Berkely DB isntalled

./autogen --without-apr --with-dbm=db
 make make install
Added:
>
>

System without libapr, Berkeley DB or libapr does not support Berkeley DB

General procedure to build with autotools under *nices
./autogen.sh
make
make install

 <<O>>  Difference Topic HowToBuildJXTA-C (1 - 12 Feb 2005 - Main.slowhog)
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"
ALERT! Work in Progress

Before we have a nightly tarball, you will have to check out the code from CVS.

Check out from CVS

cvs -d :pserver:guest@cvs.jxta.org:/cvs login
cvs -d :pserver:guest@cvs.jxta.org:/cvs checkout jxta-c 

Build with autotools under *nices

./autogen.sh
make
make install

Topic HowToBuildJXTA-C . { View | Diffs r21 < r20 < r19 < r18 | More }
 XML java.net RSS