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

Sample code compile error: 'unicode/ucsdet.h' file not found #102

Closed
honcheng opened this issue Jun 18, 2013 · 23 comments
Closed

Sample code compile error: 'unicode/ucsdet.h' file not found #102

honcheng opened this issue Jun 18, 2013 · 23 comments

Comments

@honcheng
Copy link
Contributor

Does not seem like this problem is affecting anyone else, so it could be my Xcode configuration.

This looks like an external library, but I can't find how it's linked to the project.

@dinhvh
Copy link
Member

dinhvh commented Jun 19, 2013

It should usually be retrieved in mailcore2/Externals first time you build it, in icu4c folder.

@bitmason
Copy link

I'm seeing the same error, building for the first time.

@dinhvh
Copy link
Member

dinhvh commented Jun 19, 2013

What's the content of mailcore2/Externals folder?

@bitmason
Copy link

$ cd Externals
$ find . -iname ucsdet.h -print
./builds/workdir/20130618224120/src/icu/source/i18n/unicode/ucsdet.h
./builds/workdir/20130618224120/tmp/crossbuild/icu4c-x86_64/icu/source/i18n/unicode/ucsdet.h
./builds/workdir/20130618225441/src/icu/source/i18n/unicode/ucsdet.h
./builds/workdir/20130618225441/tmp/crossbuild/icu4c-x86_64/icu/source/i18n/unicode/ucsdet.h
./builds/workdir/20130618232341/src/icu/source/i18n/unicode/ucsdet.h
./builds/workdir/20130618232341/tmp/crossbuild/icu4c-x86_64/icu/source/i18n/unicode/ucsdet.h

@dinhvh
Copy link
Member

dinhvh commented Jun 19, 2013

Strange that it's building icu. It should grab the prebuilt from https://github.com/MailCore/mailcore2-deps
Could you grab them manually?

@dinhvh
Copy link
Member

dinhvh commented Jun 19, 2013

or could you remove mailcore/Externals/prebuilt and retry to build mailcore?

@bitmason
Copy link

Okay, I removed prebuilt and now the build works. Thanks!

@dinhvh dinhvh closed this as completed Jun 21, 2013
@honcheng
Copy link
Contributor Author

Thanks. It works for me as well after removing prebuilt

@honcheng
Copy link
Contributor Author

This problem seems to come back again every time I clone the project. Clearing the prebuilt folder doesn't always fix the problem. Anything I can do to fix this permanently?

@dinhvh
Copy link
Member

dinhvh commented Jun 25, 2013

Can you show me the content of mailcore2/Externals?
I changed the build system yesterday.
It might have broken something.

Hoa V. Dinh

On Tuesday, June 25, 2013 at 7:37 AM, honcheng wrote:

This problem seems to come back again every time I clone the project. Clearing the prebuilt folder doesn't always fix the problem. Anything I can do to fix this permanently?


