flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

errors building htmltotext via utils/install_dependencies.py #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run utils/install_dependecies.py 

What is the expected output? What do you see instead?

I get the following errors:

ERRORS:
src/utf8convert.cc: In function ‘void convert_to_utf8(std::string&, const
std::string&)’:
src/utf8convert.cc:64: error: invalid conversion from ‘const char**’ to
‘char**’
src/utf8convert.cc:64: error:   initializing argument 2 of ‘size_t
iconv(void*, char**, size_t*, char**, size_t*)’
error: command 'gcc' failed with exit status 1

(this is on a 64 bit ubuntu box - if that's relevant.)

Original issue reported on code.google.com by paul.x.r...@googlemail.com on 15 Jan 2008 at 12:54

GoogleCodeExporter commented 9 years ago
OK - changing ICONV_INPUT_TYPE from const char * to char * in define.h solves 
the
problem it seems.

Original comment by paul.x.r...@googlemail.com on 15 Jan 2008 at 1:32

GoogleCodeExporter commented 9 years ago
sorry - I mean config.h

Original comment by paul.x.r...@googlemail.com on 15 Jan 2008 at 1:37

GoogleCodeExporter commented 9 years ago
A related issue: I then get a message:

"/usr/bin/ld: cannot find -llibiconv" at link time. I'm not sure it's necessary 
to
explicitly add it - on this system at least. Commenting out 
'libraries=['libiconv']"
in setup.py makes the problem go away anyhow.

Also, extra_include_dirs and extra_library_dirs at the top of setup.py seem to 
need
to be lists.

Original comment by paul.x.r...@googlemail.com on 15 Jan 2008 at 1:49

GoogleCodeExporter commented 9 years ago
I think this is fixed now?? It builds OK on Windows, what about Mac/Linux?

Original comment by charliej...@gmail.com on 17 Jan 2008 at 2:59

GoogleCodeExporter commented 9 years ago
It's OK on linux now - I'll mark as fixed.

Original comment by paul.x.r...@googlemail.com on 18 Jan 2008 at 8:43