Author Topic: How to compile Apps under Windows  (Read 3126 times)

Rikku2000 (OP)

  • Posts: 48
How to compile Apps under Windows
« on: May 23, 2010, 10:52:40 am »
Hello i want compile apps under Windows 7 so i download Cygwin and the
Toolchain so can anyone how to config it or anyone know to compile it so
maybe give me some help.

Thank you guys. :)

SiENcE

  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: How to compile Apps under Windows
« Reply #1 on: May 23, 2010, 11:54:45 am »
I think you mean to compile for dingux right?

go here
http://clogging.web.fc2.com/dingoo/

and take the: dingux cross compiler automatic build script for cygwin/mac os x 091213.

Install cygwin with packages:

make
wget
patch
gcc (gcc-core) 3.4.4
gcc-g++ 3.4.4
m4

create directories:
-----------------------
c:\cygwin\dingux\
c:\cygwin\dingux\bin
c:\cygwin\dingux\lib

dingux-cygwin.sh edit??? only if you need it!

Read the README.TXT from dingux-cross.zip and execute all steps.

Hello should be compiled.

--------------------
Howto update your own Makefiles?

Makefile updates:
update your make file:
TOOLCHAINDIR := /dingux
BINPATH    := $(TOOLCHAINDIR)/bin
LIBPATH    := $(TOOLCHAINDIR)/lib

ARCH   := mipsel-linux-uclibc-
CC   := ${BINPATH}/$(ARCH)gcc

for SDL update:
INCLUDES := -I${TOOLCHAINDIR}/mipsel-linux-uclibc/include/SDL

CFLAGS  += $(shell $(BINPATH)/sdl-config --cflags)
LDFLAGS += $(shell $(BINPATH)/sdl-config --libs)

execute:
chmod 777 /dingux/bin/sdl-config
« Last Edit: May 23, 2010, 07:24:32 pm by SiENcE »

Rikku2000 (OP)

  • Posts: 48
Re: How to compile Apps under Windows
« Reply #2 on: May 23, 2010, 12:23:21 pm »
Okey i write a small TuT how to compile:

Install the Toolchain:
Code: [Select]
[Dingux]How to run Compiling under Windows. by Rikku2000

Cygwin:
http://www.cygwin.com/setup.exe

Dingux Cross:
http://clogging.web.fc2.com/dingoo/dingux-cross.zip

Install:
Install Cygwin to "X:\" on install select the package:
- make
- wget
- patch
- gcc (gcc-core) 3.4.4
- gcc-g++ 3.4.4
- m4

Config Cygwin for Dingux:
After install start Cygwin and open the directory you install Cygwin here you create a new
Floder called "dingux" inside you make 2 New Floder called "bin" and "lib". Now extract
the "dingux-cross.zip" to the Cygwin root. done. :)

Final: Now copy the Dingux Toolchain in the rot of the Cygwin then enter in the Cygwin Consol:
sh /dingux-cygwin.sh
« Last Edit: May 23, 2010, 10:38:55 pm by Rikku2000 »

SiENcE

  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: How to compile Apps under Windows
« Reply #3 on: May 23, 2010, 07:23:52 pm »
Haha thats what i wrote....or ;-) ?

You should add, howto modify the makefiles to compile with this toolchain.

Rikku2000 (OP)

  • Posts: 48
Re: How to compile Apps under Windows
« Reply #4 on: May 23, 2010, 09:28:42 pm »
Yes but i write it for dummies XD so thats more easy to understand :P

SiENcE

  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: How to compile Apps under Windows
« Reply #5 on: May 23, 2010, 10:08:59 pm »
The tut is doubbled. Delete the second part.

And:
Quote
Config Cygwin for Dingux:
After install start Cygwin and how open the directory you install Cygwin goto: "/Home/<Username>/" here
you create a new Floder called "Dingux" inside you make 2 New Floder called "bin" and "lib". Now extract
the "dingux-cross.zip" to the Cygwin root. done. :)

Final: Now copy the Dingux Toolchain in the rot of the Cygwin then enter in the Cygwin Consol:
sh ./dingux-cygwin.sh
tar xjvf dingux_toolchain_20091022.tar.bz2 -C /opt/

I don't understand what this means?

1. You don't need to create a "Folder" in UserHome, you need to create it in cygwin root (As I wrote).
2. Extract only the "dingux-cross.zip" tools to UserHome.
3. then execute this tools via "sh dingux-cygwin.sh". If the script is done..you should have a hello.elf compiled.
4. You can delete this "dingux-cross.zip" tools folder.

Done. No need to extract dingux_toolchain_20091022.tar.bz2 manually! (all needed files are copied by the script).

Rikku2000 (OP)

  • Posts: 48
Re: How to compile Apps under Windows
« Reply #6 on: May 23, 2010, 10:37:19 pm »
Yes, i have allready edit this. Thank you for help SiENcE. Hope now anyone
understand this. By the way the dingux-cygwin.sh i start it when i put it in the
mainroot of cygwin it will work too. i use Windows 7.
« Last Edit: May 23, 2010, 10:41:59 pm by Rikku2000 »

Rikku2000 (OP)

  • Posts: 48
Re: How to compile Apps under Windows
« Reply #7 on: May 24, 2010, 01:14:31 pm »
hmm when i add in the comandline:
mipsel-linux-uclibc-gcc hello.c -o hello it give me an error back...

here:
crtbegin.o: No such file: no such file or directory
collect2: ld returned 1 exit status