Learn to Sync Files Between Android And PC with Unison

Dropbox and similar cloud services are great if youre planning to keep your files … more

OnePlus Indian Ban Lifted, Android One Expanding – XDA TV

Android 5.0.1 Lollipop is available for the Nvidia SHIELD Tablet! That and … more

Nvidia and Robotics w/ Barrett Williams – XDA:DevCon 2014

Robotics continues to dominate our videos from this years XDA:DevCon 2014 in … more

Speed Up Deodexing with JoelDroid Batch Deodexer

Android 5.0 Lollipop brings many under-the-hood changes like changing the default compiler … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[DEV][PORT] FirefoxOS to S3 i9300

OP Gioyik

4th February 2013, 04:51 AM   |  #1  
Gioyik's Avatar
OP Junior Member
Flag Ibague
Thanks Meter: 13
 
29 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Hi,

I am a working Porting FirefoxOS to the S3 i9300, but i have a problem with the gralloc_module.cpp, so this is the log:

Code:
b2g/application.ini
b2g/libnspr4.so
target thumb C++: gralloc.i9300 <= hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: In function 'int gralloc_lock(const gralloc_module_t*, const native_handle_t*, int, int, int, int, int, void**)':
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:386: error: 'GRALLOC_USAGE_YUV_ADDR' was not declared in this scope
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp: At global scope:
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: error: 'gralloc_module_t' has no non-static data member named 'getphys'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::info'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::finfo'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::xdpi'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::ydpi'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::fps'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::enableVSync'
make: *** [out/target/product/i9300/obj/SHARED_LIBRARIES/gralloc.i9300_intermediates/gralloc_module.o] Error 1
 
real    1m57.225s
user    1m53.015s
sys     0m23.001s
 
> Build failed! <
 
Build with |./build.sh -j1| for better messages
If all else fails, use |rm -rf objdir-gecko| to clobber gecko and
Could some help me with this? I like continue with the Port but i can't find a patch to solve this. The repo where there are all the files of the Port is this

https://github.com/Droid2Fox.

The repo that has the library wrong is this:

https://github.com/Droid2Fox/android_hardware_samsung

I work with the ICS branch, not with the Jellybeam.

Thanks
4th February 2013, 05:55 AM   |  #2  
T-Macgnolia's Avatar
Senior Member
Flag Shannon, Ms.
Thanks Meter: 1,897
 
3,708 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Ok from what your error says I think the lines you need to pay attention to in the error is the following lines.

Code:
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: error: 'gralloc_module_t' has no non-static data member named 'getphys'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::info'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::finfo'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::xdpi'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::ydpi'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::fps'
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:480: warning: missing initializer for member 'private_module_t::enableVSync'
In your build folder look in hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp and look at line 480 of that file. Now without being able to look at that file I can not tell you anymore about it. But that is what i read from your error.
The Following User Says Thank You to T-Macgnolia For This Useful Post: [ View ]
4th February 2013, 02:26 PM   |  #3  
Gioyik's Avatar
OP Junior Member
Flag Ibague
Thanks Meter: 13
 
29 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Re: [Issue Building][B2G] Porting FirefoxOS tto the S3 i9300
This is the file that has the issue:

https://github.com/Droid2Fox/android...loc_module.cpp

Do you know any idea of how to do it work?

Thanks

Sent from my GT-I9300 using xda app-developers app
4th February 2013, 03:48 PM   |  #4  
garyd9's Avatar
Recognized Developer
Flag Pittsburgh, PA
Thanks Meter: 2,179
 
2,089 posts
Join Date:Joined: Sep 2006
Quote:
Originally Posted by Gioyik

I am a working Porting FirefoxOS to the S3 i9300, but i have a problem with the gralloc_module.cpp, so this is the log:

This reply might seem insulting, but it's impossible for me to know what previous knowledge the original poster has...

Do you understand the errors and warnings that the compiler is generating? What have you done already in order to try and diagnose the errors/warnings? What were the results (if any?)

Are you a developer who is fluent with c++, or are you only looking for someone to provide patches to make things work for you?

Thanks
Gary
4th February 2013, 08:04 PM   |  #5  
Gioyik's Avatar
OP Junior Member
Flag Ibague
Thanks Meter: 13
 
29 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Hi,

I understand the warnings that generates the compiler, and i am trying to declare those functions, but i am not good with C++. I create a patch for the Cammerawrapper.cpp before, but for this i don't understand so much how to fix it. I have been some changes, i can declare some functions but it continues giving problems with other functions that are not declared. I found this:

http://git.linaro.org/gitweb?p=peopl...7efc8f0d57808d

It's good, it solve the 80% not the 100% of the issue, because it fails again because the 'GRALLOC_USAGE_YUV_ADDR' is not declared.

So, i post this in XDA, because i know that there are a lot of devs that knows too much than me about this, and possibly someone has a solution for this. I am not rude and i don't like that other do the work for me, it's only a Post to ask if someone pass for this before and got a solution.

Thanks for you're answers.
13th February 2013, 02:32 AM   |  #6  
Senior Member
Thanks Meter: 607
 
528 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Quote:
Originally Posted by Gioyik

Hi,

I understand the warnings that generates the compiler, and i am trying to declare those functions, but i am not good with C++. I create a patch for the Cammerawrapper.cpp before, but for this i don't understand so much how to fix it. I have been some changes, i can declare some functions but it continues giving problems with other functions that are not declared. I found this:

http://git.linaro.org/gitweb?p=peopl...7efc8f0d57808d

It's good, it solve the 80% not the 100% of the issue, because it fails again because the 'GRALLOC_USAGE_YUV_ADDR' is not declared.

So, i post this in XDA, because i know that there are a lot of devs that knows too much than me about this, and possibly someone has a solution for this. I am not rude and i don't like that other do the work for me, it's only a Post to ask if someone pass for this before and got a solution.

Thanks for you're answers.

or you could just build aosp ics and copy whatever the error says it cannot build into the b2g out...
13th February 2013, 04:03 AM   |  #7  
Gioyik's Avatar
OP Junior Member
Flag Ibague
Thanks Meter: 13
 
29 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Re: [Issue Building][B2G] Porting FirefoxOS tto the S3 i9300
Yes could be a solution. I will try. Thanks.

Sent from my GT-I9300 using xda app-developers app
4th March 2013, 11:00 PM   |  #8  
Gioyik's Avatar
OP Junior Member
Flag Ibague
Thanks Meter: 13
 
29 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Phone [DEV][PORT] FirefoxOS to S3 i9300
Note: This is not a question or helping post, this is for Devs interested in continue with the Port of FirefoxOS to i9300

Hi,

My name is Giovanny, and i was trying to make the Port of FirefoxOS to S3 i9300. I have some work ready and some patches ready to build some parts of the port but i can't cotinue making it, because i have some problems compiling that i can resolve myself. I am not a great Android Developer, i know somethings but i am not an expert. For that reason i like share my work with XDA, if there's a Dev interested in make the Port succesfull. This is my Organization account in GIthub:

https://github.com/Droid2Fox

There, i have all the sources ready to start building the Port, it has problem building thats bad for me, because i don't know how to resolve it. If you're interested in continue with the Port you can follow those steps:

Steps:
  • Clone the repo: https://github.com/Droid2Fox/B2G
  • Into the repo directory run in the terminal: ./config.sh i9300
  • When it finishes the download of sources: ./build.sh
  • And flash with the finally package

For more information visit:
https://developer.mozilla.org/en-US/..._Boot_to_Gecko
https://developer.mozilla.org/en-US/...irst_B2G_build

What's the problem with the Port:
  • Problems with galloc library
  • Problems when compile ./test.....js
  • Possibly other problems

I know that someone can do it more easier, i have some time ago doing this but i can't resolve all the problems, for that reason i decide that other Devs interested can complete this.

Thanks so much, i will be reading if someone is working on it.
Last edited by Gioyik; 4th March 2013 at 11:03 PM.
The Following User Says Thank You to Gioyik For This Useful Post: [ View ]
8th March 2013, 01:28 AM   |  #9  
garyd9's Avatar
Recognized Developer
Flag Pittsburgh, PA
Thanks Meter: 2,179
 
2,089 posts
Join Date:Joined: Sep 2006
Merged the two "firefox i9300" threads (both started by the same person in the same section) together.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes