[BRLTTY] Compilation problems on Windows

Samuel Thibault samuel.thibault at ens-lyon.org
Mon May 12 19:17:45 EDT 2014


Siddharth, le Wed 07 May 2014 16:07:39 +0530, a écrit :
>  2. Received errors - 'undefined reference to _imp__pthread_key_create' on
>     make. I figured it was because the '-lpthread' flag was included in gcc and
>     resolved it by updating this line to Bindings/Python/setup.py.in : 
>     libraries = ["brlapi","pthread"],

Yes, I thought I had sent the patch to Dave, but I can't find the mail
again. Dave, could you apply the attached patch?

>  3. 'make' compiles fine now, but 'make install' now gives the following error:
> 
> /bin/install: cannot open `../Tables/sl.ttb' for reading: No such file or
> directory

That one is odd.  I remember having the same, it looks like a bug in
mingw actually, since the files really are there.

FTR, the command is

/usr/bin/install -c -m 644 ../Tables/*.tt[bi] /tmp/foobar/etc/brltty

so seeing a file and then not seeing it is quite questionable for an
operating system :)

Samuel
-------------- next part --------------
Index: brltty-4.5/Bindings/Python/setup.py.in
===================================================================
--- brltty-4.5.orig/Bindings/Python/setup.py.in
+++ brltty-4.5/Bindings/Python/setup.py.in
@@ -25,7 +25,7 @@ if __name__ == "__main__":
         sources = ["brlapi.auto.c","@srcdir@/bindings.c"],
         include_dirs = ["@builddir@", "@srcdir@", "./@top_builddir@/Programs", "./@top_srcdir@/Programs", "./@top_builddir@/", "./@top_srcdir@/"],
         library_dirs = ["./@top_builddir@/Programs"],
-        libraries = ["brlapi"],
+        libraries = ["brlapi", "pthread"],
         language = "c",
         define_macros = [],
         extra_compile_args = "@CYTHON_CFLAGS@".split())


More information about the BRLTTY mailing list