zbraniecki / intl-measurements

Measurements of various intl approaches
4 stars 3 forks source link

How do you set your ICU path? #5

Open sffc opened 4 years ago

sffc commented 4 years ago

When I run cargo bench I get:

          /usr/bin/ld: /home/sffc/projects/intl-measurements/unic/normalize/target/release/deps/libnormalize-4b2f8ece898d8218.rlib(normalize-4b2f8ece898d8218.normalize.55ssg3os-cgu.4.rcgu.o): in function `normalize::icu':
          normalize.55ssg3os-cgu.4:(.text._ZN9normalize3icu17h07e0c5201c9d9dd3E+0x10): undefined reference to `unorm2_normalize_67'
          collect2: error: ld returned 1 exit status

Setting LD_LIBRARY_PATH doesn't seem to help.

I don't have ICU installed globally because I do a lot of ICU development and it's confusing when I have a global version that conflicts with my development version.

sffc commented 4 years ago

All I can seem to find that might address this problem is:

https://doc.rust-lang.org/cargo/reference/build-scripts.html

It suggests adding a build.rs file with the linker flags in it. However, I assume that you did not need to do this, since there is no build.rs file checked in. Are you aware of a cargo flag or environment variable?