[BRLTTY] Accessing brlAPI from Client Application in Windows Environment

Siju Samuel sijusamueltech at gmail.com
Thu Aug 1 19:34:42 EDT 2013


Hi,

Please see the CLARIFICATION section.

>>From: Dave Mielke <dave at mielke.cc>
>>In file included from ./program.c:42:0:
>>./sys_windows.h:33:22: fatal error: ntstatus.h: No such file or directory
>>compilation terminated.

>This error, too, has already been resolved in a later revision.

>So, what you need to do is to update to the latest revision. That being
said,
>there's one more Windows build problem which still needs to be resolved.
You'll
>see it when async.c is being compiled. It's a complaint about the Windows
>function CancelIoEx() not being found, even though it really does exist.
For
>now, just comment out the call since it's in new code which isn't being
>actually executed yet.

CLARIFICATION
===============

Thanks for the response. I downloaded latest from svn and ./autogen in a
linux machine and got the code in windows/mingw environment. ( as  I could
not quickly install tcl/tk in mingw).  After making the code changes ran



1 ) mkwin c;/brlyty
It got stopped the execution in the middle.  Probably I have to modify the
mkwin based on the warning. Here I would like to check whether the
following warning is fine or not?

"-export-dynamic is not supported for PE targets, did you mean
--export-all-symbo
ls? :

---------------------
LOG  for mkwin
---------------------
configure: WARNING: no commonly used jar installation directory
./configure: line 7456: ${ac_cv_file_C__Program
Files_Java_jdk1_7_0_04_include_j
ni_h+:}: bad substitution
./configure: line 7461: test: C:\Program: binary operator expected
./configure: line 7464: ac_cv_file_C__Program: command not found
./configure: line 7467: Files_Java_jdk1_7_0_04_include_jni_h: command not
found
configure: WARNING: no commonly used jni installation directory
configure: WARNING: Java BrlAPI bindings not included
configure: WARNING: Cannot find ocamlc.
configure: WARNING: OCaml BrlAPI bindings not included
configure: WARNING: Cython compiler not found
configure: WARNING: Python BrlAPI bindings not included
configure: WARNING: Tcl configuration script not found: tclConfig.sh
configure: WARNING: Tcl packages directory not found
configure: WARNING: Tcl BrlAPI bindings not included
configure: WARNING: USB support not available on this platform
configure: WARNING: Bluetooth support not available on this platform
configure: WARNING: keyboard support not available on this platform
configure: WARNING: mount point support not available on this platform
configure: WARNING: mount file system support not available on this platform
configure: WARNING: options support not available on this platform
configure: WARNING: Libbraille package not found: /usr /usr/local
/usr/local/Lib
braille /usr/local/libbraille /opt/Libbraille /opt/libbraille
configure: WARNING: eSpeak package not found: /usr /usr/local
/usr/local/eSpeak
/usr/local/espeak /opt/eSpeak /opt/espeak
./async.c: In function 'cancelWindowsTransferOperation':
./async.c:300:9: warning: unused variable 'count' [-Wunused-variable]
./async.c:299:18: warning: unused variable 'function' [-Wunused-variable]
In file included from ./datafile.c:36:0:
./brldots.h: In function 'brlDotToNumber':
./brldots.h:63:3: warning: implicit declaration of function 'ffs'
[-Wimplicit-fu
nction-declaration]
./datafile.c: In function 'parseDataString':
./datafile.c:535:22: warning: variable 'name' set but not used
[-Wunused-but-set
-variable]
In file included from ./ttb_translate.c:28:0:
./brldots.h: In function 'brlDotToNumber':
./brldots.h:63:3: warning: implicit declaration of function 'ffs'
[-Wimplicit-fu
nction-declaration]
In file included from ./ctb_compile.c:31:0:
./brldots.h: In function 'brlDotToNumber':
./brldots.h:63:3: warning: implicit declaration of function 'ffs'
[-Wimplicit-fu
nction-declaration]
In file included from ./ctb_translate.c:35:0:
./brldots.h: In function 'brlDotToNumber':
./brldots.h:63:3: warning: implicit declaration of function 'ffs'
[-Wimplicit-fu
nction-declaration]
./kbd_none.c:19:2: warning: #warning keyboard monitor support not available
on t
his platform [-Wcpp]
In file included from ./brlapi_client.c:91:0:
./brlapi_common.h: In function 'brlapi_writeFile':
./brlapi_common.h:76:5: warning: missing braces around initializer
[-Wmissing-br
aces]
./brlapi_common.h:76:5: warning: (near initialization for
'overl.<anonymous>') [
-Wmissing-braces]
./brlapi_common.h: In function 'brlapi_readFile':
./brlapi_common.h:114:5: warning: missing braces around initializer
[-Wmissing-b
races]
./brlapi_common.h:114:5: warning: (near initialization for
'overl.<anonymous>')
[-Wmissing-braces]
./brlapi_client.c: In function 'tryHost':
./brlapi_client.c:444:22: warning: assignment makes integer from pointer
without
 a cast [enabled by default]
