Results 1 to 2 of 2

Thread: Compiling QT program with Wiiyourself error help

  1. #1
    Join Date
    Jan 2013
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Compiling QT program with Wiiyourself error help

    Hey Team,

    I am trying to write a program that interfaces with the Wii balance board using the wiiyourself library (http://wiiyourself.gl.tter.org/). When I include the files into my project as it states in the readme, it throws up tonnes of compile error messages, mainly :

    error: cannot convert 'const char*' to 'const TCHAR* {aka const wchar_t*}' in initialization

    There is about 100 of these errors in the wiimote.cpp which came from the wiiyourself library.

    Some of the other errors include:

    error: '_vsnprintf' was not declared in this scope
    error: cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}' for argument '1' to 'HINSTANCE__* LoadLibraryW(LPCWSTR)'
    etc etc

    Can this library be compiled with MINGW, if so what am I missing? (I have written my program and chosen other libraries based on MINGW so don't want to change if possible).

    Thanks in advance.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Compiling QT program with Wiiyourself error help

    Can this library be compiled with MINGW
    Well, the ReadMe.txt file implies it can, and the demo source comes with scripts to build using MinGW.

    The library source is expecting wide strings because the UNICODE define is present (I guess). Somewhere to look.

    Nothing to do with Qt of course.

Similar Threads

  1. Need help compiling a program....
    By MyPianoSucks in forum Qt Programming
    Replies: 8
    Last Post: 3rd January 2011, 00:32
  2. Interrupt/Exception caught while compiling Qt program
    By Qt Coder in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2010, 22:08
  3. Replies: 1
    Last Post: 15th February 2010, 23:20
  4. LNK 2019 Error while compiling qt program in VS2008
    By mevkurray in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 7th February 2010, 00:29
  5. Replies: 1
    Last Post: 25th October 2008, 19:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.