Android.mk wilcard extra 'jni' sa landas?

Aristarhys 02/26/2012. 2 answers, 2.588 views
android android makefile android-ndk android-ndk

Sinusubukan kong gamitin ang wilcards sa Android.mk sa tulong ng sagot na ito https://stackoverflow.com/a/8459242/1039175
Ngunit kumuha at error:

gumawa ng: Walang panuntunan upang gawing target ang jni/jni/abyss_engine.c', needed by obj / local / armeabi / objs-debug / AbyssEngine / jni / abyss_engine.o' - ang error na ito ay nangangahulugang walang source file na natagpuan at ito ay natural dahil kung saan hindi jni subfolder sa jni folder

Saan dumating ang dagdag na jni sa landas at bakit? Ang aking source file ay nasa jni folder na walang anumang subfolder, kung paano ayusin ito?

Aking Android.mk

LOCAL_PATH: = $ (tumawag sa my-dir)
isama ang $ (CLEAR_VARS)
LOCAL_MODULE: = AbyssEngine
LOCAL_SRC_FILES: = $ (wildcard $ (LOCAL_PATH) / *. C)
( abyss_engine.c asset_manager.c jni_bridge.c shader_manager.c input_manager.c gumagana fine )
LOCAL_LDLIBS: = -llog -lGLESv2
LOCAL_CFLAGS: = -Werror
isama ang $ (BUILD_SHARED_LIBRARY)

2 Answers


Aristarhys 02/28/2012.

Lahat salamat sa a1 mula sa android-ndk group

LOCAL_SRC_FILES=$(notdir $(wildcard $(LOCAL_PATH)/*.c)) 

http://groups.google.com/group/android-ndk/browse_thread/thread/9d4251e0900a31e6/4b792fc207e454c2#4b792fc207e454c2 - may mas kapaki-pakinabang na impormasyon sa kanyang tugon

1 comments
cyrilchampier 07/04/2012
Tinatanggal lamang ng notdir ang lahat ng impormasyong direktoryo mula sa LOCAL_SRC_FILES, ngunit hindi iniiwasan ang ndk upang maidagdag ang jni kapag gusali. Nakukuha ko lang ang file na "jni / hello.cpp" sa halip na "jni /../../mydir/hello.cpp" :(

override 06/14/2017.

Gumagamit ako ng Mga Kasangkapan sa Panlabas upang sumunod sa file, at natugunan ko ang problemang ito sa aking proyekto.

Binago ko ang Path ng Direktoryo ng Paggawa at nalutas ang problema.

step1: Mga Setting -> Mga Tool -> Mga Panlabas na Tool -> NDK -> aking build -> Paggawa ng direktoryo

step2:

ang aking lumang path ng direktoryo ng Paggawa ay: $ModuleFileDir$\src\main

$ModuleFileDir$\src\main\jni ko ito sa: $ModuleFileDir$\src\main\jni

at ito ay nagpapatakbo ng napakahusay para sa akin!


HighResolutionMusic.com - Download Hi-Res Songs

1 Alan Walker

Diamond Heart flac

Alan Walker. 2018. Writer: Alan Walker;Sophia Somajo;Mood Melodies;James Njie;Thomas Troelsen;Kristoffer Haugan;Edvard Normann;Anders Froen;Gunnar Greve;Yann Bargain;Victor Verpillat;Fredrik Borch Olsen.
2 Sia

I'm Still Here flac

Sia. 2018. Writer: Sia.
3 Cardi B

Taki Taki flac

Cardi B. 2018. Writer: Bava;Juan Vasquez;Vicente Saavedra;Jordan Thorpe;DJ Snake;Ozuna;Cardi B;Selena Gomez.
4 Little Mix

Woman Like Me flac

Little Mix. 2018. Writer: Nicki Minaj;Steve Mac;Ed Sheeran;Jess Glynne.
5 Halsey

Without Me flac

Halsey. 2018. Writer: Halsey;Delacey;Louis Bell;Amy Allen;Justin Timberlake;Timbaland;Scott Storch.
6 Lady Gaga

I'll Never Love Again flac

Lady Gaga. 2018. Writer: Benjamin Rice;Lady Gaga.
7 Bradley Cooper

Shallow flac

Bradley Cooper. 2018. Writer: Andrew Wyatt;Anthony Rossomando;Mark Ronson;Lady Gaga.
8 Bradley Cooper

Always Remember Us This Way flac

Bradley Cooper. 2018. Writer: Lady Gaga;Dave Cobb.
9 Kelsea Ballerini

This Feeling flac

Kelsea Ballerini. 2018. Writer: Andrew Taggart;Alex Pall;Emily Warren.
10 Mako

Rise flac

Mako. 2018. Writer: Riot Music Team;Mako;Justin Tranter.
11 Dewain Whitmore

Burn Out flac

Dewain Whitmore. 2018. Writer: Dewain Whitmore;Ilsey Juber;Emilio Behr;Martijn Garritsen.
12 Avril Lavigne

Head Above Water flac

Avril Lavigne. 2018. Writer: Stephan Moccio;Travis Clark;Avril Lavigne.
13 Khalid

Better flac

Khalid. 2018. Writer: Charlie Handsome;Jamil Chammas;Denis Kosiak;Tor Erik Hermansen;Mikkel Stoleer Eriksen;Khalid.
14 Lady Gaga

Look What I Found flac

Lady Gaga. 2018. Writer: DJ White Shadow;Nick Monson;Mark Nilan Jr;Lady Gaga.
15 Deep Chills

Run Free flac

Deep Chills. 2018.
16 Dynoro

In My Mind flac

Dynoro. 2018. Writer: Georgi Kay;Feenixpawl;Ivan Gough.
17 Charli XCX

1999 flac

Charli XCX. 2018. Writer: Charli XCX;Troye Sivan;Leland;Oscar Holter;Noonie Bao.
18 NCT 127

Regular (English Version) flac

NCT 127. 2018.
19 Lukas Graham

Love Someone flac

Lukas Graham. 2018. Writer: Don Stefano;Morten "Rissi" Ristorp;Morten "Pilo" Pilegaard;Jaramye Daniels;James Alan;David LaBrel;Lukas Forchhammer Graham.
20 Rita Ora

Let You Love Me flac

Rita Ora. 2018. Writer: Rita Ora.

Related questions

Hot questions

Language

Popular Tags