Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » General Wiimote and Technology » Programmers Den » Errors compiling wiiuse.dll
Pages: [1]
  Print  
Author Topic: Errors compiling wiiuse.dll  (Read 7829 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 3
Offline Offline
View Profile
« on: December 08, 2009, 06:42:30 AM »

Hi,
I'm just trying to get the wiiremote run with matlab. However, the mex file didn't work and so i'm attempting to recompile the wiiuse.dll as well as the fWIIne mex file.

When trying to compile it complains it cant open the file "hidsdi.h". So I included the directory "E:\WinDDK\7600.16385.0\inc\api" which contains this file as well as the other two files (hidusage.h and hidpi.h)  needed.

But as soon as I try to recompile now, it spits out a huge amount of syntax errors. The protocol looks like this:



------ Rebuild All started: Project: wiiuse, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'wiiuse', configuration 'Debug|Win32'
Compiling...
classic.c
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(189) : error C2054: expected '(' to follow '_Check_return_'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(189) : error C2146: syntax error : missing ')' before identifier 'FILE'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(189) : error C2085: '_filbuf' : not in formal parameter list
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(189) : error C2146: syntax error : missing ',' before identifier 'FILE'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(189) : error C2143: syntax error : missing ';' before '*'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(189) : error C2059: syntax error : ')'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(190) : error C2143: syntax error : missing ')' before 'type'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(190) : error C2085: '_Ch' : not in formal parameter list
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(190) : error C2085: '_Inout_' : not in formal parameter list
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(190) : error C2146: syntax error : missing ',' before identifier 'FILE'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(190) : error C2143: syntax error : missing ';' before '*'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(190) : error C2059: syntax error : ')'
...
...
..
About 100 more syntax errors which i thought would not be very helpfull Smiley
....
..
.
...
...
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(241) : error C2059: syntax error : ')'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(243) : error C2146: syntax error : missing ')' before identifier 'FILE'
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(243) : error C2085: '_File' : not in formal parameter list
e:\program files\microsoft visual studio 9.0\vc\include\stdio.h(243) : fatal error C1003: error count exceeds 100; stopping compilation
Generating Code...
Build log was saved at "file://c:\Documents and Settings\Keksmaster\Desktop\fWIIne\wiiuse_v0.12\src\msvc\Debug\BuildLog.htm"
wiiuse - 816 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========



At this point I unfortunatelly didn't know any further Sad ... Does anyone know a solution to this ??


thanks a lot!
Alex



Logged
*
Karma: +1/-0
Posts: 21
Offline Offline
View Profile WWW
« Reply #1 on: December 10, 2009, 11:17:34 AM »

Hi,

Then, did you configure the "Additionnal Library Directories" ?
The error looks to come from  missing configuration of the VS project.

By the way, I've just updated some docs. They may help you :
http://fwiineur.blogspot.com/2009/12/guide-and-manual-for-fwiine-v04.html


- Wiilliam
Logged
*
Karma: +0/-0
Posts: 3
Offline Offline
View Profile
« Reply #2 on: December 13, 2009, 05:30:43 AM »

The directories i included are:

wiiuse:

Additional included Directories: "E:\WinDDK\7600.16385.0\inc\api"
                                                   (included "..\api" because the folder "wxp" in that directory does not exist in my
                                                   Version and "api" contains the files "hidsdi.h..." needed)

Additional Library Directories:     "E:\WinDDK\7600.16385.0\lib\wxp\i386"
                                                   (not sure why i put this there)


fWIIne:

Additional included Directories: ..\dependencies\winddk\inc;"C:\Program Files\MATLAB\R2009b\extern\include"


Additional Library Directories:     E:\WinDDK\7600.16385.0\inc;"C:\Program Files\MATLAB\R2009b\extern\lib\win32\microsoft"



wiiuseexample:

Additional included Directories: ..\..\src\msvc\Debug;..\..\src;E:\WinDDK\7600.16385.0\inc\api


Additional Library Directories:     ..\..\src\msvc\Debug


Might it possibly play a role, that i have windows running on a virtual machine right now? -> VirtualBox running on an Ubuntu machine. Furthermore, i use Visual Studio 9.0.
« Last Edit: December 13, 2009, 05:43:22 AM by AlexTheWise » Logged
*
Karma: +0/-0
Posts: 3
Offline Offline
View Profile
« Reply #3 on: December 15, 2009, 01:29:39 AM »

Short update: I just tried compiling it with a different Version (2005) of Visual Studio and it worked just fine.
Logged
*
Karma: +1/-0
Posts: 21
Offline Offline
View Profile WWW
« Reply #4 on: January 06, 2010, 11:21:30 AM »

Hi,

Sorry, I missed some posts. Ok fine, it works.

By the way, some developers had an issue with WIND DDK release, too.
If you encounter this problem, you can download the older release WIN DDK 3790.1830 (size : 236MB) @
http://download.microsoft.com/download/9/0/f/90f019ac-8243-48d3-91cf-81fc4093ecfd/1830_usa_ddk.iso
(Burn the ISO image of WinDDK to a CDR disk, run the installer as usual)

(sources :
http://www.usefullcode.net/2009/03/windows_sdkddkwdkmsdn20093.html,
http://www.cygnal.org/ubb/Forum9/HTML/000734.html )


- Wiilliam
Logged
*
Karma: +0/-0
Posts: 2
Offline Offline
View Profile
« Reply #5 on: May 18, 2010, 09:41:23 AM »

thanks William! - was facing the exact same problem and downgrading DDK worked like a charm.
Logged
Pages: [1]
  Print  
 
Jump to:  

Clicky Web Analytics