Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,832 Members 51,593 Now Online
XDA Developers Android and Mobile Development Forum

[DEV][PORT] FirefoxOS to S3 i9300

Tip us?
 
Gioyik
Old
#1  
Gioyik's Avatar
Junior Member - OP
Thanks Meter 13
Posts: 29
Join Date: Jan 2012
Location: Ibague
Prompt [Issue Building][B2G] Porting FirefoxOS tto the S3 i9300

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
 
T-Macgnolia
Old
#2  
T-Macgnolia's Avatar
Forum Moderator
Thanks Meter 1883
Posts: 3,706
Join Date: Sep 2010
Location: Shannon, Ms.

 
DONATE TO ME
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.
New to XDA? Please have a read here and here, they are here to help you.
XDA Search Video
S-off explained
Guide on HTC HD2
4EXT Themes, Splash screens, and Bootanimation By T-Macgnolia
XDA-BLOG Writer
RegawMOD Bootloader Customizer for Sensation

Current daily device= Samsung Galaxy Note 2
ROM=TMOUS Stock Multi Window update not rooted
Other devices=TMOUS HTC Sensation 4G,TMOUS HTC HD2 , Acer Iconia A500

The Following User Says Thank You to T-Macgnolia For This Useful Post: [ Click to Expand ]
 
Gioyik
Old
#3  
Gioyik's Avatar
Junior Member - OP
Thanks Meter 13
Posts: 29
Join Date: Jan 2012
Location: Ibague
Default 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
 
garyd9
Old
#4  
garyd9's Avatar
Recognized Developer
Thanks Meter 1962
Posts: 1,946
Join Date: Sep 2006
Location: Pittsburgh, PA
Quote:
Originally Posted by Gioyik View Post
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

Donations: I don't accept donations, but if you are feeling charitable, help a child by going to http://www.shrinershospitalsforchildren.org/
and click the "Donate Now" link at the top.
 
Gioyik
Old
#5  
Gioyik's Avatar
Junior Member - OP
Thanks Meter 13
Posts: 29
Join Date: Jan 2012
Location: Ibague
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.
 
cpu999
Old
#6  
Senior Member
Thanks Meter 602
Posts: 524
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by Gioyik View Post
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...
 
Gioyik
Old
#7  
Gioyik's Avatar
Junior Member - OP
Thanks Meter 13
Posts: 29
Join Date: Jan 2012
Location: Ibague
Default 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
 
Gioyik
Old
(Last edited by Gioyik; 4th March 2013 at 10:03 PM.)
#8  
Gioyik's Avatar
Junior Member - OP
Thanks Meter 13
Posts: 29
Join Date: Jan 2012
Location: Ibague
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.
The Following User Says Thank You to Gioyik For This Useful Post: [ Click to Expand ]
 
garyd9
Old
#9  
garyd9's Avatar
Recognized Developer
Thanks Meter 1962
Posts: 1,946
Join Date: Sep 2006
Location: Pittsburgh, PA
Merged the two "firefox i9300" threads (both started by the same person in the same section) together.

Donations: I don't accept donations, but if you are feeling charitable, help a child by going to http://www.shrinershospitalsforchildren.org/
and click the "Donate Now" link at the top.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...