Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...

Browsing this Thread:   1 Anonymous Users



(1) 2 »


how to create a cross environment under linux ubuntu

Joined:
2010/5/18 11:49
From Italy
Group:
Member
Posts: 1046
Offline
hi

I wanted to understand how to build my cross environment under ubuntu, to help if it is possible to bring something on abiv1, after I install linux and builds-essentials what should I do?

thank you

Posted on: 5/5 1:46
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/5/18 11:49
From Italy
Group:
Member
Posts: 1046
Offline
I found this, if you can compile with netbeans well

http://amifreak.ftp.sh/post/setting-up-environment-to-start

Posted on: 5/5 2:37
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/8/30 7:20
Group:
Member
Posts: 1366
Offline
Quote:

sabbate wrote:
hi

I wanted to understand how to build my cross environment under ubuntu


so, you actually have ubuntu set up?

****************************************

from there it should be straight forward:
http://aros.sourceforge.net/documentation/developers/compiling.php


all i can do is to requote it:

"sudo apt-get install" packages listed under requirements. you can use that synaptic package tool as well. sometimes you may have to figure out the proper package name, but its mostly just the one listed. linux user shouldnt have problem here.

if you forget something aros build will break later and tell you about some missing header. no problem then. you simply check, which package contains this header, install it, hit make again and watch aros progress with build.

****************************************

now, down the page is "get the sources" section.

you can checkout the sources somewhere to your "home" directory:
Quote:

myself, ive crated AROS-source dir there. so, most convenient is building aros in another own directory, outside aros source dir, preferably at the same level, to keep things clean.

for instance i created a number of directories for target architectures, such as "aros-x86-630", to reflect the target and the compiler used. but you can call it as you want, for instance simply "aros-build" or so.

now in your shell, you cd to your build directory and configure.

my usual configure line for x86 looks like that:
Quote:

../AROS-source/AROS/configure --target=linux-i386 --with-serial-debug=yes --with-portssources=/home/wawa/portssources --with-binutils-version=2.25 --with-gcc-version=6.3.0


but actually you only need something like:
Quote:

./configure --target=linux-i386


portsources flag is used in order to cache source tarballs of outside components somewhere on your drive, not to download them again and again, in my case:
Quote:

--with-portssources=/home/wawa/portssources


the following is optional, and specifies a newer toolchain version. without it you will compile with gcc-4.6.4. usually you can ommit it and be fine with that, however keep in mind, you need it to build odyssey later.
Quote:

--with-binutils-version=2.25 --with-gcc-version=6.3.0


in conclusion i advise to actually use all the above configure flags, inclusive debug, for serial debugging.

Posted on: 5/5 3:38
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/5/18 11:49
From Italy
Group:
Member
Posts: 1046
Offline
thank you wawa

Posted on: 5/5 4:06
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/5/18 11:49
From Italy
Group:
Member
Posts: 1046
Offline
I had managed to compile it a few years ago from the sources of aros, but for the software is the same thing ?, I have to compile everything in the source tree?

Posted on: 5/5 4:09
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/5/18 11:49
From Italy
Group:
Member
Posts: 1046
Offline
I used ubuntu 12.04 when I was convinced and it was fine, now I downloaded the last lts

Posted on: 5/5 4:14
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/8/30 7:20
Group:
Member
Posts: 1366
Offline
Quote:

sabbate wrote:
I have to compile everything in the source tree?


imho, the easiest thing is just to compile everything, along with the toolchain, just issuing "make". few years old source and certainly binaries will be severely outdated, so that they will cause unexpected problems, where they may not exist anymore.

to effectively contribute imho, its important to work on as up to date material, as possible.

Posted on: 5/5 4:53
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/5/18 11:49
From Italy
Group:
Member
Posts: 1046
Offline
ok thank you

Posted on: 5/5 5:02
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/8/30 7:20
Group:
Member
Posts: 1366
Offline
in most cases, if you have sources checked out with svn, which are still pretty up to date, you only need "svn up" to resync with the late changes in the main repository.

then you only need to do "make" in your build directory.

the build system will usually recognize, what has changed since the last time and only rebuild the necessary modules.

this spares a lot of time.

also. if you just want to build a single module (program, library or directory) you simply append the name of that module behind make. the names of the modules are to be found in the respecitve meta makefiles (mmakefile.src) in the source.

for instance just to build frying pan you type:

"make contrib-fryingpan"

sometimes you can add "-quick" to module name to build just the module without re-checking and eventually rebuilding the dependencies.

you may also append "-clean" to module name to remove the previously built files, just to be sure.

Posted on: 5/5 5:26
Transfer the post to other applications Transfer


Re: how to create a cross environment under linux ubuntu

Joined:
2010/5/18 11:49
From Italy
Group:
Member
Posts: 1046
Offline
well I just have to wait for me to get a computer that I bought from a friend and then I do some tests, but I have to install the sdk also

Posted on: 5/5 6:02
Transfer the post to other applications Transfer



(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4454
2 nikolaos
nikolaos
4182
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 clusteruk
clusteruk
2113
9 damocles
damocles
1789
10 BSzili
BSzili
1531
© 2004-2018 AROS Exec