Aporia icon indicating copy to clipboard operation
Aporia copied to clipboard

could not import: iconv_open

Open Iancurtis opened this issue 9 years ago • 19 comments

I compiled the aporia successfully, but could not run it. could not import: iconv_open libiconv had been installed

Iancurtis avatar May 20 '15 09:05 Iancurtis

Which operating system?

dom96 avatar May 20 '15 09:05 dom96

mac osx 10.10.3

Iancurtis avatar May 20 '15 09:05 Iancurtis

oh. That's a tough OS to get Aporia working on. You just need to install the correct GTK dependencies, GTK includes the correct libiconv. Afraid I can't help much here as I don't have a Mac.

dom96 avatar May 20 '15 09:05 dom96

I'll try it on ubuntu tomorrow.

Iancurtis avatar May 20 '15 10:05 Iancurtis

Hoping to create a Mac bundle to make running Aporia on Mac OS X easier, will update if I manage to do so successfully.

dom96 avatar Mar 25 '16 16:03 dom96

Unfortunately, same problem in FreeBSD-11-p2.

How to set high debug level to understand the problem?

kandeshvari avatar Dec 04 '16 21:12 kandeshvari

I too have the same problem on FreeBSD-11-p2, using the newly submitted, but as yet uncommitted nimble port.

nealie avatar Dec 15 '16 14:12 nealie

Wish I could help, but I don't have FreeBSD to test Aporia on.

dom96 avatar Dec 15 '16 19:12 dom96

@dom96 try it in qemu or give me a patch - I can test it.

kandeshvari avatar Dec 15 '16 19:12 kandeshvari

I'm afraid I don't have the time to do that. Maybe you could investigate?

dom96 avatar Dec 15 '16 19:12 dom96

I have time, but don't have skills in nim debugging ) Give me plz a point to start from.

kandeshvari avatar Dec 15 '16 20:12 kandeshvari

I'm not sure whether this is a Nim problem. Do other GTK (version 2) apps work on your machine?

dom96 avatar Dec 15 '16 20:12 dom96

Nah. I'm wrong. This module is to blame for this error: https://github.com/nim-lang/Nim/blob/devel/lib/pure/encodings.nim

dom96 avatar Dec 15 '16 20:12 dom96

Perhaps the API is different on FreeBSD?

dom96 avatar Dec 15 '16 20:12 dom96

The libiconv.so DLL simply doesn't have the iconv_open function, you need to figure out why.

dom96 avatar Dec 15 '16 20:12 dom96

ok. I'll check it. Thanks.

kandeshvari avatar Dec 15 '16 20:12 kandeshvari

Any news about this problem? FreeBSD 10.3-RELEASE-p5 the same problem. nim 0.16.0 & nimble 0.8.2 installed from ports.

Peter2121 avatar May 03 '17 15:05 Peter2121

$ nm -D libiconv.so.2.5.1 w _Jv_RegisterClasses U ___mb_cur_max 00000000002f99ac A __bss_start w __cxa_finalize U __error U __isthreaded U __srget U __stack_chk_fail U __stack_chk_guard 00000000002f99ac A _edata 00000000002f99e8 A _end 000000000001a478 T _fini 0000000000002a30 T _init 00000000002f99a8 D _libiconv_version U abort U close U fclose U fdopen U free U fscanf U getc U getenv 0000000000004b30 T iconv_canonicalize 00000000000043a0 T libiconv 00000000000043d0 T libiconv_close 0000000000002ec0 T libiconv_open 00000000000043e0 T libiconv_open_into 000000000001a270 T libiconv_set_relocation_prefix 0000000000004830 T libiconvctl 0000000000004940 T libiconvlist U malloc U mbrtowc U memcmp U memcpy U nl_langinfo U open U qsort U realloc U strcmp U strcpy U strlen U strncmp U ungetc U wcrtomb

Peter2121 avatar May 03 '17 15:05 Peter2121