./brlapi_client.c:446:4: warning: comparison between pointer and integer
[enable
d by default]
Creating library file: implib.a
./braille.c:47:2: warning: #warning curses package either unspecified or
unsuppo
rted [-Wcpp]
./braille.c: In function 'readNamedPipe':
./braille.c:377:5: warning: missing braces around initializer
[-Wmissing-braces]

./braille.c:377:5: warning: (near initialization for 'overl.<anonymous>')
[-Wmis
sing-braces]
./braille.c: In function 'acceptNamedPipeConnection':
./braille.c:402:3: warning: missing braces around initializer
[-Wmissing-braces]

./braille.c:402:3: warning: (near initialization for 'overl.<anonymous>')
[-Wmis
sing-braces]
./braille.c: In function 'flushOutput':
./braille.c:651:5: warning: missing braces around initializer
[-Wmissing-braces]

./braille.c:651:5: warning: (near initialization for 'overl.<anonymous>')
[-Wmis
sing-braces]
In file included from ./brlapi_server.c:146:0:
./brlapi_common.h: In function 'brlapi_writeFile':
./brlapi_common.h:76:5: warning: missing braces around initializer
[-Wmissing-br
aces]
./brlapi_common.h:76:5: warning: (near initialization for
'overl.<anonymous>') [
-Wmissing-braces]
./brlapi_common.h: In function 'brlapi_readFile':
./brlapi_common.h:114:5: warning: missing braces around initializer
[-Wmissing-b
races]
./brlapi_common.h:114:5: warning: (near initialization for
'overl.<anonymous>')
[-Wmissing-braces]
./brlapi_server.c: In function 'establishSocket':
./brlapi_server.c:1846:5: warning: format '%d' expects argument of type
'int', b
ut argument 3 has type 'long int' [-Wformat]
./brlapi_server.c:1848:5: warning: format '%d' expects argument of type
'int', b
ut argument 3 has type 'long int' [-Wformat]
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
warning: -
-export-dynamic is not supported for PE targets, did you mean
--export-all-symbo
ls?
In file included from ./brltty-trtxt.c:31:0:
./brldots.h: In function 'brlDotToNumber':
./brldots.h:63:3: warning: implicit declaration of function 'ffs'
[-Wimplicit-fu
nction-declaration]
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
warning: -
-export-dynamic is not supported for PE targets, did you mean
--export-all-symbo
ls?
In file included from ./brltty-ttb.c:34:0:
./brldots.h: In function 'brlDotToNumber':
./brldots.h:63:3: warning: implicit declaration of function 'ffs'
[-Wimplicit-fu
nction-declaration]
./brltty-ttb.c: At top level:
./brltty-ttb.c:697:2: warning: #warning curses package either unspecified
or uns
upported [-Wcpp]
./brltty-ttb.c: In function 'editTable':
./brltty-ttb.c:1789:5: warning: pointer targets in passing argument 2 of
'GetCon
soleMode' differ in signedness [-Wpointer-sign]
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wincon.h:146:13:
note:
 expected 'PDWORD' but argument is of type 'long int *'
./brltty-ttb.c: At top level:
./brltty-ttb.c:1624:1: warning: 'doBrailleCommand' defined but not used
[-Wunuse
d-function]
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
warning: -
-export-dynamic is not supported for PE targets, did you mean
--export-all-symbo
ls?
In file included from ./brltty-ctb.c:39:0:
./brldots.h: In function 'brlDotToNumber':
./brldots.h:63:3: warning: implicit declaration of function 'ffs'
[-Wimplicit-fu
nction-declaration]
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
warning: -
-export-dynamic is not supported for PE targets, did you mean
--export-all-symbo
ls?
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:
warning: -
-export-dynamic is not supported for PE targets, did you mean
--export-all-symbo
ls?
../mkpot: line 66: /mingw/bin/xgettext: Bad file number
doxygen is not installed - BrlAPI reference documentation will not be made
Creating library file: implib.a
cp: cannot stat `Bindings/Python/dist/Brlapi-0.5.6.win32.exe': No such file
or d
irectory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mielke.cc/pipermail/brltty/attachments/20130801/9288b54a/attachment.html>


More information about the BRLTTY mailing list