Build Error with Rev 6151

Page 1 of 1
5 posts
Build Error with Rev 6151

edrubins
New MMEX User

Posts: 2
Joined: Wed Feb 19, 2014 7:43 pm
Following the instructions in the thread ob building mmex under linux, I checked out revision 6151 from http://svn.code.sf.net/p/moneymanagerex ... on_1.0.0.0. I also install the wxWindows 3.0 packages from http://codelite.org/LiteEditor/WxWidgets30Binaries#toc2. When running the make I get the following error.
Code: Select all
/home/ed/Development/mmex/reliase/bk-deps g++ -c -o mmex_mmex.o -I../lib/wxsqlite3/sqlite3/secure/src -I../lib/wxsqlite3/include -I../lib -I../src -DNOPCH -I/usr/lib/x86_64-linux-gnu/wx/
include/gtk2-unicode-3.0-unofficial -I/usr/include/wx-3.0-unofficial -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -fPIC -DPIC  -g -O2 -std=c++0x -g0 -O2 ../src/mmex.cpp
In file included from ../src/mmex.cpp:60:0:
../src/import_export/qif_import.h:111:22: sorry, unimplemented: non-static data member initializers
../src/import_export/qif_import.h:111:22: error: ‘constexpr’ needed for in-class initialization of static data member ‘val’ of non-integral type
../src/import_export/qif_import.h:111:42: sorry, unimplemented: non-static data member initializers
../src/import_export/qif_import.h:111:42: error: ‘constexpr’ needed for in-class initialization of static data member ‘dSplitAmount’ of non-integral type
make: *** [mmex_mmex.o] Error 1


The error is occurring on the line declaring the val and sDSplitAmont variables in the m_data struct.
Code: Select all
 
struct m_data
    {
        wxDateTime dtdt;
        bool valid;
        bool trxComplited;
        int payeeID;
        int categID;
        int subCategID;
        int to_accountID;
        int from_accountID;
        wxString payeeString, type, amountString, transNum, notes;
        wxString dt, convDate, accountName, dateString, sToAccountName;
        wxString sFullCateg, sCateg, sSubCateg, sSplitCategs, sSplitAmount, sValid, sDescription;
        double val = 0.0, dSplitAmount = 0.0;
    } m_data;


Any help would be greatly appreciated.
TIA - ed
Re: Build Error with Rev 6151

Nikolay
MMEX Developer

Posts: 2266
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
try to change
double val = 0.0, dSplitAmount = 0.0;
to
double val, dSplitAmount;
Re: Build Error with Rev 6151

edrubins
New MMEX User

Posts: 2
Joined: Wed Feb 19, 2014 7:43 pm
That did it. I should have realized that line was the only one to initialize any variables.

Best, Ed.
Re: Build Error with Rev 6151

Nikolay
MMEX Developer

Posts: 2266
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
I recomend you trunk not 1.0.0.x
https://sourceforge.net/p/moneymanagere ... ree/trunk/
thre are new Report manager availale viewforum.php?f=16
Re: Re Build Error with Rev 6151

Nikolay
MMEX Developer

Posts: 2266
Joined: Sat Dec 06, 2008 8:27 am
Location: Sankt-Petersburg, Russia
Vikapolyak wrote:From latest git, Im getting as far as this:

g -c -m64 -pipe -Werror -Wno-unused-local-typedefs -g -D_REENTRANT -Wall -W -fPIC -DUSE_WEBSOCKET -DNO_SSL -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I../engine/src -I../engine/src/audio -I../ui/src -I. -o webaccess.o webaccess.cpp
webaccess.cpp:22:29: fatal error: QNetworkInterface: No such file or directory
#include <QNetworkInterface>

Include path missing? I have /usr/include/qt4/QtNetwork/QNetworkInterface and have done a make distclean/qmake. Thanks.
Are you spam bot?
Page 1 of 1
Who is online

Users browsing this forum: No registered users and 1 guest