Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,424 Members 36,016 Now Online
XDA Developers Android and Mobile Development Forum

[R&D] Writing custom Gear 2 roms, starting with the source.

Tip us?
 
gav83collins
Old
#11  
gav83collins's Avatar
Senior Member
Thanks Meter 731
Posts: 1,935
Join Date: Dec 2010
Location: Bunbury-Western Australia
Quote:
Originally Posted by Corstian View Post
I'd STRONGLY recommend you to run Ubuntu (12.04) for your build environment to prevent unnecessary hassle.

I'm downloading and installing an Ubuntu 12.04 AMD64 build. I guess, and hope, that the errors I got during my first time trying were because I used a x86 build of Ubuntu.
, ive had no errors installing the sdk i just toubleshooted compatibility first, and updating the repos, was pretty straight forward, i too am on an amd 64 bit windows,,,,,,,
what issues have you had, did you try the windows sdk b4 u installed linux
im still waiting on my source to download, after 6 hours waiting we had a power shortage here in western australia, typically my luck, ive restarted
Galaxy S5 G900f
ROM Omega latest
KERNEL testing
STATE Rooted / UnLocked
RECOVERY twrp

Also S4 I9506 & S3 I305T
iPhone 4 ios7 jb
IPad mini ios 7 jb

Evo3D
multi booting x9 roms currently

Galaxy Gear 1 & Gear 2 SM-V700 / SM-R380
STATE Rooted/BusyBox
ROM TizenMod V3.0

Gear <S4 <Note2 <S3 <Evo3D <S2 <dhd <Omnia HD <Omnia 2 < Omnia 1
(not including iphones)
 
Corstian
Old
(Last edited by Corstian; 21st June 2014 at 03:48 PM.)
#12  
Junior Member - OP
Thanks Meter 5
Posts: 24
Join Date: Jul 2010
Quote:
Originally Posted by gav83collins View Post
, ive had no errors installing the sdk i just toubleshooted compatibility first, and updating the repos, was pretty straight forward, i too am on an amd 64 bit windows,,,,,,,
what issues have you had, did you try the windows sdk b4 u installed linux
im still waiting on my source to download, after 6 hours waiting we had a power shortage here in western australia, typically my luck, ive restarted
The problem isn't in installing the Tizen SDK. The problem is in compiling the Tizen source code and the dependencies needed to do this. I have attached the contents of the "HOW_TO_BUILD" file so you can see the steps needed to compile the Tizen source you are currently trying to download.

HOW_TO_BUILD
 
System requirement (Strongly recommended)
* OS: Ubuntu 12.04 or newer

Installing Development Tools in Ubuntu
* Open the source list by using text editor.
$ sudo vi /etc/apt/sources.list
* Add Tizen tools repository to the source list.
deb http://download.tizen.org/tools/late...e/Ubuntu_12.04 /
* Resynchronize the package index files from the sources specified in the source list by executing the following command:
$ sudo apt-get update
* Install a development tool by executing the following command:
$ sudo apt-get install gbs

Build root strap setup
* Download build rootstrap and unpack into home directory
$ sudo tar xfz {build rootstrap name} --same-owner
* Change root to the build rootstrap
$ sudo chroot standard-armv7l
* Change account to abuild
$ su abuild

Building a package
* Source packages are in the /home/abuild/rpmbuild/SRPMS
* Build a package with rpmbuild
$ cd /home/abuild/rpmbuild/SRPMS
$ rpmbuild --rebuild {src.rpm name}
* You can find binary rpms in /home/abuild/rpmbuild/RPMS

Install a package
* rpm -ivh {src.rpm name}
* if {src.rpm name} is already installed : rpm -ivh --force {src.rpm name}

The Following User Says Thank You to Corstian For This Useful Post: [ Click to Expand ]
 
gav83collins
Old
#13  
gav83collins's Avatar
Senior Member
Thanks Meter 731
Posts: 1,935
Join Date: Dec 2010
Location: Bunbury-Western Australia
Quote:
Originally Posted by Corstian View Post
The problem isn't in installing the Tizen SDK. The problem is in compiling the Tizen source code and the dependencies needed to do this. I have attached the "HOW_TO_BUILD" file so you can see the steps needed to compile the Tizen source you are currently trying to download.

HOW_TO_BUILD
 
System requirement (Strongly recommended)
* OS: Ubuntu 12.04 or newer

Installing Development Tools in Ubuntu
* Open the source list by using text editor.
$ sudo vi /etc/apt/sources.list
* Add Tizen tools repository to the source list.
deb http://download.tizen.org/tools/late...e/Ubuntu_12.04 /
* Resynchronize the package index files from the sources specified in the source list by executing the following command:
$ sudo apt-get update
* Install a development tool by executing the following command:
$ sudo apt-get install gbs

Build root strap setup
* Download build rootstrap and unpack into home directory
$ sudo tar xfz {build rootstrap name} --same-owner
* Change root to the build rootstrap
$ sudo chroot standard-armv7l
* Change account to abuild
$ su abuild

Building a package
* Source packages are in the /home/abuild/rpmbuild/SRPMS
* Build a package with rpmbuild
$ cd /home/abuild/rpmbuild/SRPMS
$ rpmbuild --rebuild {src.rpm name}
* You can find binary rpms in /home/abuild/rpmbuild/RPMS

Install a package
* rpm -ivh {src.rpm name}
* if {src.rpm name} is already installed : rpm -ivh --force {src.rpm name}

