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

Compile with icu ? #32

Open
mhf-ir opened this issue Oct 4, 2019 · 7 comments
Open

Compile with icu ? #32

mhf-ir opened this issue Oct 4, 2019 · 7 comments

Comments

@mhf-ir
Copy link

mhf-ir commented Oct 4, 2019

Could be php wasm compile with icu for using awesome php intl library in client side ?

@Dexus
Copy link

Dexus commented Dec 9, 2019

@oraoto can you please share your configs and or other informations? i can't get it work to compile or run the configure part. because it's always say

checking for icu-uc >= 50.1 icu-io icu-i18n... no
configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:

No package 'icu-uc' found
No package 'icu-io' found
No package 'icu-i18n' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ICU_CFLAGS
and ICU_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

but I run only your git repo and there is nothing changed yet

@oraoto
Copy link
Owner

oraoto commented Dec 10, 2019

@Dexus Sorry, icu doesn’t compile yet. I should remove --enable-intl in build.sh

@Dexus
Copy link

Dexus commented Dec 10, 2019

@oraoto okay, i found a way to do it.
Will create a PR in the next day's will test a bit and then you will get the PR.

@Goddard
Copy link

Goddard commented Dec 16, 2019

Awesome thanks, running into this as well.

@Dexus
Copy link

Dexus commented Dec 18, 2019

Hey, i would like to give a small update:
It looks like it works now to compile it. But will need a bit more investigation. But it makes hope, that it will work in the near future.

icu_pib

@Goddard
Copy link

Goddard commented Dec 18, 2019

What version of the emsdk are you using? I noticed it worked fine when using version 1.39.0, but the latest as 3 days ago failed.

I saw it had something to do with emar instead of emcc or something? I played with it a little but decide to just use a slightly older version and it worked.

@Dexus
Copy link

Dexus commented Dec 19, 2019

I use the latest emsdk provided via https://github.com/trzecieu/emscripten-docker (I use the Ubuntu version).

my problem is that i don't get the ICU symbols when i compile it at last...

I compile all libs (libxml2, libxslt, ICU) myself, and i see that it use the icu 65.1 but it does not get the symbols yet, same as with the default system ICU62.1 that comes with emsdk as port (you need to build you own with the same version to compile it correctly via -s USE_ICU=1 but again it dont find the symbols.

I will update my fork, tomorrow so you can have a look and maybe you have other ideas.

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

4 participants