Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: hayduke on March 02, 2008, 06:52:54 PM

Title: /tools/configure question... sort of
Post by: hayduke on March 02, 2008, 06:52:54 PM
I have more then one iPod I use Rockbox on. I had to compile my own Rockbox for a Mini with a CF card, so I figured I might as well try and compile one for my 30G Video too.

Since I'm pretty new at this, it led me to a quesiton. First I should probably explain what I've done so far so setup the question.

I installed the Cygwin environment, and checked out the source with svn. Everythign is working fine. I applied the patch for the Mini and recompiled the code. We're fine there. Now I want to compile a Video version. So here is the question.

I run configure and make inside a folder in the Rockbox source folder. Can I make a different "build" folder for each player platform I want to work with? ie buildMini2g build30GVid buildRio etc

As long as I run configure in each folder, they will compile the correct versions, right? And is it OK if they all share the source code?
Title: Re: /tools/configure question... sort of
Post by: AlexP on March 02, 2008, 06:53:52 PM
Yep, that is fine :)
Title: Re: /tools/configure question... sort of
Post by: Llorean on March 02, 2008, 06:54:32 PM
Yes, as long as you're okay with them all having the same patches installed (or the patches are all developed in a way that keeps them from being active on the wrong player).
Title: Re: /tools/configure question... sort of
Post by: AlexP on March 02, 2008, 06:56:10 PM
Yes, as long as you're okay with them all having the same patches installed (or the patches are all developed in a way that keeps them from being active on the wrong player).

Good point.
Title: Re: /tools/configure question... sort of
Post by: hayduke on March 02, 2008, 07:25:15 PM
Yes, as long as you're okay with them all having the same patches installed (or the patches are all developed in a way that keeps them from being active on the wrong player).

That's what I figured. The patch for the Mini with a CF card looked like it does a check for the platform, so I think it's OK in there :)

Thanks for confirming what I thought was the case. This is new to me and I still doubt my understanding of the process :P
Title: Re: /tools/configure question... sort of
Post by: hayduke on March 21, 2008, 09:42:55 PM
At the risk of becoming annoying ;)  I have another question

I'm trying to setup my cygwin at work so that I can compile rockbox. When I try to run //tools.configure from a bash shell, I get bad interpreter: permission denied

I've looked at the permissions and I don't see what the problem is. Here is entire text for the error:
bash: ../tools/configure: /bin/sh: bad interpreter: Permission denied

It seems like compiling in this environment is difficult. Compiling on an AS400 is so much easier  :-\
Title: Re: /tools/configure question... sort of
Post by: zajacattack on March 21, 2008, 10:21:55 PM
Don't double post; use the modify button if no one has posted since you.
Title: Re: /tools/configure question... sort of
Post by: cool_walking_ on March 22, 2008, 02:03:51 AM
Try
Code: [Select]
dos2unix ../tools/configure
chmod +x ../tools/configure
sh ../tools/configure