Reply to this email directly or view it on GitHub (#102 (comment)).

@honcheng
Copy link
Contributor Author

Not sure how much info you need, so I printed out everything
http://d.pr/f/vAg4

On 25 Jun, 2013, at 10:49 PM, DINH Viêt Hoà [email protected] wrote:

Can you show me the content of mailcore2/Externals?
I changed the build system yesterday.
It might have broken something.

Hoa V. Dinh

On Tuesday, June 25, 2013 at 7:37 AM, honcheng wrote:

This problem seems to come back again every time I clone the project. Clearing the prebuilt folder doesn't always fix the problem. Anything I can do to fix this permanently?


Reply to this email directly or view it on GitHub (#102 (comment)).


Reply to this email directly or view it on GitHub.

@dinhvh
Copy link
Member

dinhvh commented Jun 25, 2013

Are you at this commit on mailcore2?

commit db2597c
Author: Hoa V. DINH [email protected]
Date: Tue Jun 25 01:46:48 2013 -0700

Fixed issue when creating symbolic links while links already exist.

Did you
Could you try to go in mailcore2/scripts and try to run this scripts manually?
$ ./prepare-icu4c-ios.sh
and let me know what's the output.

Hoà V. Dinh

On Tuesday, June 25, 2013 at 8:24 AM, honcheng wrote:

Not sure how much info you need, so I printed out everything
http://d.pr/f/vAg4

On 25 Jun, 2013, at 10:49 PM, DINH Viêt Hoà <[email protected] (mailto:[email protected])> wrote:

Can you show me the content of mailcore2/Externals?
I changed the build system yesterday.
It might have broken something.

Hoa V. Dinh

On Tuesday, June 25, 2013 at 7:37 AM, honcheng wrote:

This problem seems to come back again every time I clone the project. Clearing the prebuilt folder doesn't always fix the problem. Anything I can do to fix this permanently?


Reply to this email directly or view it on GitHub (#102 (comment)).


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub (#102 (comment)).

@honcheng
Copy link
Contributor Author

Yup, I'm at that commit.

Here's the result.
http://d.pr/n/L7hQ

It's strange. It compiles fine after I run the script, so I did another test again.
I re-cloned the project in a different directory, compile the Xcode project and it fails. Then I run the script, try Xcode and it works.

On 25 Jun, 2013, at 11:26 PM, DINH Viêt Hoà [email protected] wrote:

Are you at this commit on mailcore2?

commit db2597c
Author: Hoa V. DINH [email protected]
Date: Tue Jun 25 01:46:48 2013 -0700

Fixed issue when creating symbolic links while links already exist.

Did you
Could you try to go in mailcore2/scripts and try to run this scripts manually?
$ ./prepare-icu4c-ios.sh
and let me know what's the output.

Hoà V. Dinh

On Tuesday, June 25, 2013 at 8:24 AM, honcheng wrote:

Not sure how much info you need, so I printed out everything
http://d.pr/f/vAg4

On 25 Jun, 2013, at 10:49 PM, DINH Viêt Hoà <[email protected] (mailto:[email protected])> wrote:

Can you show me the content of mailcore2/Externals?
I changed the build system yesterday.
It might have broken something.

Hoa V. Dinh

On Tuesday, June 25, 2013 at 7:37 AM, honcheng wrote:

This problem seems to come back again every time I clone the project. Clearing the prebuilt folder doesn't always fix the problem. Anything I can do to fix this permanently?


Reply to this email directly or view it on GitHub (#102 (comment)).


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub (#102 (comment)).


Reply to this email directly or view it on GitHub.

@vinnybad
Copy link

had the same issue, removing prebuilt worked for me too.

@dvanwinkle
Copy link

Had the same issue as well. Removing prebuilt worked for me too.

Could this be added to a script to remove that folder?

@cl7
Copy link

cl7 commented Sep 6, 2014

Removing prebuilt does not work for me. The folder is generated again after I remove it. It was the same error 'unicaode/ucsdet' file not found' everytime I built it. I tried to manually replace the prebuild folder from the link above, it did not work either. Thanks in advance.

@dinhvh
Copy link
Member

dinhvh commented Sep 6, 2014

remove mailcore2/Externals.

@GabrielYeah
Copy link

Removing prebuilt or Externals does not work for me. I tried running the ./prepare-icu4c-ios.sh script manually, and still cannot compile. I am running Xcode 6 GM on OS X 10.10. Can this issue be related to the OS and Xcode version? Thanks in advance.

@dinhvh
Copy link
Member

dinhvh commented Sep 17, 2014

What happens when you run: ./get-prebuilt.sh ?

@GabrielYeah
Copy link

No information was shown in the terminal, and the project could still not compile.

@dinhvh
Copy link
Member

dinhvh commented Sep 17, 2014

It should fetch the repository https://github.com/MailCore/mailcore2-deps
Maybe remove mailcore2/scripts/prebuilt.list before running the script.

@GabrielYeah
Copy link

I removed prebuilt.list and ran the ./get-prebuilt.sh. It did fetch something from the server. But it can still not resolve the compiling error.. By the way, is it possible to use CocoaPods to integrate mailcore2?

One thing I forgot to mention yesterday is that after I ran the ./prepare-icu4c-ios.sh, the last info shown in terminal was 'SDK not found'. Could that be related to the problem?

@dinhvh
Copy link
Member

dinhvh commented Sep 21, 2014

Do you work on a fork?
prepare-icu4c-ios.sh should not run in that log because it shouldn't try to build it and use the prebuilt binaries that were downloaded.

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

No branches or pull requests

7 participants