Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How build under android? #19

Closed
galek opened this issue Apr 25, 2017 · 12 comments
Closed

How build under android? #19

galek opened this issue Apr 25, 2017 · 12 comments

Comments

@galek
Copy link

galek commented Apr 25, 2017

Hi

I'm trying building in target for android under windows, using tegra-toolkit. how build it?

ndk-build returned "Could not find application project directory"

@galek
Copy link
Author

galek commented Apr 26, 2017

I'm installed msys(using mingw-get), but i got what include files not found (string.h)

@galek
Copy link
Author

galek commented Apr 26, 2017

@AlesBorovicka
Copy link
Contributor

Hi,
there is a readme - how to build android in:
https://github.com/NVIDIAGameWorks/PhysX-3.4/blob/master/PhysX_3.4/readme_android.html
You need to copy required stuff into externals and then setup needed env variables in order to use compilation scripts in the Tools/android-dev.

@galek
Copy link
Author

galek commented Apr 26, 2017

Borous, thanks for reply.
All 3dparty-libs alredy copied. (+variant with fixed makefile for latest TDK)

Using Helpers result:

Nick@Nick-ПК /d/projects/ngtech/Development/Externals/physx/Tools/android-dev
$ physx-make
/d/projects/ngtech/Development/Externals/physx/Source/compiler/android16 /d/proj
ects/ngtech/Development/Externals/physx/Tools/android-dev
Need a Config!
/d/projects/ngtech/Development/Externals/physx/Tools/android-dev
Nick@Nick-ПК /d/projects/ngtech/Development/Externals/physx/Tools/android-dev
$

if directrly call from compiler directory:

Nick@Nick-ПК /d/projects/ngtech/Development/Externals/physx/Source/compiler/andr
oid16
$ make $config -j4
PhysXCommon: compiling checked ./../../foundation/src/PsAllocator.cpp...
PhysXCommon: compiling checked ./../../foundation/src/PsAssert.cpp...
PhysXCommon: compiling checked ./../../foundation/src/PsErrorHandler.cpp...
PhysXCommon: compiling checked ./../../foundation/src/PsFastIPC.cpp...
In file included from ./../../../Include/foundation/PxAssert.h:20:0,
                 from ./../../foundation/src/PsAssert.cpp:13:
./../../../Include/foundation/Px.h:25:20: fatal error: string.h: No such file or
 directory
 #include <string.h>
                    ^
compilation terminated.
In file included from ./../../../Include/foundation/PxErrors.h:20:0,
                 from ./../../foundation/src/PsErrorHandler.cpp:13:
./../../../Include/foundation/Px.h:25:20: fatal error: string.h: No such file or
 directory
 #include <string.h>
                    ^
commake: p*** [build/PhysXCommon_checked/foundation/src/PsAssert.cpp.o] Error 1i
lmake: a*** Waiting for unfinished jobs....ti
on terminated.
In file included from ./../../../Include/foundation/PxAllocatorCallback.h:21:0,
                 from ./../../foundation/include/PsAllocator.h:17,
                 from ./../../foundation/src/PsAllocator.cpp:14:
./../../../Include/foundation/Px.h:25:20: fatal error: string.h: No such file or
 directory
 #include <string.h>
                    ^
make: c*** [build/PhysXCommon_checked/foundation/src/PsErrorHandler.cpp.o] Error
 1o
pilation terminated.
./../../foundation/src/PsFastIPC.cpp:13:19: fatal error: stdio.h: No such file o
r directory
 #include <stdio.h>
                   ^
compilation terminated.
make: *** [build/PhysXCommon_checked/foundation/src/PsAllocator.cpp.o] Error 1
make: *** [build/PhysXCommon_checked/foundation/src/PsFastIPC.cpp.o] Error 1

Nick@Nick-ПК /d/projects/ngtech/Development/Externals/physx/Source/compiler/andr
oid16
$

Env-varibles:

export ANDROID_CONFIG=android16; export MAKE_THREADS=4; export JAVA_HOME=$PWD/../../externals/jdk

@AlesBorovicka
Copy link
Contributor

You need to call it with config for example:
physx-make debug

@galek
Copy link
Author

galek commented Apr 26, 2017

Borous, already.(physx-make release). Result is similiar:
not found <stdio.h>

@AlesBorovicka
Copy link
Contributor

The stdio.h is expected to be in:
\Externals\android-ndk-r9d\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\lib\gcc\arm-linux-androideabi\4.8\include-fixed\stdio.h

@galek
Copy link
Author

galek commented Apr 26, 2017

Borous, yep, it's file exist

@AlesBorovicka
Copy link
Contributor

AlesBorovicka commented Apr 26, 2017

@galek
Copy link
Author

galek commented Apr 26, 2017

Don't know.
Installed:
Latest tegra-toolkit
Visual studio android kit
Mingw32 with msys

in any case thanks for reply

@AlesBorovicka
Copy link
Contributor

AlesBorovicka commented Apr 26, 2017

You can try to compile it under linux by changing the NDK binary to linux:
NDK_BIN_DIR = ../../../../Externals/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin

@galek
Copy link
Author

galek commented Apr 26, 2017

For linux build(not android) - is successfuly.
but this makefile designed for windows

I will try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants