Build Error with Rev 6151

Money Manager Ex Development related posts
(http://github.moneymanagerex.org/)

Moderator: Renato

Post Reply
edrubins
New MMEX User
Posts: 7
Joined: Thu Feb 20, 2014 1:43 am
Are you a spam bot?: No

Build Error with Rev 6151

Post by edrubins »

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

Nikolay
MMEX Developer
Posts: 1377
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Build Error with Rev 6151

Post by Nikolay »

try to change
double val = 0.0, dSplitAmount = 0.0;
to
double val, dSplitAmount;

edrubins
New MMEX User
Posts: 7
Joined: Thu Feb 20, 2014 1:43 am
Are you a spam bot?: No

Re: Build Error with Rev 6151

Post by edrubins »

That did it. I should have realized that line was the only one to initialize any variables.

Best, Ed.

Nikolay
MMEX Developer
Posts: 1377
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Build Error with Rev 6151

Post by Nikolay »

I recomend you trunk not 1.0.0.x
https://sourceforge.net/p/moneymanagere ... ree/trunk/
thre are new Report manager availale http://www.codelathe.com/forum/viewforum.php?f=16

Nikolay
MMEX Developer
Posts: 1377
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Re Build Error with Rev 6151

Post by Nikolay »

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?

Post Reply