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

Building libRocket for Android (on Windows/Linux) #283

Open
ftheirs opened this issue Jun 8, 2016 · 4 comments
Open

Building libRocket for Android (on Windows/Linux) #283

ftheirs opened this issue Jun 8, 2016 · 4 comments

Comments

@ftheirs
Copy link

ftheirs commented Jun 8, 2016

Hi guys!
I'm totally new in the Android world and I'm working with a Qt project. I'd like to port it to Android but I have some problems with the libraries. I don't understand well the compile process and since I don't use Android to compile my library for Android I don't understand what should I do.

What I want: libRocket.a, libRocketControls.a, libRocketDebugger.a for Android.
What I have: this github repository, Windows 7, Ubuntu 13.10.

Could someone give some step by step tutorial to compile libRocket for Android? Info about compile any libraries for Android or any info related will be appreciated.

Many thanks!

@dwimsey
Copy link
Member

dwimsey commented Jun 8, 2016

At this time, the build process does not directly support Android.

Doesn’t mean it won’t work, but I haven’t had any way to test it until fairly recently and haven’t tried it since then.

I might be able to put some time into this over the weekend as my recent experimentation in Android dev work has pushed me towards revisiting this issue for libRocket.

I know libRocket has been used on Android, but I can’t confirm if/what changes were required and if they were reintegrated into the main libRocket repo. That would have happened before I was involved in the project.

In theory, CMake handles all the details for you but Android is not directly supported by CMake (Last I looked anyway). A quick google search points me at this as a start: http://stackoverflow.com/questions/19207721/build-android-ndk-project-with-cmake http://stackoverflow.com/questions/19207721/build-android-ndk-project-with-cmake

Sorry to be less than helpful, just not something I’ve done. Someone else may have some input though.

I’d be happy to merge a pull request that added android build support.

On Jun 8, 2016, at 1:39 PM, ftheirs notifications@github.com wrote:

Hi guys!
I'm totally new in the Android world and I'm working with a Qt project. I'd like to port it to Android but I have some problems with the libraries. I don't understand well the compile process and since I don't use Android to compile my library for Android I don't understand what should I do.

What I want: libRocket.a, libRocketControls.a, libRocketDebugger.a for Android.
What I have: this github repository, Windows 7, Ubuntu 13.10.

Could someone give some step by step tutorial to compile libRocket for Android? Info about compile any libraries for Android or any info related will be appreciated.

Many thanks!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #283, or mute the thread https://github.com/notifications/unsubscribe/AAqFygtOSIYFvVvafl_MmJ9r0tn85owkks5qJv5XgaJpZM4IxNxw.

@aquawicket
Copy link

aquawicket commented Jun 10, 2016

I created some NDK build scripts for Android.. see if they help you out
link

Note: This works to create only one library, all sources together.. I'll have rewrite to separate the 3 libraries later. If you alter the paths in the script to match your file locations, an "ndk-build" command should get this compiled for you.

Tested with android-ndk-r10d, should work on newer.

P.S. I can confirm that libRocket is still working very well on Android devices.

@ftheirs
Copy link
Author

ftheirs commented Jun 10, 2016

First of all thank you both of you! Is it hard separate it into the three libraries? I use the libraries separately and I think that is a lot of work change the code inside the project instead the libraries. Besides I want to learn how to compile them so I don't have to find the library, just the source code.
I found that using Android Studio is easy to do it but since I'm working with Qt I tried it first but I got errors from external dependencies (like python for armhf or something like that).
If I made I'd post the libraries for Android here if that is useful.

@aquawicket
Copy link

I've updated my build scripts to separate the libraries. link

andreasschultes pushed a commit to andreasschultes/libRocket that referenced this issue Dec 12, 2023
…ibRocket#283)

This enables svg elements to be resized at will with the width and height attributes.
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