[liblouis-liblouisxml] Re: Problem calling lou_translateString

  • From: Christian Egli <christian.egli@xxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 05 Mar 2020 08:14:45 +0100

Hi Yitao

Yitao He writes:

Currently I am stuck with my project. I tried to call
lou_translateString as the function translate_input does, but errors
like “Undefined symbols for architecture x86-64: “__lou_extParseChars”
“showed up.

It's hard to tell what the problem is, but it seems that the linker
doesn't find the symbol, so there must be a problem with how you set up
your linking process. I would guess that this has little to do with
liblouis but more generally with building C source code.

I tried to call translate_input in another c script and included
lou_translate.c, but there is always fatal error : ‘config.h’ file not
found. I don’t know how to fix this.

I haven't looked at the source but I would assume that lou_translate.c
needs config.h for things such as the version number, the package
maintainer, etc. Your program does not need that information, so there
is no need to include config.h.

You need to make sure you have the library installed somewhere where
your linker can find it and then all you need to include is probably
liblouis.h.

I admit that I told you to look at lou_translate.c for an example. With
regards to building from the library this is probably not such a great
example, sorry.

Could you once you are done write up how you did it? We could add it to
our wiki or as an example in the docs, thanks.

Hope that helps
Christian



Best wishes
Yitao

On Mar 4, 2020, at 4:03 AM, Bert Frees 
<bertfrees@xxxxxxxxx<mailto:bertfrees@xxxxxxxxx>> wrote:

Hello Yitao.

If you send print screen images to a list with blind people you won't get 
much response.

From the error message this looks like a problem in the build script rather 
than the code itself.


Op di 3 mrt. 2020 om 21:24 schreef Yitao He 
<he308@xxxxxxxxxx<mailto:he308@xxxxxxxxxx>>:

Hi,

I tried to use lou_translateString and there are errors as shown below.
I have no idea what was wrong. Please help.

Best wishes
Yitao
<Image 2-27-20 at 4.12 PM.jpg>
<Image 2-27-20 at 4.13 PM.jpg>


--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland
For a description of the software, to download it and links to
project pages go to http://liblouis.org

Other related posts: