gphoto / libgphoto2-java

PRELIMINARY REPO DO NOT USE SERIOUSLY YET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

########################################################################
# NOTE:
#
#   You can find a quite old README for the 3rd-party version of the
#   SWIG based bindings below.
#
#   As of 2006-05, the gphoto2 team is integrating SWIG based bindings
#   into the libgphoto2 build system, but that work is not finished
#   yet.
#
#   For now, all bindings to libgphoto2 are considered alpha, i.e.
#   API and ABI may still change and break backward compatibility.
# 
########################################################################


This directory holds the files used by SWIG to generate bindings for
Java and other high-level languages such as C#, Perl, PHP, Python, Tcl
and others.

For more information on SWIG, see http://www.swig.org/

This file and these scripts focus on Java.  Other languages should be
simple since the SWIG interface file should be the same.  Note that
the SWIG wrapper libraries can only support one language at a time (at
least not without a lot more work), so if you compile for another
language you may want to create a separate directory for those files.

To build the Java bindings, first configure and build the libgphoto2
library. Then cd to the swig-java directory and run "make-swig-java.sh"

See the end of this file for a list of files that should be created...

copy the jni library to your jre/lib/i386 directory, such as:
cp -a libgphoto2_jni.so /opt/SUNWappserver/jdk/jre/lib/i386/

then you should be able to run the javatest.java file:
java -classpath swig-java:swig-java/swig-org-gphoto2.jar javatest

The two files, "libgphoto2_jni.so" and "swig-org-gphoto2.jar" (plus
the standard libgphoto2 install) should be all that you need to
include in your java project.


