Page 1 of 1

Difficulty building goldendict on windows

PostPosted: Fri Nov 14, 2014 5:51 am
by steveja
I used git clone to get the repository and installed the latest qt (5.3) and mingw but get compile errors in qtcreator, the first is.
    bgl_babylon.cc(781) : error C2196: case value '1' already used
which is due to DEFAULT_CHARSET being defined a second time in C:\Program Files (x86)\Windows Kits\8.1\Include\um\wingdi.h

I then tried installing qt 4.5.3, it doesn't have qtcreator, but when I qmake and then make I get this error:
    In file included from mainwindow.hh:13:0,
    from main.cc:7:
    build/ui_mainwindow.h:13:29: fatal error: QtWidgets/QAction: No such file or dir
    ectory
    #include <QtWidgets/QAction>
    ^
    compilation terminated.
    Makefile.Debug:1588: recipe for target 'build/main.o' failed

What do I need to do to get it to build?

Re: Difficulty building goldendict on windows

PostPosted: Fri Nov 14, 2014 3:01 pm
by Abs62
To compile GD with Qt5 use "qt4x5" branch from git, not "master".

Re: Difficulty building goldendict on windows

PostPosted: Sun Nov 23, 2014 10:42 pm
by steveja
Thanks. I checked out the qt4x5 branch and still got compile errors, which I resolved by adding
Code: Select all
#ifdef _MSC_VER
#include <stub_msvc.h>
#endif
to the files: epwing_book.cc epwing.cc mainwindow.cc

I am still getting one error on linking
LINK : fatal error LNK1181: cannot open input file 'z.lib'


What is the fix for this?