Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: zombieplasticclock on May 17, 2007, 07:09:52 PM

Title: Several things I need help with Cygwin and The Simulator
Post by: zombieplasticclock on May 17, 2007, 07:09:52 PM
 Ok, I plan to make several things to rockbox, and I'm having some problems...

1- My actual computer doesn't have internet (this is my dad's compy), so there will be some problems getting Cygwin on it. Can anyone help me out here, or find an alternative?

2- I got the simulator, and for some reason, Whenever I try to play music, play Rockdoom, or a GB/GBC game with Rockboy, it freezes. What's with that?
 Can someone help me?
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: digerati1338 on May 18, 2007, 06:09:56 PM
1 - I'm sure there are workarounds for getting cygwin without internet, but this would only pose more problems when trying to sync svn.  I also have a computer without internet, but use this computer for rockbox dev.  Best alternative:  get your dad to let you use his computer, or get yours hooked up to the net.  You could try wired or wireless, or maybe just unplug your dad's computer to plug yours in while you sync.

2 - try re-downloading it.
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: lights0ut on May 18, 2007, 06:30:53 PM
You could download Cygwin onto a separate PC, and setup the appropriate dev environment, then when it's all set do this:
-make sure you installed Cygwin's folder to something simple like C:\Cygwin
-copy C:\cygwin onto a CD along with the Cygwin installer
-install Cygwin on the dev PC, and then copy over C:\Cygwin from disk to the dev computer

I have never tried this or even seen any tutorial on how to do what you are specifically doing so no guarantees this would work, just what I came up with. There isn't much reason it shouldn't work though.
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: zombieplasticclock on May 19, 2007, 10:28:21 AM
I thought of this, didn't think it would work. Thanks for the Help man.

By the way, Digeratyi, can you explain the whole "SVN Sync" you mentioned? Would it be a major problem not having internet?
Also, to answer to the parts with me getting internet... Not gonna happen. it's like my compy's internet-proof (damn internet card...no money so can't buy a new one...), and my dad's (Internet) Compy is in the basement, with mine two floors above :).
Thanks for the help anyway, guys

You could download Cygwin onto a separate PC, and setup the appropriate dev environment, then when it's all set do this:
-make sure you installed Cygwin's folder to something simple like C:\Cygwin
-copy C:\cygwin onto a CD along with the Cygwin installer
-install Cygwin on the dev PC, and then copy over C:\Cygwin from disk to the dev computer

I have never tried this or even seen any tutorial on how to do what you are specifically doing so no guarantees this would work, just what I came up with. There isn't much reason it shouldn't work though.
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: Mad Cow on May 19, 2007, 11:49:52 AM
I thought of this, didn't think it would work. Thanks for the Help man.

By the way, Digeratyi, can you explain the whole "SVN Sync" you mentioned? Would it be a major problem not having internet?
Also, to answer to the parts with me getting internet... Not gonna happen. it's like my compy's internet-proof (damn internet card...no money so can't buy a new one...), and my dad's (Internet) Compy is in the basement, with mine two floors above :).
Thanks for the help anyway, guys

You could download Cygwin onto a separate PC, and setup the appropriate dev environment, then when it's all set do this:
-make sure you installed Cygwin's folder to something simple like C:\Cygwin
-copy C:\cygwin onto a CD along with the Cygwin installer
-install Cygwin on the dev PC, and then copy over C:\Cygwin from disk to the dev computer

I have never tried this or even seen any tutorial on how to do what you are specifically doing so no guarantees this would work, just what I came up with. There isn't much reason it shouldn't work though.

You don't have an extra $10 for a cheap network card? If you don't have a router, that'll be another $15-ish for a cheap wired router and around $20 for a long enough network cable. You could probably find those things for even cheaper if you looked around a bit.

