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

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

OP Corstian

21st June 2014, 04:21 PM   |  #11  
gav83collins's Avatar
Senior Member
Flag Bunbury-Western Australia
Thanks Meter: 946
 
2,382 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by Corstian

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
21st June 2014, 04:45 PM   |  #12  
OP Junior Member
Thanks Meter: 5
 
24 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by gav83collins

, 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}

Last edited by Corstian; 21st June 2014 at 04:48 PM.
The Following User Says Thank You to Corstian For This Useful Post: [ View ]
21st June 2014, 04:50 PM   |  #13  
gav83collins's Avatar
Senior Member
Flag Bunbury-Western Australia
Thanks Meter: 946
 
2,382 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by Corstian

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
21st June 2014, 06:23 PM   |  #14  
OP Junior Member
Thanks Meter: 5
 
24 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by gav83collins

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.
22nd June 2014, 01:30 AM   |  #15  
gav83collins's Avatar
Senior Member
Flag Bunbury-Western Australia
Thanks Meter: 946
 
2,382 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by Corstian

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
24th June 2014, 08:44 PM   |  #16  
OP Junior Member
Thanks Meter: 5
 
24 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by gav83collins

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?
25th June 2014, 04:21 AM   |  #17  
gav83collins's Avatar
Senior Member
Flag Bunbury-Western Australia
Thanks Meter: 946
 
2,382 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by Corstian

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
The Following User Says Thank You to gav83collins For This Useful Post: [ View ]
6th July 2014, 10:12 AM   |  #18  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: 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.

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

Advanced Search
Display Modes