Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile on Mac #1

Closed
GoogleCodeExporter opened this issue Jul 9, 2015 · 6 comments
Closed

Doesn't compile on Mac #1

GoogleCodeExporter opened this issue Jul 9, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

I've tried to compile the example code on my Mac and I got these errors:


gcc -I. -L. -o example example.cc -lcld
In file included from encodings/compact_lang_det/compact_lang_det.h:52,
                 from example.cc:2:
./encodings/compact_lang_det/win/cld_utf8statetable.h:10:38: error: 
util/utf8/utf8statetable.h: No such file or directory
In file included from example.cc:2:
encodings/compact_lang_det/compact_lang_det.h:104: error: ISO C++ forbids 
declaration of ‘UTF8PropObj’ with no type
encodings/compact_lang_det/compact_lang_det.h:104: error: expected ‘;’ 
before ‘*’ token
example.cc: In function ‘int main(int, char**)’:
example.cc:49: error: ‘strlen’ was not declared in this scope


Any idea ?

Original issue reported on code.google.com by pers...@gmail.com on 23 Oct 2011 at 1:25

@GoogleCodeExporter
Copy link
Author

Ok, my bad sorry :)

Original comment by pers...@gmail.com on 23 Oct 2011 at 1:27

@GoogleCodeExporter
Copy link
Author

I also had to disable PPC arch target by doing this before running "python 
setup.py":

  export ARCHFLAGS="-arch x86_64"


Original comment by luc...@mikemccandless.com on 23 Oct 2011 at 7:22

@GoogleCodeExporter
Copy link
Author

Did you get this working?

Original comment by m...@mikemccandless.com on 26 Oct 2011 at 11:02

@GoogleCodeExporter
Copy link
Author

This works for me.

Original comment by luc...@mikemccandless.com on 15 Nov 2011 at 11:28

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

I'm on CentOS 5 and I'm getting the same issue as the OP.

As far as Google is concerned, utf8statetable.h doesn't seem to exist anywhere 
in the universe other than this project.  I've also checked the Chromium code 
base and it doesn't seem to be part of that either.

Original comment by theshock...@gmail.com on 16 Nov 2011 at 12:07

@GoogleCodeExporter
Copy link
Author

Right I've never found utf8statetable.h either -- that compilation error means 
somehow CLD_WINDOWS is failing to be defined.

Curiously, I this means that the CLD code was pulled out of something 
(toolbar?) and "hardwired" to the windows build for some reason.

Are you using the simple build.sh (it should be passing -DCLD_WINDOWS), or 
something else...?

Original comment by luc...@mikemccandless.com on 16 Nov 2011 at 12:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant