Author Topic: Opendingux toolchain for Windows (Cygwin)  (Read 2961 times)

dmitry_smagin (OP)

  • *
  • Posts: 420
Opendingux toolchain for Windows (Cygwin)
« on: September 08, 2012, 09:47:59 am »
I finally managed to compile opendingux toolchain for Cygwin for those who develop under Windows. It's made in same way as SCiENcE did his legacy dingux toolchain.

Buildroot from here is used: https://github.com/mthuurne/opendingux-buildroot
As buildroot doesn't work properly under cygwin, some libraries were simply copied from linux toolchain. So, unexpected errors could be encountered.

It's a testing version, so you are warned!

http://prizma.bmstu.ru/~exmortis/opendingux-toolchain-cygwin.2012-06-16.tar.gz

Please, test.

First install cygwin, then unpack toolchain into /cygwin/opt folder and edit cygwin.bat in this way:

Quote
@echo off
rem SET PATH TO YOUR CYGWIN HERE!
set path=d:\Progs\cygwin\bin

d:
chdir d:\progs\cygwin\bin

SET MIPSTOOLS=/opt/opendingux-toolchain/usr
SET PATH=%MIPSTOOLS%/bin;%PATH%

set LANG=en_US.UTF-8
bash --login -i
« Last Edit: September 08, 2012, 12:08:04 pm by d_smagin »
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

clach04

  • *
  • Posts: 256
Re: Opendingux toolchain for Windows (Cygwin)
« Reply #1 on: October 13, 2012, 03:56:21 pm »
Thanks for making this available.

A couple of notes:

Here is the path stuff I setup up:

Code: [Select]
:: Dingo OpenDingux SDK change start

:: Dingo OpenDingux SDK
:: NOTE has to live in /opt (no idea why, that's what everyone says, apparently it fails)
SET MIPSTOOLS=/opt/opendingux-toolchain/usr
SET DINGUX_SDK=/opt/opendingux-toolchain
SET PATH=%MIPSTOOLS%/bin;%PATH%

:: Dingo SDK change end
::

With DINGUX_SDK set you can use r366 http://code.google.com/p/dingoo-sdk/source/detail?r=366 to build one of the Native SDK Hello World apps for OpenDingux.

Extracting the tarball can NOT be done with a GUI (like 7z) as the tar contains soft-links, instead open up the Cygwin window and install via:

Code: [Select]
    cd / ; mkdir opt ; cd opt
    tar -xvvf ../opendingux-toolchain-cygwin.2012-06-16.tar

I did hit an issue with one (complex) file where the compiler couldn't handle -O2 (-01 worked) and gcc ran out of memory, I do not get this with Linux toolchain.

slaanesh

  • *
  • Posts: 473
    • Slaanesh Dev
Re: Opendingux toolchain for Windows (Cygwin)
« Reply #2 on: October 29, 2012, 05:13:57 am »
Thanks I'm going to try this.

Has anyone successfully made an OpenDingux toolchain for Mac OS X?

mth

  • *
  • Posts: 298
Re: Opendingux toolchain for Windows (Cygwin)
« Reply #3 on: November 03, 2012, 05:08:03 pm »
Has anyone successfully made an OpenDingux toolchain for Mac OS X?
I tried running buildroot on OS X, but that ran into so many problems (differences between Linux and OS X) that I gave up.

A different approach that might work is to use BouKiCHi's OS X build script for GCC and binutils for legacy Dingux and use that to replace the GCC and binutils in the Linux OD toolchain.
« Last Edit: November 03, 2012, 05:19:05 pm by mth »

slaanesh

  • *
  • Posts: 473
    • Slaanesh Dev
Re: Opendingux toolchain for Windows (Cygwin)
« Reply #4 on: November 07, 2012, 11:27:37 pm »
I had the same problems last time I tried, it was a pain in the *beep*

Pity there isn't better buildroot support of OS X.

 

Post a new topic