zw3rk / hs-android-helloworld

Hello World Android application with Haskell lib
3 stars 0 forks source link

[Q] Depends on 3rd-part-lib ? #3

Closed Guang1234567 closed 5 years ago

Guang1234567 commented 5 years ago

Hello dev:

 aarch64-linux-android-ghc -fPIC -v \                                              
  -package regex-posix zib \
  -L/$HOME/dev_kit/haskell_sdk/ghc-build-scripts/dist/libiconv_prefix/aarch64-linux-android/lib \
  -staticlib -liconv -lcharset \
  -o ./hs-libs/arm64-v8a/libhs.a \
  ./src/main/hs/Lib.hs 

Glasgow Haskell Compiler, Version 8.6.5, stage 1 booted by GHC version 8.6.4
Using binary package database: /Users/lihanguang/dev_kit/haskell_sdk/ghc-8.6.5-20190531-aarch64-linux-android/lib/aarch64-linux-android-ghc-8.6.5/package.conf.d/package.cache
package flags [-package regex-posix{package regex-posix True ([])}]
loading package database /Users/lihanguang/dev_kit/haskell_sdk/ghc-8.6.5-20190531-aarch64-linux-android/lib/aarch64-linux-android-ghc-8.6.5/package.conf.d
<command line>: cannot satisfy -package regex-posix
    (use -v for more information)

my lib want to depends on regex-posix (3rd-part-lib), but android-ghc compiler can find it. Could you give some idea or blog?