<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://rxtx.qbang.org/wiki/skins/common/feed.css?207"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://rxtx.qbang.org/wiki/index.php?feed=atom&amp;target=Bonasta&amp;title=Special%3AContributions</id>
		<title>Rxtx - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://rxtx.qbang.org/wiki/index.php?feed=atom&amp;target=Bonasta&amp;title=Special%3AContributions"/>
		<link rel="alternate" type="text/html" href="http://rxtx.qbang.org/wiki/index.php/Special:Contributions/Bonasta"/>
		<updated>2026-04-25T11:47:53Z</updated>
		<subtitle>From Rxtx</subtitle>
		<generator>MediaWiki 1.15.4</generator>

	<entry>
		<id>http://rxtx.qbang.org/wiki/index.php/Installation_on_MS-Windows</id>
		<title>Installation on MS-Windows</title>
		<link rel="alternate" type="text/html" href="http://rxtx.qbang.org/wiki/index.php/Installation_on_MS-Windows"/>
				<updated>2008-03-19T20:33:31Z</updated>
		
		<summary type="html">&lt;p&gt;Bonasta:&amp;#32;/* Building with Eclipse/CDT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The instuctions below are a little dated, and have been copied over from the old docs. Please can someone update them:&lt;br /&gt;
&lt;br /&gt;
== Installing From Source==&lt;br /&gt;
==== Compiling for Win32 support ====&lt;br /&gt;
&lt;br /&gt;
		Get the Sun CommAPI if you want a plug-in solution.  The code &lt;br /&gt;
		is provided for people that may have demanding needs and coding&lt;br /&gt;
		ability. &lt;br /&gt;
&lt;br /&gt;
		There is only serial port code at this time.&lt;br /&gt;
&lt;br /&gt;
		Three ways of compiling win32 libraries are offered:&lt;br /&gt;
&lt;br /&gt;
			mingw32 tools in DOS&lt;br /&gt;
			lcc tools in DOS&lt;br /&gt;
			cross-compiling from Linux&lt;br /&gt;
===== mingw32 tools in DOS =====&lt;br /&gt;
&lt;br /&gt;
		Install mingw32  http://www.mingw.org&lt;br /&gt;
		Install a jdk    http://java.sun.com/j2se&lt;br /&gt;
		Make sure the ming32\bin and jdk\bin directories are in your&lt;br /&gt;
		path.&lt;br /&gt;
		In the rxtx top directory to the following:&lt;br /&gt;
		mkdir build&lt;br /&gt;
		copy Makefile.mingw32 build\Makefile&lt;br /&gt;
		cd build&lt;br /&gt;
		edit the Makefile and make sure the directories are correct.&lt;br /&gt;
		execute the following:&lt;br /&gt;
			make&lt;br /&gt;
			make install&lt;br /&gt;
	&lt;br /&gt;
===== lcc tools in DOS =====&lt;br /&gt;
&lt;br /&gt;
		Install a jdk    http://java.sun.com/j2se&lt;br /&gt;
		Install lcc http://www.cs.virginia.edu/~lcc-win32/&lt;br /&gt;
&lt;br /&gt;
		A make file (Makefile.lcc) for compiling rxtx with lcc&lt;br /&gt;
		contributed by Valentin Pavlov&lt;br /&gt;
&lt;br /&gt;
		You will need a config.h file in the src directory.  Other&lt;br /&gt;
		builds usually generate them automatically.  The following&lt;br /&gt;
		should work.&lt;br /&gt;
&lt;br /&gt;
		#define HAVE_FCNTL_H&lt;br /&gt;
		#define HAVE_SIGNAL_H&lt;br /&gt;
		#undef HAVE_SYS_FCNTL_H&lt;br /&gt;
		#undef HAVE_SYS_FILE_H&lt;br /&gt;
		#undef HAVE_SYS_SIGNAL_H&lt;br /&gt;
		#undef HAVE_TERMIOS_H&lt;br /&gt;
		#undef HAVE_SYS_TIME_H&lt;br /&gt;
&lt;br /&gt;
		if you know how to create the above in a dos Makefile send in			the changes.&lt;br /&gt;
&lt;br /&gt;
		the following commands should then work fine on the command&lt;br /&gt;
		line.&lt;br /&gt;
&lt;br /&gt;
		cd src&lt;br /&gt;
		make -f ..\Makefile.lcc&lt;br /&gt;
&lt;br /&gt;
===== cross-compiling from Linux =====&lt;br /&gt;
&lt;br /&gt;
		Grab ming32:&lt;br /&gt;
&lt;br /&gt;
		Wayne Roberts contributed the version used by the maintainer.&lt;br /&gt;
		(Wayne is largely responsible for bringing rxtx back to win32.)&lt;br /&gt;
		http://www.linuxgrrls.org/~taj/crossmingw32-2.95-1.i386.rpm&lt;br /&gt;
		A more current version can be obtained:&lt;br /&gt;
		http://www.devolution.com/~slouken/SDL/Xmingw32/crossgcc/index.html&lt;br /&gt;
		prebuilt Binaries:&lt;br /&gt;
		http://www.devolution.com/~slouken/SDL/Xmingw32/mingw32-linux-x86-glibc-2.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
		I built the dll with jdk-1.2.2 for linux using jdk-1.2.2 &lt;br /&gt;
		include files from the win32 JDK.&lt;br /&gt;
&lt;br /&gt;
		Make sure that ming32 bin dir is the first in your path (at &lt;br /&gt;
		least before /usr/bin/gcc)&lt;br /&gt;
&lt;br /&gt;
			$ export PATH=&amp;quot; \&lt;br /&gt;
				/usr/local/cross-tools/i386-mingw32/bin/: \&lt;br /&gt;
				$PATH:/usr/X11R6/bin:/usr/local/java/bin: \&lt;br /&gt;
				/usr/local/java/jre/bin/:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		Place Sun jdk 1.2.2 win32 include files in a known location.&lt;br /&gt;
&lt;br /&gt;
			$ mkdir /home/jarvi/win32java&lt;br /&gt;
			$ cp -r /mnt/win98//java/include /home/jarvi/win32java&lt;br /&gt;
&lt;br /&gt;
			If you are developing win32 support you may want to&lt;br /&gt;
			export the location to make the config script&lt;br /&gt;
			non interactive&lt;br /&gt;
&lt;br /&gt;
			$ export WIN32INCLUDE=/home/jarvi/tools/win32-include&lt;br /&gt;
&lt;br /&gt;
		run configure to generate a Makefile&lt;br /&gt;
&lt;br /&gt;
			$ cd /home/jarvi/rxtx-*&lt;br /&gt;
			$ mkdir build&lt;br /&gt;
			$ cd build&lt;br /&gt;
			$ ../configure --target=i386-mingw32  \&lt;br /&gt;
				--host=i386-redhat-linux&lt;br /&gt;
&lt;br /&gt;
		build the class files and dll.&lt;br /&gt;
&lt;br /&gt;
			$ make&lt;br /&gt;
&lt;br /&gt;
		the files will be located in&lt;br /&gt;
&lt;br /&gt;
			rxtx-*/build/...&lt;br /&gt;
&lt;br /&gt;
		If you're looking at rxtx as an example of cross-compiling you &lt;br /&gt;
		may be interested in looking at the examples provided at:&lt;br /&gt;
&lt;br /&gt;
			ftp.xraylith.wisc.edu&lt;br /&gt;
			/pub/khan/gnu-win32/mingw32/misc/java-jni-examples.zip&lt;br /&gt;
&lt;br /&gt;
=== Building with Eclipse/CDT ===&lt;br /&gt;
These builds instructions currently depend on a [http://www.codeskin.com/pubsvn/rxtx/tags/rxtx-2.1-7r2/Makefile makefile] available from CodeSkin.&lt;br /&gt;
&lt;br /&gt;
* Install Eclipse with CDT and Subclipse. Subclipse is the eclipse interface to subversion and instructions for installing it are at http://subclipse.tigris.org/install.html&lt;br /&gt;
* Install MinGW&lt;br /&gt;
* In Eclipse, select &amp;quot;New Project &amp;gt; Checkout Projects from SVN&amp;quot; and choose this repository location: http://www.codeskin.com/pubsvn/rxtx/tags/rxtx-2.1-7r2.&lt;br /&gt;
* Check out as a &amp;quot;project configured using the New Project Wizard&amp;quot; and choose &amp;quot;Java Project&amp;quot;.&lt;br /&gt;
* Once the project has been created, right-click on the project, select &amp;quot;new&amp;gt;other&amp;gt;C++&amp;gt;Convert to a C/C++ Make Project&amp;quot;&lt;br /&gt;
* Right-click on project again and select &amp;quot;properties&amp;gt;C/C++Build&amp;quot; and change &amp;quot;Build command&amp;quot; to&lt;br /&gt;
 C:\MinGW\bin\mingw32-make&lt;br /&gt;
* Finally, hit &amp;quot;Build All&amp;quot;, which should create RXTXcomm.jar and rxtxSerial.dll&lt;br /&gt;
&lt;br /&gt;
== Installing Binaries ==&lt;br /&gt;
&lt;br /&gt;
To do...&lt;br /&gt;
&lt;br /&gt;
Consider merging with [[Installation for Windows]].&lt;br /&gt;
&lt;br /&gt;
== External References ==&lt;br /&gt;
&lt;br /&gt;
Follows are some links that might be useful:&lt;br /&gt;
&lt;br /&gt;
* http://www.codeskin.com/c2oooProg_faq.html#rxtx&lt;br /&gt;
* http://www.codeskin.com/pubsvn/rxtx/tags/rxtx-2.1-7r2/Makefile&lt;/div&gt;</summary>
		<author><name>Bonasta</name></author>	</entry>

	<entry>
		<id>http://rxtx.qbang.org/wiki/index.php/Installation_on_MS-Windows</id>
		<title>Installation on MS-Windows</title>
		<link rel="alternate" type="text/html" href="http://rxtx.qbang.org/wiki/index.php/Installation_on_MS-Windows"/>
				<updated>2008-03-19T17:56:15Z</updated>
		
		<summary type="html">&lt;p&gt;Bonasta:&amp;#32;/* Building with Eclipse/CDT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The instuctions below are a little dated, and have been copied over from the old docs. Please can someone update them:&lt;br /&gt;
&lt;br /&gt;
== Installing From Source==&lt;br /&gt;
==== Compiling for Win32 support ====&lt;br /&gt;
&lt;br /&gt;
		Get the Sun CommAPI if you want a plug-in solution.  The code &lt;br /&gt;
		is provided for people that may have demanding needs and coding&lt;br /&gt;
		ability. &lt;br /&gt;
&lt;br /&gt;
		There is only serial port code at this time.&lt;br /&gt;
&lt;br /&gt;
		Three ways of compiling win32 libraries are offered:&lt;br /&gt;
&lt;br /&gt;
			mingw32 tools in DOS&lt;br /&gt;
			lcc tools in DOS&lt;br /&gt;
			cross-compiling from Linux&lt;br /&gt;
===== mingw32 tools in DOS =====&lt;br /&gt;
&lt;br /&gt;
		Install mingw32  http://www.mingw.org&lt;br /&gt;
		Install a jdk    http://java.sun.com/j2se&lt;br /&gt;
		Make sure the ming32\bin and jdk\bin directories are in your&lt;br /&gt;
		path.&lt;br /&gt;
		In the rxtx top directory to the following:&lt;br /&gt;
		mkdir build&lt;br /&gt;
		copy Makefile.mingw32 build\Makefile&lt;br /&gt;
		cd build&lt;br /&gt;
		edit the Makefile and make sure the directories are correct.&lt;br /&gt;
		execute the following:&lt;br /&gt;
			make&lt;br /&gt;
			make install&lt;br /&gt;
	&lt;br /&gt;
===== lcc tools in DOS =====&lt;br /&gt;
&lt;br /&gt;
		Install a jdk    http://java.sun.com/j2se&lt;br /&gt;
		Install lcc http://www.cs.virginia.edu/~lcc-win32/&lt;br /&gt;
&lt;br /&gt;
		A make file (Makefile.lcc) for compiling rxtx with lcc&lt;br /&gt;
		contributed by Valentin Pavlov&lt;br /&gt;
&lt;br /&gt;
		You will need a config.h file in the src directory.  Other&lt;br /&gt;
		builds usually generate them automatically.  The following&lt;br /&gt;
		should work.&lt;br /&gt;
&lt;br /&gt;
		#define HAVE_FCNTL_H&lt;br /&gt;
		#define HAVE_SIGNAL_H&lt;br /&gt;
		#undef HAVE_SYS_FCNTL_H&lt;br /&gt;
		#undef HAVE_SYS_FILE_H&lt;br /&gt;
		#undef HAVE_SYS_SIGNAL_H&lt;br /&gt;
		#undef HAVE_TERMIOS_H&lt;br /&gt;
		#undef HAVE_SYS_TIME_H&lt;br /&gt;
&lt;br /&gt;
		if you know how to create the above in a dos Makefile send in			the changes.&lt;br /&gt;
&lt;br /&gt;
		the following commands should then work fine on the command&lt;br /&gt;
		line.&lt;br /&gt;
&lt;br /&gt;
		cd src&lt;br /&gt;
		make -f ..\Makefile.lcc&lt;br /&gt;
&lt;br /&gt;
===== cross-compiling from Linux =====&lt;br /&gt;
&lt;br /&gt;
		Grab ming32:&lt;br /&gt;
&lt;br /&gt;
		Wayne Roberts contributed the version used by the maintainer.&lt;br /&gt;
		(Wayne is largely responsible for bringing rxtx back to win32.)&lt;br /&gt;
		http://www.linuxgrrls.org/~taj/crossmingw32-2.95-1.i386.rpm&lt;br /&gt;
		A more current version can be obtained:&lt;br /&gt;
		http://www.devolution.com/~slouken/SDL/Xmingw32/crossgcc/index.html&lt;br /&gt;
		prebuilt Binaries:&lt;br /&gt;
		http://www.devolution.com/~slouken/SDL/Xmingw32/mingw32-linux-x86-glibc-2.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
		I built the dll with jdk-1.2.2 for linux using jdk-1.2.2 &lt;br /&gt;
		include files from the win32 JDK.&lt;br /&gt;
&lt;br /&gt;
		Make sure that ming32 bin dir is the first in your path (at &lt;br /&gt;
		least before /usr/bin/gcc)&lt;br /&gt;
&lt;br /&gt;
			$ export PATH=&amp;quot; \&lt;br /&gt;
				/usr/local/cross-tools/i386-mingw32/bin/: \&lt;br /&gt;
				$PATH:/usr/X11R6/bin:/usr/local/java/bin: \&lt;br /&gt;
				/usr/local/java/jre/bin/:&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		Place Sun jdk 1.2.2 win32 include files in a known location.&lt;br /&gt;
&lt;br /&gt;
			$ mkdir /home/jarvi/win32java&lt;br /&gt;
			$ cp -r /mnt/win98//java/include /home/jarvi/win32java&lt;br /&gt;
&lt;br /&gt;
			If you are developing win32 support you may want to&lt;br /&gt;
			export the location to make the config script&lt;br /&gt;
			non interactive&lt;br /&gt;
&lt;br /&gt;
			$ export WIN32INCLUDE=/home/jarvi/tools/win32-include&lt;br /&gt;
&lt;br /&gt;
		run configure to generate a Makefile&lt;br /&gt;
&lt;br /&gt;
			$ cd /home/jarvi/rxtx-*&lt;br /&gt;
			$ mkdir build&lt;br /&gt;
			$ cd build&lt;br /&gt;
			$ ../configure --target=i386-mingw32  \&lt;br /&gt;
				--host=i386-redhat-linux&lt;br /&gt;
&lt;br /&gt;
		build the class files and dll.&lt;br /&gt;
&lt;br /&gt;
			$ make&lt;br /&gt;
&lt;br /&gt;
		the files will be located in&lt;br /&gt;
&lt;br /&gt;
			rxtx-*/build/...&lt;br /&gt;
&lt;br /&gt;
		If you're looking at rxtx as an example of cross-compiling you &lt;br /&gt;
		may be interested in looking at the examples provided at:&lt;br /&gt;
&lt;br /&gt;
			ftp.xraylith.wisc.edu&lt;br /&gt;
			/pub/khan/gnu-win32/mingw32/misc/java-jni-examples.zip&lt;br /&gt;
&lt;br /&gt;
=== Building with Eclipse/CDT ===&lt;br /&gt;
These builds instructions currently depend on a [http://www.codeskin.com/pubsvn/rxtx/tags/rxtx-2.1-7r2/Makefile makefile] available from CodeSkin.&lt;br /&gt;
&lt;br /&gt;
* Install Eclipse with CDT and Subclipse. Subclipse is the eclipse interface to subversion and instructions for installing it are at http://subclipse.tigris.org/install.html&lt;br /&gt;
* Install MinGW&lt;br /&gt;
* In Eclipse, select &amp;quot;New Project &amp;gt; Checkout Projects from SVN&amp;quot; and choose this repository location: http://www.codeskin.com/pubsvn/rxtx/tags/rxtx-2.1-7r2.&lt;br /&gt;
* Check out as a &amp;quot;project configured using the New Project Wizard&amp;quot; and choose &amp;quot;Java Project&amp;quot;.&lt;br /&gt;
* Once the project has been created, right-click on the project, select &amp;quot;new&amp;gt;other&amp;gt;Convert to a C/C++ Make Project&amp;quot;&lt;br /&gt;
* Right-click on project again and select &amp;quot;properties&amp;gt;C/C++Build&amp;quot; and change &amp;quot;Build command&amp;quot; to&lt;br /&gt;
 C:\MinGW\bin\mingw32-make&lt;br /&gt;
* Finally, hit &amp;quot;Build All&amp;quot;, which should create RXTXcomm.jar and rxtxSerial.dll&lt;br /&gt;
&lt;br /&gt;
== Installing Binaries ==&lt;br /&gt;
&lt;br /&gt;
To do...&lt;br /&gt;
&lt;br /&gt;
Consider merging with [[Installation for Windows]].&lt;br /&gt;
&lt;br /&gt;
== External References ==&lt;br /&gt;
&lt;br /&gt;
Follows are some links that might be useful:&lt;br /&gt;
&lt;br /&gt;
* http://www.codeskin.com/c2oooProg_faq.html#rxtx&lt;br /&gt;
* http://www.codeskin.com/pubsvn/rxtx/tags/rxtx-2.1-7r2/Makefile&lt;/div&gt;</summary>
		<author><name>Bonasta</name></author>	</entry>

	</feed>