I have a $20 wireless router and $20 PCI wireless card, both bought at Futureshop. (Not sure if you have those stores anywhere but Canada, but it's pretty much a clone of Best Buy)
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: lights0ut on May 19, 2007, 12:18:45 PM
As a matter of fact, Best Buy owns Futureshop. If you're in Canada, I suggest you shop at your local computer dealer and not a big chain, I've found much better service at the little guy stores. The ones in my city have the same prices, better accessories/ peripherals, and better advice.
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: digerati1338 on May 19, 2007, 12:55:13 PM
It will not be a major problem not having internet, but rockbox is dynamic.  Whenever a change is committed to the source code the SVN files change.  To make your local files match SVN again, you need to run "svn update".  This won't work without internet.  I normally update once or twice a week.  Like I said, its not a major problem.  Your code will compile just fine, and any changes you make will work fine, but if your code gets too old and then you update you might run into some problems with patches and such.
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: Mad Cow on May 19, 2007, 01:20:13 PM
As a matter of fact, Best Buy owns Futureshop. If you're in Canada, I suggest you shop at your local computer dealer and not a big chain, I've found much better service at the little guy stores. The ones in my city have the same prices, better accessories/ peripherals, and better advice.

But the big stores have good sales and discounts more often, which is why I got that stuff for so cheap.

Ontopic: Compiling rockbox without internet would be a hassle because you will need to download SVN snapshots and patches on a computer with internet and then move them to your compiling computer. If a patch doesn't work you're going to have to run down two floors to see if there's a new version, etc.
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: lights0ut on May 19, 2007, 04:07:40 PM
If a patch doesn't work you're going to have to run down two floors to see if there's a new version, etc.

 :D I can only imagine what that would be like, I've had patches fail on me so many times. I guess, if you were good at coding it wouldn't matter, if a patch didn't apply correctly you could  just sync it.
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: zombieplasticclock on May 20, 2007, 01:19:09 PM
 Hey, to answer some more questions...

1- I really don't have ten bucks to buy a cheap card...
2- I don't live in Canada. U.S. of A where everythings more expensive! :D
3- I got VMWare, so it's all good. Thanks everyone for trying to help. If you guys can now give me some tips for using VMware. Evilg, you can probably help me a lot, since VMware is basically a linux emulator.

Anothr thing, I need help with the simulator. I need a link to download one ('cause I know there is one, forgot where)

And I have trouble getting it to work. whenever I try to play music, use Rockboy, or play Doom, it crashes. Any help, please?
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: bluebrother on May 20, 2007, 01:23:13 PM
since VMware is basically a linux emulator.
Vmware emulates a complete PC, and in that PC you have a running linux system -- nothing emulated with that linux, it's a standard distribution that's running. The only thing you need are standard linux basics. There are tons of tutorials out there (and it's also quite similar to the cygwin environment).
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: lights0ut on May 20, 2007, 02:37:35 PM
zombieplasticclock, you can get standard rockbox sims (for windows) at http://rasher.dk/rockbox/
I've uploaded a Win32 sim for my latest build too, see the unsupported builds forum for that. With regard to VMware, I remember having some trouble with the firewall/ AV on my PC but since you're not on the interweb you should be fine. Be aware that if you do make a sim in vmware, it will be a linux sim, you would need to read this page on the wiki (http://www.rockbox.org/twiki/bin/view/Main/UiSimulator#Building_Windows_sim_in_Linux) if you want to make a win32 sim from linux.

I'm not too familiar with VMware, I used it for about a month, then got fed up with it (and everything else in windows) and switched to linux.
Title: Re: Several things I need help with Cygwin and The Simulator
Post by: zombieplasticclock on May 24, 2007, 11:57:56 AM
 Ok, More answers, more questions...

1- I already have the Rockbox sim for VMware.

2- Firewall? Can you explain firther?

3- where do I download SVN's?

4- I'm not making a sim with VMware. I can download one.

EDIT- Forget about Four. Didn't pay attention to Evilg's Link. Sorry...
- I need 2 and 3 answered, please.

Thanks