You should get a bunch of files like this:
swig
swig/org
swig/org/gphoto2
swig/org/gphoto2/CameraAbilities.class
swig/org/gphoto2/CameraAbilities.java
swig/org/gphoto2/_CameraAbilitiesList.class
swig/org/gphoto2/_CameraAbilitiesList.java
swig/org/gphoto2/_Camera.class
swig/org/gphoto2/_CameraFileInfoAudio.class
swig/org/gphoto2/_CameraFileInfoAudio.java
swig/org/gphoto2/_CameraFileInfo.class
swig/org/gphoto2/_CameraFileInfoFile.class
swig/org/gphoto2/_CameraFileInfoFile.java
swig/org/gphoto2/_CameraFileInfo.java
swig/org/gphoto2/_CameraFileInfoPreview.class
swig/org/gphoto2/_CameraFileInfoPreview.java
swig/org/gphoto2/CameraFilePath.class
swig/org/gphoto2/CameraFilePath.java
swig/org/gphoto2/_CameraFunctions.class
swig/org/gphoto2/_CameraFunctions.java
swig/org/gphoto2/_Camera.java
swig/org/gphoto2/_CameraList.class
swig/org/gphoto2/_CameraList_entry.class
swig/org/gphoto2/_CameraList_entry.java
swig/org/gphoto2/_CameraList.java
swig/org/gphoto2/CameraText.class
swig/org/gphoto2/CameraText.java
swig/org/gphoto2/_GPContext.class
swig/org/gphoto2/_GPContext.java
swig/org/gphoto2/gphoto2.class
swig/org/gphoto2/gphoto2Constants.class
swig/org/gphoto2/gphoto2Constants.java
swig/org/gphoto2/gphoto2.java
swig/org/gphoto2/gphoto2JNI.class
swig/org/gphoto2/gphoto2JNI.java
swig/org/gphoto2/_GPPort.class
swig/org/gphoto2/_GPPortInfo.class
swig/org/gphoto2/_GPPortInfo.java
swig/org/gphoto2/_GPPortInfoList.class
swig/org/gphoto2/_GPPortInfoList.java
swig/org/gphoto2/_GPPort.java
swig/org/gphoto2/_GPPortSettings.class
swig/org/gphoto2/_GPPortSettings.java
swig/org/gphoto2/_GPPortSettingsSerial.class
swig/org/gphoto2/_GPPortSettingsSerial.java
swig/org/gphoto2/_GPPortSettingsUSB.class
swig/org/gphoto2/_GPPortSettingsUSB.java
swig/org/gphoto2/SWIGTYPE_p__CameraFile.class
swig/org/gphoto2/SWIGTYPE_p__CameraFile.java
swig/org/gphoto2/SWIGTYPE_p__CameraFilesystem.class
swig/org/gphoto2/SWIGTYPE_p__CameraFilesystem.java
swig/org/gphoto2/SWIGTYPE_p__CameraPrivateCore.class
swig/org/gphoto2/SWIGTYPE_p__CameraPrivateCore.java
swig/org/gphoto2/SWIGTYPE_p__CameraPrivateLibrary.class
swig/org/gphoto2/SWIGTYPE_p__CameraPrivateLibrary.java
swig/org/gphoto2/SWIGTYPE_p__CameraWidget.class
swig/org/gphoto2/SWIGTYPE_p__CameraWidget.java
swig/org/gphoto2/SWIGTYPE_p_DIR.class
swig/org/gphoto2/SWIGTYPE_p_dirent.class
swig/org/gphoto2/SWIGTYPE_p_dirent.java
swig/org/gphoto2/SWIGTYPE_p_DIR.java
swig/org/gphoto2/SWIGTYPE_p_f_enum__unnamed18__p_q_const__char_p_q_const__char_va_list_p_void__void.class
swig/org/gphoto2/SWIGTYPE_p_f_enum__unnamed18__p_q_const__char_p_q_const__char_va_list_p_void__void.java
swig/org/gphoto2/SWIGTYPE_p_float.class
swig/org/gphoto2/SWIGTYPE_p_float.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_enum__unnamed8__p_CameraFilePath_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_enum__unnamed8__p_CameraFilePath_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum__unnamed9__p_struct__CameraFile_p_void_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_enum__unnamed9__p_struct__CameraFile_p_void_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_struct__CameraFileInfo_p_void_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_p_void_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_q_const__char_struct__CameraFileInfo_p_void_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraFile_p_void_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraFile_p_void_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_struct__CameraList_p_void_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__CameraFilesystem_p_q_const__char_p_void_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_CameraText_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_CameraText_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_p_struct__CameraWidget_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_p_struct__CameraWidget_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_struct__CameraFile_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_struct__CameraFile_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_struct__CameraWidget_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_struct__CameraWidget_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_struct__GPContext__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_p_struct__GPContext__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_unsigned_int_p_f_p_struct__Camera_p_struct__GPContext__int_p_void__unsigned_int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_unsigned_int_p_f_p_struct__Camera_p_struct__GPContext__int_p_void__unsigned_int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_unsigned_int_p_void__void.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__Camera_unsigned_int_p_void__void.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_float_p_q_const__char_va_list_p_void__unsigned_int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_float_p_q_const__char_va_list_p_void__unsigned_int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_p_q_const__char_va_list_p_void__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_p_q_const__char_va_list_p_void__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_p_q_const__char_va_list_p_void__void.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_p_q_const__char_va_list_p_void__void.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_p_void__int.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_p_void__int.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_p_void__void.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_p_void__void.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_unsigned_int_float_p_void__void.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_unsigned_int_float_p_void__void.java
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_unsigned_int_p_void__void.class
swig/org/gphoto2/SWIGTYPE_p_f_p_struct__GPContext_unsigned_int_p_void__void.java
swig/org/gphoto2/SWIGTYPE_p__GPPortPrivateCore.class
swig/org/gphoto2/SWIGTYPE_p__GPPortPrivateCore.java
swig/org/gphoto2/SWIGTYPE_p__GPPortPrivateLibrary.class
swig/org/gphoto2/SWIGTYPE_p__GPPortPrivateLibrary.java
swig/org/gphoto2/SWIGTYPE_p_int.class
swig/org/gphoto2/SWIGTYPE_p_int.java
swig/org/gphoto2/SWIGTYPE_p_p__CameraAbilitiesList.class
swig/org/gphoto2/SWIGTYPE_p_p__CameraAbilitiesList.java
swig/org/gphoto2/SWIGTYPE_p_p__Camera.class
swig/org/gphoto2/SWIGTYPE_p_p__CameraFile.class
swig/org/gphoto2/SWIGTYPE_p_p__CameraFile.java
swig/org/gphoto2/SWIGTYPE_p_p__CameraFilesystem.class
swig/org/gphoto2/SWIGTYPE_p_p__CameraFilesystem.java
swig/org/gphoto2/SWIGTYPE_p_p__Camera.java
swig/org/gphoto2/SWIGTYPE_p_p__CameraList.class
swig/org/gphoto2/SWIGTYPE_p_p__CameraList.java
swig/org/gphoto2/SWIGTYPE_p_p__CameraWidget.class
swig/org/gphoto2/SWIGTYPE_p_p__CameraWidget.java
swig/org/gphoto2/SWIGTYPE_p_p_char.class
swig/org/gphoto2/SWIGTYPE_p_p_char.java
swig/org/gphoto2/SWIGTYPE_p_p__GPPort.class
swig/org/gphoto2/SWIGTYPE_p_p__GPPortInfoList.class
swig/org/gphoto2/SWIGTYPE_p_p__GPPortInfoList.java
swig/org/gphoto2/SWIGTYPE_p_p__GPPort.java
swig/org/gphoto2/SWIGTYPE_p_time_t.class
swig/org/gphoto2/SWIGTYPE_p_time_t.java
swig/org/gphoto2/SWIGTYPE_p_unsigned_char.class
swig/org/gphoto2/SWIGTYPE_p_unsigned_char.java
swig/org/gphoto2/SWIGTYPE_p_unsigned_long.class
swig/org/gphoto2/SWIGTYPE_p_unsigned_long.java
swig/org/gphoto2/SWIGTYPE_p_va_list.class
swig/org/gphoto2/SWIGTYPE_p_va_list.java
swig/org/gphoto2/SWIGTYPE_p_void.class
swig/org/gphoto2/SWIGTYPE_p_void.java

#

About

PRELIMINARY REPO DO NOT USE SERIOUSLY YET


Languages

Language:Shell 100.0%