Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Testing build on pc not player
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: Testing build on pc not player  (Read 7674 times)

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Testing build on pc not player
« Reply #15 on: September 11, 2007, 06:07:50 PM »
Well, usually you would use redirection (pipe sends the output to another program):

Code: [Select]
%program > file

So, I would assume that running

Code: [Select]
%make > error

Should redirect stdout to a file named "error".
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Testing build on pc not player
« Reply #16 on: September 11, 2007, 09:48:42 PM »
Quote from: Chronon on September 11, 2007, 06:07:50 PM
Well, usually you would use redirection (pipe sends the output to another program):

Code: [Select]
%program > file

So, I would assume that running

Code: [Select]
%make > error

Should redirect stdout to a file named "error".

Indeed it does, Chronon.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Testing build on pc not player
« Reply #17 on: September 12, 2007, 05:04:19 AM »
make >& some_file
Logged

Read The Manual Please

Offline dkarma

  • Member
  • *
  • Posts: 14
Re: Testing build on pc not player
« Reply #18 on: September 12, 2007, 02:36:35 PM »
i used the make > error command and it stopped on the line
LD rockboxui.exe
but didn't print the actual error output
the command did output the error message to the screen in cygwin but not the file

just for the record I'm compiling the most recent build from svn (dl'd yesterday) i think it is build 14672
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Testing build on pc not player
« Reply #19 on: September 12, 2007, 02:46:13 PM »
Okay, just to make sure, do the following:

1) ../tools/configure in the ~/rockbox/build-dir folder (replace build-dir with whatever you called the folder)
2) Select the target
3) Build a Simulator
4) type make after the makefile has been created
5) Sit back and wait as the code compiles
6) Once it's done, type make install.
7) To make sure the build compiled, type ./rockboxui --background
8) Report back to us with the results.

(EDIT: bluebrother and pixelma have shown me the One True Path.)
« Last Edit: September 12, 2007, 05:02:24 PM by LambdaCalculus379 »
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Testing build on pc not player
« Reply #20 on: September 12, 2007, 03:02:41 PM »
Quote from: LambdaCalculus379 on September 12, 2007, 02:46:13 PM
6) Once it's done, type make zip.
Shouldn't that be make install for the simulator, though? ...
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Testing build on pc not player
« Reply #21 on: September 12, 2007, 03:09:25 PM »
For some odd reason, with Cygwin on my (new yet old) Windows box, I need to type make zip to build the .rockbox directory, which I then unzip and drop into the 'archos' folder so the simulator(s) can run without complaining.

I'll try make install to see if I can finally get it to work right.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Testing build on pc not player
« Reply #22 on: September 12, 2007, 04:32:07 PM »
Quote from: LambdaCalculus379 on September 12, 2007, 02:46:13 PM
6) Once it's done, type make zip.
This is wrong -- when building the simulator you issue make install instead of make zip -- "install" also creates the needed folder structure (in the archos folder) for running the sim.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Testing build on pc not player
« Reply #23 on: September 12, 2007, 04:57:52 PM »
* LambdaCalculus379 will go quietly sit in the corner now.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Testing build on pc not player
« Reply #24 on: September 12, 2007, 06:12:54 PM »
Quote from: bluebrother on September 12, 2007, 04:32:07 PM
Quote from: LambdaCalculus379 on September 12, 2007, 02:46:13 PM
6) Once it's done, type make zip.
This is wrong -- when building the simulator you issue make install instead of make zip -- "install" also creates the needed folder structure (in the archos folder) for running the sim.

You can use make zip too.  I didn't realize install was an option, I always do 'make zip; unzip -o rockbox.zip -d archos' which works as well.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Testing build on pc not player
« Reply #25 on: September 12, 2007, 06:21:46 PM »
Quote from: saratoga on September 12, 2007, 06:12:54 PM
You can use make zip too.  I didn't realize install was an option, I always do 'make zip; unzip -o rockbox.zip -d archos' which works as well.
Well, you can use "make zip" too -- but you need to remember to unzip the file to the correct location. So while it works the advertised method should be "make install" ;) (and the steps LambdaCalculus379 posted at first didn't contain the unzip step, so they wouldn't work correctly)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Testing build on pc not player
« Reply #26 on: September 12, 2007, 07:08:18 PM »
Quote from: bluebrother on September 12, 2007, 06:21:46 PM
the steps LambdaCalculus379 posted at first didn't contain the unzip step, so they wouldn't work correctly)

I was typing that in while at work. Unfortunately, I have too many cases of "prying eyes" popping into my workspace, so I have to constantly minimize my browser session. In some cases, I just submit something, but forget that one vital piece of information that is needed to make it complete.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline DefineByte

  • Member
  • *
  • Posts: 104
Re: Testing build on pc not player
« Reply #27 on: September 13, 2007, 06:06:45 AM »
Quote from: dkarma on September 12, 2007, 02:36:35 PM
i used the make > error command and it stopped on the line
LD rockboxui.exe
but didn't print the actual error output
the command did output the error message to the screen in cygwin but not the file
Are you still having trouble with this? Try:
Code: [Select]
make 2>&1 | tee -a log.txt

I always get an error with 'make install'. Don't know why. Might be a Cygwin thing (but then, I always blame Cygwin).
« Last Edit: September 13, 2007, 06:24:48 AM by DefineByte »
Logged

Offline dkarma

  • Member
  • *
  • Posts: 14
Re: Testing build on pc not player
« Reply #28 on: September 13, 2007, 02:35:12 PM »
Thanks DefineByte that command finally outputted the error message to the file and here's what i get:

LD rockboxui.exe
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/ld: /home/meltdown/rockbox/build/apps/language.o: Relocations in generic ELF (EM: 40)
/home/meltdown/rockbox/build/apps/language.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [/home/meltdown/rockbox/build/rockboxui.exe] Error 1
make: *** [build] Error 2


I opted to just move the new .rockbox folder onto my sansa and backup my old one to test new builds...takes less time than figuring out the simulator errors but I'm sure someone else is probably having this problem too so thanks for all your help everyone.
I'm not a huge linux buff, but I'm guessing from this error that the LD program doesn't like the format of the language.o file when trying to compile rockboxui.exe.

And yes the make zip step isn't necessary when compiling a simulator build (at least not according to the compiling and simulator page here on RB.org.)
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Testing build on pc not player
« Reply #29 on: September 13, 2007, 04:57:48 PM »
Have you done a build for the target in that folder before? Be aware that compiling the sim creates completely different binaries than compiling the simulator. If you have old object files from an older, target build in the same folder it will create error.

Either run "make clean" first or (the only way I consider a solution) use a completely different folder for building the sim.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: 1 [2] 3
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Testing build on pc not player
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.122 seconds with 15 queries.