Qt 5'ing PO

Discussion in 'Development General' started by Lamperi, Jan 1, 2013.

  1. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    I've started to work on getting PO compiled with Qt 5.

    The platform I am currently using is Qt 5 on Mac OSX with clang++ 3.1 / GCC 4.7. Using clang helps to detect possible bugs it has superior warning and error messages compared to GCC.

    Right now, I've gotten Utilities, PokemonInfo and BattleManager to compile with both compilers using Qt 5 and -std=c++11. The code is still compactible with GCC 4.7 using Qt 4.8 with some conditional preprocessor macros and defines in .pro files.

    The issue I faced was that Teambuilder fails to build as Qt 5 does not include phonon anymore. We probably need to start using QtMultiMedia for that.
     
  2. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    great. Just need to be able to read wav with multimedia!

    Also i'm all for a complete switch to qt 5, as soon as the sdk with mingw is provided on windows, and qt 5 libs are available on debian and such
     
  3. Fantu

    Fantu Member

    Joined:
    Dec 23, 2012
    Messages:
    36
    Likes Received:
    0
    I not found qt5 packages in debian repository, what name have?
     
  4. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Qt 5 was released three weeks ago so it is not yet in debian repos I think.

    We will try to maintain compactability with Qt 4 for now, but Qt 5 brings great benefits in QML which we use for animations. So lets hope distros will package it soon.
     
  5. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Ok, I have pushed a Qt 5 compactible branch into my github for Client and plugins. It doens't yet include sounds in the teambuilder though.
     
  6. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168