-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
190 lines (178 loc) · 10.5 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
########################################################################
# 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
#