View unanswered posts | View active topics It is currently Thu Aug 28, 2014 12:11 pm



Reply to topic  [ 3 posts ] 
 compile Dosbox for Wii (error) 
Author Message

Joined: Sun Oct 30, 2011 8:23 pm
Posts: 2
Hi,

i try to compile Dosbox 1.6 (r114 SVN) for Wii. http://code.google.com/p/dosbox-wii/
It compiles for about 10 Minutes and aborts always with this error:

> "make"
wiihardware.cpp
c:/devkitPro/DosboxWii_r114/src/platform/wii/wiihardware.cpp: In function 'void* PressKeys(void*)':
c:/devkitPro/DosboxWii_r114/src/platform/wii/wiihardware.cpp:90:14: error: 'usleep' was not declared in this scope
c:/devkitPro/DosboxWii_r114/src/platform/wii/wiihardware.cpp: In function 'void CreateAppPath(char*)':
c:/devkitPro/DosboxWii_r114/src/platform/wii/wiihardware.cpp:233:31: error: 'MAXPATHLEN' was not declared in this scope
c:/devkitPro/DosboxWii_r114/src/platform/wii/wiihardware.cpp: In function 'void WiiMenu()':
c:/devkitPro/DosboxWii_r114/src/platform/wii/wiihardware.cpp:242:13: error: 'usleep' was not declared in this scope
make[1]: *** [wiihardware.o] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2

I used different SDL versions but i cannot compile Dosbox Wii succesfully. I also added freetype 2.4.2 and zlib 1.2.5 as Libraries.
What am i doing wrong?


Sun Oct 30, 2011 8:37 pm
Profile
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1135
Location: UK
You're probably doing nothing wrong, the code you're trying to compile is missing a header somewhere. Add #include <unistd.h> to that source file.

_________________
devkitPro IRC support
Personal Blog


Mon Oct 31, 2011 1:21 am
Profile ICQ WWW

Joined: Sun Oct 30, 2011 8:23 pm
Posts: 2
Thx, it compiles successfully now. :D
:!: It was my fault, i used the SRC of the libraries and overwrote a file. It works out of the box if you install the PPC libraries correct. (freetype, libpng, tremor & zlib)


Mon Oct 31, 2011 6:29 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads