NDK build error with Cygwin.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

NDK build error with Cygwin.

Robert Tattorn
I am trying to build a shared library for Android from the C++ source files I got. I have setup and configured NDK with Cygwin, and set up my project files correctly. When I run cmd by opening cygwin.bat file and invoking ndk-build, I get these error messages:

/bin/sh: python: command not found
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
[arm64-v8a] Compile++      : b3d <= 3ds.cpp
clang++.exe: error: argument to '-o' is missing (expected 1 value)
clang++.exe: error: no such file or directory: 'aarch64-none-linux-android21'
clang++.exe: error: no input files

What could be the problem? Is it in my source code?

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/aaf8d42f-f7ec-47ce-bd1f-178970e3b31an%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: NDK build error with Cygwin.

Dan Albert
Don't use cygwin to run ndk-build. Use ndk-build.cmd.

On Tue, Nov 10, 2020 at 12:09 PM 'Robert Tattorn' via android-ndk <[hidden email]> wrote:
I am trying to build a shared library for Android from the C++ source files I got. I have setup and configured NDK with Cygwin, and set up my project files correctly. When I run cmd by opening cygwin.bat file and invoking ndk-build, I get these error messages:

/bin/sh: python: command not found
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
[arm64-v8a] Compile++      : b3d <= 3ds.cpp
clang++.exe: error: argument to '-o' is missing (expected 1 value)
clang++.exe: error: no such file or directory: 'aarch64-none-linux-android21'
clang++.exe: error: no input files

What could be the problem? Is it in my source code?

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/aaf8d42f-f7ec-47ce-bd1f-178970e3b31an%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhv3EV2Oub-09rGgycPUQZncameTmrpUU8meK7LzdmJs6A%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: NDK build error with Cygwin.

Alias R. Cummins
In reply to this post by Robert Tattorn
Could be anything. My advice is to avoid cygwin and build it on a linux VM

On Tue, 10 Nov 2020 at 21:09, 'Robert Tattorn' via android-ndk <[hidden email]> wrote:
I am trying to build a shared library for Android from the C++ source files I got. I have setup and configured NDK with Cygwin, and set up my project files correctly. When I run cmd by opening cygwin.bat file and invoking ndk-build, I get these error messages:

/bin/sh: python: command not found
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
[arm64-v8a] Compile++      : b3d <= 3ds.cpp
clang++.exe: error: argument to '-o' is missing (expected 1 value)
clang++.exe: error: no such file or directory: 'aarch64-none-linux-android21'
clang++.exe: error: no input files

What could be the problem? Is it in my source code?

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/aaf8d42f-f7ec-47ce-bd1f-178970e3b31an%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAP5h4q8MYHnZ_QURSu5RSDJH3TaHWxUG_cE%2BnPmFJtpPYX6Crg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: NDK build error with Cygwin.

Robert Tattorn
Ok, I just used commandline and when trying to build. I get these errors:
error: use of undeclared identifier 'GL_FOG'
error: use of undeclared identifier 'GL_FOG_MODE'
error: use of undeclared identifier 'GL_FOG_START'
error: use of undeclared identifier 'glOrtho'

and some others. I tried everything. I used #include <GLES2/gl2.h>
I even added this in Android.mk:  LOCAL_LDLIBS :=  -llog -landroid -lEGL  -lGLESv2

But still gives these errors. What could be wrong?
On Thursday, 12 November 2020 at 02:24:41 UTC+3 [hidden email] wrote:
Could be anything. My advice is to avoid cygwin and build it on a linux VM

On Tue, 10 Nov 2020 at 21:09, 'Robert Tattorn' via android-ndk <[hidden email]> wrote:
I am trying to build a shared library for Android from the C++ source files I got. I have setup and configured NDK with Cygwin, and set up my project files correctly. When I run cmd by opening cygwin.bat file and invoking ndk-build, I get these error messages:

/bin/sh: python: command not found
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
[arm64-v8a] Compile++      : b3d <= 3ds.cpp
clang++.exe: error: argument to '-o' is missing (expected 1 value)
clang++.exe: error: no such file or directory: 'aarch64-none-linux-android21'
clang++.exe: error: no input files

What could be the problem? Is it in my source code?

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/aaf8d42f-f7ec-47ce-bd1f-178970e3b31an%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/a09aba20-278e-4ab5-816c-4e1f63497c53n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: NDK build error with Cygwin.

Robert Tattorn
Ok, I've seen the problem. The library is using desktop OpenGL version and some identifiers are not available in OpenGL-ES.

On Thursday, 12 November 2020 at 11:11:40 UTC+3 Robert Tattorn wrote:
Ok, I just used commandline and when trying to build. I get these errors:
error: use of undeclared identifier 'GL_FOG'
error: use of undeclared identifier 'GL_FOG_MODE'
error: use of undeclared identifier 'GL_FOG_START'
error: use of undeclared identifier 'glOrtho'

and some others. I tried everything. I used #include <GLES2/gl2.h>
I even added this in Android.mk:  LOCAL_LDLIBS :=  -llog -landroid -lEGL  -lGLESv2

But still gives these errors. What could be wrong?
On Thursday, 12 November 2020 at 02:24:41 UTC+3 [hidden email] wrote:
Could be anything. My advice is to avoid cygwin and build it on a linux VM

On Tue, 10 Nov 2020 at 21:09, 'Robert Tattorn' via android-ndk <[hidden email]> wrote:
I am trying to build a shared library for Android from the C++ source files I got. I have setup and configured NDK with Cygwin, and set up my project files correctly. When I run cmd by opening cygwin.bat file and invoking ndk-build, I get these error messages:

/bin/sh: python: command not found
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
make: python: No such file or directory
[arm64-v8a] Compile++      : b3d <= 3ds.cpp
clang++.exe: error: argument to '-o' is missing (expected 1 value)
clang++.exe: error: no such file or directory: 'aarch64-none-linux-android21'
clang++.exe: error: no input files

What could be the problem? Is it in my source code?

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/aaf8d42f-f7ec-47ce-bd1f-178970e3b31an%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/e955527e-6f5f-4800-9d1f-c120ecdcbf32n%40googlegroups.com.