I'm trying to use Assimp library in UE4 for Android& IOS, right now only successful with Android armeabi-v7a, need some help if anyone already done those kind of things or have those knowledge.
I struggle a lot to compile Assimp to .a&.so, finally it compile successful, but don't know how to translate the .xml for IOS, I think it might need same call "P List" when do this part, check this image(this is for android& it works).
Here is what I met when try to build the Plugin with project, is anyone can help with those issue?
Thanks advances
Just to let you know: I have prepared a build environment for this issue. We will deliver this within the next weeks on our github-project.
Related
I want to compile these code to be android native library. I have tried many techniques and follow many online example and it doesn't work. I will provide the link to the code and explain which part I want to compile.
This the link https://github.com/zyq8709/DexHunter (I want to compile the code in folder called dalvik). If anyone knows how to compile it please help me. thank you
This code is a part of platform build. If you are lucky, you can compile libdex for device only, but you must ignore the host side. The easiest hack would be to run
ndk-build BUILD_HOST_STATIC_LIBRARY=/dev/null BUILD_HOST_EXECUTABLE=/dev/null
Final, I have found the solution to compile the above code. I downloaded whole android source by using Ubuntu 16.0.4 and then I modified the specific file which it was changed and replaced it. After I compile whole all the android source code. Finally, I could get a customized ROM which I could use it as I expected. If anyone interested how to download and compile whole the android source code you can follow this link https://source.android.com/setup/build/requirements. If you have any problem you can find the solution on google or you can post here so someone including me will respond.
The problem
Under "External Libraries" in the project view of an Android Studio project I have these libraries "stax-stax-api:1.0.1#jar" and "xpp3:xpp3:1.1.3.3#jar". They're causing me problems such that I can't build the project. I can't seem to figure out how they got there or where they're being used.
The error message I get when I build right now is:
"Error:Error: xpp3 defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]"
The error message is good except that it doesn't tell me who's using this lib in the first place.
The question
Is there an easy way to find out where they're being used in the project? Or even a way that it's easy but doesn't require looking at every file? It's a multi module project with lots of files. If I could delete them this would tell me but there's no delete option.
This could be something really simple that I'm overlooking. Any help appreciated. Happy to add more info as requested.
What I've tried
I've tried to "Analyze Dependencies" but it doesn't show me any references that I can see.
Update: I forgot to mention that I've also tried ./gradlew app:dependencies but it only tells me that my project depends on these libraries. I already know this. Is there a way to get some more specific information so I can remove the libraries?
Update 2: The accepted answer does work but I needed to redirect console output.
gradle app:dependencies
It will show you the dependencies tree of your project
At this link it is explained quite well about the command and how to use it.
Use this to redirect console output if it's clipped:
./gradlew app:dependencies > dependencies.txt
Project can be explored in "Project-tool-window" to have a look at the used external libraries which are not visible in "Android tool Window".
https://www.jetbrains.com/help/idea/project-tool-window.html
That way I solve my problem. Hope it help.
i guess there are a lot of reasons why Conversion to Dalvik format could fail with error 1, and there are alot of solutions offered in SO, but none of them worked for me... after wasting hours i finally managed to solve it... i will post my own solution for this question for later reference and for the community. i hope this will be a time saver!
go to Project tab
disable Build Automatically
remove bin library from your project
enable Build Automatically
try again!
I am convinced that the anwser from Ofek works. Although let me clear it for you.
Usually dalvik problems happen when you have conflits with libraries in your project maybe because you added a library twice.
Maybe one in a lib folder and another from the Properties -> Java Build Path -> Libraries
Only one library should be used.
I have been trying for last 2 days to compile a helloworld project for android. It had been giving different errors so far but I found my way through using the different questions asked here by users or at stackoverflow. But now, I have searched everywhere and couldn't find a proper solution anywhere.
When I try to run the build_native.sh in cygwin, it starts compiling but in the libgame.so shared library, it gives an error with exit code 1. Other guys have been getting this type of errors but none of their solution work for me.
I have checked the android.mk and the references are the correct.
Every way I tried has failed. I need serious help :(
Thanks a lot :)
P.S I am using windows8 (64 bit).
I didn't set up the paths in the main.c file. It needed to be pointed to the right folder (classes) Unfortunately no article or tutorial mentioned it, managed it by trial and error.
I wonder if anyone else had problems running the ./ndk-build on apdfviewer?
I've everything working and set.. but i get errors for missing files (SkCanvas.h, SkPaint.h) .. and others related to 'LOGE'..? (i get those on cygwin console)
Can't figure out what am I missing... well, besides those missing files... but i "don't buy" that the developer has forgotten... I think I'm missing some import...
Please help...
Thanks!!
SkCanvas.h is part of skia, 2D Graphics Library. it's one of the build dependences.