Page 1 of 1

Problem compiling on MacOS X Mojave

Posted: Wed Jan 30, 2019 10:09 pm
by larryp
I get this error message:

Code: Select all

[ 21%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Win32.c.o
[ 22%] Linking C shared library ../../../build/libmayaqua.dylib
Undefined symbols for architecture x86_64:
  "_libiconv", referenced from:
      _UnixStrToUni in Internat.c.o
      _UnixUniToStr in Internat.c.o
  "_libiconv_close", referenced from:
      _InitInternational in Internat.c.o
      _IconvFreeInternal in Internat.c.o
  "_libiconv_open", referenced from:
      _InitInternational in Internat.c.o
      _IconvWideToStrInternal in Internat.c.o
      _IconvStrToWideInternal in Internat.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../build/libmayaqua.dylib] Error 1
make[1]: *** [src/Mayaqua/CMakeFiles/mayaqua.dir/all] Error 2
make: *** [all] Error 2
This used to compile.

Re: Problem compiling on MacOS X Mojave

Posted: Thu Mar 28, 2019 5:18 am
by thisjun
What version of glibc do you use?
In some glibc version, libiconv may be required additionally.

Re: Problem compiling on MacOS X Mojave

Posted: Mon Jul 22, 2019 5:46 pm
by jayko
did you manage to solve it larryp?

Re: Problem compiling on MacOS X Mojave

Posted: Mon Jul 22, 2019 5:51 pm
by sky59
I changed the libiconv name for android compilation, try to change it