0

I have PROJ4 library, succesfully compiled under cygwin and installed to /usr/local.

I'm trying to compile as:

$ arm-linux-androideabi-gcc -o conftest -mthumb temp.c -lproj -L/usr/local/lib -lproj -lz -lm -ldl

C:/dev/Android/android-ndk-r7c/android-8-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -lproj collect2: ld returned 1 exit status

What am I doing wrong?

Frederic Blase
  • 510
  • 1
  • 4
  • 15

2 Answers2

0

Try

$ arm-linux-androideabi-gcc -o conftest -mthumb temp.c /usr/local/lib/libproj.a -lz -lm -ldl
Gunther Piez
  • 29,760
  • 6
  • 71
  • 103
0

Well, the problem is that android-gcc doesn't understand cygwin path, so we need to use windows path:

$ arm-linux-androideabi-gcc -o conftest -mthumb temp.c -lproj -Lc:/path/to/lib -lproj -lz -lm -ldl

Frederic Blase
  • 510
  • 1
  • 4
  • 15