thanks, but thats ubuntu, unless absolutley neccessary, i want to use windows 8, i dont think my machine will handle ubuntu with my linux kali on a vm, and all my cloud, n media editing software aswell, il just configure the enviroment variables to make it work..........hows your compiling going
Galaxy S5 G900f
ROM Omega latest
KERNEL testing
STATE Rooted / UnLocked
RECOVERY twrp

Also S4 I9506 & S3 I305T
iPhone 4 ios7 jb
IPad mini ios 7 jb

Evo3D
multi booting x9 roms currently

Galaxy Gear 1 & Gear 2 SM-V700 / SM-R380
STATE Rooted/BusyBox
ROM TizenMod V3.0

Gear <S4 <Note2 <S3 <Evo3D <S2 <dhd <Omnia HD <Omnia 2 < Omnia 1
(not including iphones)
 
Corstian
Old
#14  
Junior Member - OP
Thanks Meter 5
Posts: 24
Join Date: Jul 2010
Quote:
Originally Posted by gav83collins View Post
thanks, but thats ubuntu, unless absolutley neccessary, i want to use windows 8, i dont think my machine will handle ubuntu with my linux kali on a vm, and all my cloud, n media editing software aswell, il just configure the enviroment variables to make it work..........hows your compiling going
Well crap! So I've installed Ubuntu 12.04 AMD64 as VM (Which runs pretty amazing btw) and I still have the same errors. Le me trying to dig deeper into the operating system to find the problem of this all. (I'm also not really into UNIX OS's) Turns out I / we all need a 32 bit operating system to be able to use the binary files.

Running the file xargs command on the xargs file gave this result:

Code:
xargs: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.25, stripped
Whatsoever, I gotta start downloading a 32 bit Ubuntu 12.04 iso.
 
gav83collins
Old
#15  
gav83collins's Avatar
Senior Member
Thanks Meter 731
Posts: 1,935
Join Date: Dec 2010
Location: Bunbury-Western Australia
Quote:
Originally Posted by Corstian View Post
Well crap! So I've installed Ubuntu 12.04 AMD64 as VM (Which runs pretty amazing btw) and I still have the same errors. Le me trying to dig deeper into the operating system to find the problem of this all. (I'm also not really into UNIX OS's) Turns out I / we all need a 32 bit operating system to be able to use the binary files.

Running the file xargs command on the xargs file gave this result:

Code:
xargs: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.25, stripped
Whatsoever, I gotta start downloading a 32 bit Ubuntu 12.04 iso.
again thats ubuntu, with windows 64 win 8, you can runx86 0n 64 bit, dynamically, and also sys compat to any previous version, if you get errors, change the correct enviroment variable path

you do your way, il try mine, between us, we should get somewhere

i gotta be honest reading up on this app making, standalone, or otherwise, is blowing my mind, im not the brightest spark
Galaxy S5 G900f
ROM Omega latest
KERNEL testing
STATE Rooted / UnLocked
RECOVERY twrp

Also S4 I9506 & S3 I305T
iPhone 4 ios7 jb
IPad mini ios 7 jb

Evo3D
multi booting x9 roms currently

Galaxy Gear 1 & Gear 2 SM-V700 / SM-R380
STATE Rooted/BusyBox
ROM TizenMod V3.0

Gear <S4 <Note2 <S3 <Evo3D <S2 <dhd <Omnia HD <Omnia 2 < Omnia 1
(not including iphones)
 
Corstian
Old
#16  
Junior Member - OP
Thanks Meter 5
Posts: 24
Join Date: Jul 2010
Quote:
Originally Posted by gav83collins View Post
again thats ubuntu, with windows 64 win 8, you can runx86 0n 64 bit, dynamically, and also sys compat to any previous version, if you get errors, change the correct enviroment variable path

you do your way, il try mine, between us, we should get somewhere

i gotta be honest reading up on this app making, standalone, or otherwise, is blowing my mind, im not the brightest spark
So I tried multiple editions of Ubuntu and still no luck in compiling the source. How's it going on Windows?
 
gav83collins
Old
#17  
gav83collins's Avatar
Senior Member
Thanks Meter 731
Posts: 1,935
Join Date: Dec 2010
Location: Bunbury-Western Australia
Quote:
Originally Posted by Corstian View Post
So I tried multiple editions of Ubuntu and still no luck in compiling the source. How's it going on Windows?
My source download keeps failing. Can you mirror it to a fat er site
Like Google drive . Your own and share the folder to me. Australian Internet is ****. I'm currently dev testing the gear 2 Cam app on the s3 s5 and s5 over multiple android versions and builds 4.1.2, 4.2.2, 4.3, 4.4.x - aosp, Aokp, miui, cyanogen. Slim. Pa etc
Galaxy S5 G900f
ROM Omega latest
KERNEL testing
STATE Rooted / UnLocked
RECOVERY twrp

Also S4 I9506 & S3 I305T
iPhone 4 ios7 jb
IPad mini ios 7 jb

Evo3D
multi booting x9 roms currently

Galaxy Gear 1 & Gear 2 SM-V700 / SM-R380
STATE Rooted/BusyBox
ROM TizenMod V3.0

Gear <S4 <Note2 <S3 <Evo3D <S2 <dhd <Omnia HD <Omnia 2 < Omnia 1
(not including iphones)
The Following User Says Thank You to gav83collins For This Useful Post: [ Click to Expand ]
 
EmptyMind
Old
#18  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jul 2014
When running the command "su abuild", I got the error message "bash: /bin/su: cannot execute binary file".
I use a vm of ubuntu 12.04 64bit.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes