New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Difficulty building goldendict on windows

General discussion

Difficulty building goldendict on windows

Postby steveja » Fri Nov 14, 2014 5:51 am

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?
steveja
 
Posts: 6
Joined: Fri Nov 14, 2014 12:40 am

Re: Difficulty building goldendict on windows

Postby Abs62 » Fri Nov 14, 2014 3:01 pm

To compile GD with Qt5 use "qt4x5" branch from git, not "master".
Abs62
 
Posts: 631
Joined: Mon Jun 14, 2010 11:51 am

Re: Difficulty building goldendict on windows

Postby steveja » Sun Nov 23, 2014 10:42 pm

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?
steveja
 
Posts: 6
Joined: Fri Nov 14, 2014 12:40 am


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests