Coder Social home page Coder Social logo

open-transactions / moneychanger Goto Github PK

View Code? Open in Web Editor NEW
52.0 24.0 72.0 10.64 MB

A QT/C++ client for Open-Transactions.

C++ 39.82% C 51.96% Perl 0.61% Shell 0.13% Visual Basic 0.12% Prolog 0.08% QMake 0.23% CMake 0.44% Batchfile 0.01% Objective-C++ 0.01% Makefile 5.26% Assembly 0.05% M4 0.69% Objective-C 0.63%

moneychanger's Introduction

Moneychanger (System Tray Oriented)

An intuitive QT/C++ system tray client for Open-Transactions.

Development (and Manual) Build Instuctions

Please refer to the platform specific build notes located in the "doc" directory for errata and other information.

Download the latest moneychanger code (If you are planning to contribute please contact the devs in #opentransactions @ freenode.net irc chat)

git clone https://github.com/Open-Transactions/Moneychanger.git

IDE

Download QT tools (Qt Core Version 5.4.0+; 64bit compiling support Recomended for OT)

Open the moneychanger.pro file and press run.

First make sure you have installed the Open Transactions library.

Manual

cd Moneychanger
git submodule init && git submodule update
cd project
qmake && make -j4

(NB: qmake will be qmake-qt4 or qmake-qt5 on linux RH, Fedora)

Dependencies

(Only on Unix systems)

Install the following packages with your systems packagmanager (e.g. sudo apt-get install):

libidn11
libidn-devel
libcurl4
libcurl-devel
opentxs
protobuf
openssl > 1.0.0 (== 1.0.1h on OSX)
libzmq
libsodium

Note: qjsonrpc will be installed automatically as part of the 'make' command

Menu workaround for some window managers

Some window managers do not show the MoneyChanger icon in the systray. If Moneychanger starts and there's no tray menu icon, the following workaround will show the main menu in a separate window.

touch ~/.ot/knotworkpigeons

Then restart Moneychanger.

Contributing

All development goes in develop branch - please don't submit pull requests to master.

Please do NOT use an editor that automatically reformats.

moneychanger's People

Contributors

da2ce7 avatar domob1812 avatar fellowtraveler avatar justusranvier avatar khan-faiz avatar lclc avatar mhamrle avatar pipboy avatar randy-waterhouse avatar sdkfjlsfjlskdfjlsdjflsjf avatar yamamushi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moneychanger's Issues

Moneychanger issues on Linux Mint 16 based on Ubuntu 13.10

I can compile without error, but when I cd into the project/moneychanger directory and run:
./moneychanger-qt (with the otserver running in another window)

I get a "transaction history" window that seems functional, but the main moneychanger window is defunct, doesn't respond to "close window" event, and shows whatever was on the screen behind the window when it opened, rather than the moneychanger gui.

this is on Linux Mint 13.10

passwordcallback.hpp:10:1: error: expected class-name before '{' token

Log below.
Linux Mint
Linux h-desktop 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:30 UTC 2013 i686 athlon i686 GNU/Linux

compiling ../../src/core/applicationmc.cpp
In file included from ../../src/core/applicationmc.cpp:7:0:
../../src/core/passwordcallback.hpp:10:1: error: expected class-name before '{' token
../../src/core/applicationmc.cpp:25:55: error: 'OTCallback' has not been declared
../../src/core/applicationmc.cpp: In function 'bool SetupPasswordCallback(OTCaller&, int&)':
../../src/core/applicationmc.cpp:27:19: error: invalid use of incomplete type 'class OTCaller'
In file included from ../../src/core/applicationmc.cpp:14:0:
/usr/local/include/opentxs/OTAsymmetricKey.hpp:142:7: error: forward declaration of 'class OTCaller'
../../src/core/applicationmc.cpp: In member function 'void MTApplicationMC::appStarting()':
../../src/core/applicationmc.cpp:81:31: error: aggregate 'OTCaller passwordCaller' has incomplete type and cannot be defined
make[2]: *** [debug/applicationmc.o] Error 1
make[2]: Leaving directory /home/x/work/ot/Moneychanger/build-moneychanger-Desktop_Qt_5_1_1_GCC_32bit-Debug/moneychanger-qt' make[1]: Leaving directory/home/x/work/ot/Moneychanger/build-moneychanger-Desktop_Qt_5_1_1_GCC_32bit-Debug/moneychanger-qt'
make[1]: *** [debug] Error 2
make: *** [sub-moneychanger-qt-make_first-ordered] Error 2
04:51:00: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project moneychanger (kit: Desktop Qt 5.1.1 GCC 32bit)
When executing step 'Make'
04:51:00: Elapsed time: 00:17.

Issue with _CINTTYPES

I've been trying to build Moneychanger from both the commandline and from QT creator and I keep running into issues with cinttypes.

I've been trying to build it with llvm clangs and also with gcc-4.8 but neither work, from both the commandline and from within qt creator with qt 5.2.1.

Below is the error I get from the command line:

compiling ../src/core/stable.hpp
In file included from ../src/core/stable.hpp:6:
In file included from /usr/local/include/opentxs/stdafx.hpp:7:
In file included from /usr/local/include/opentxs/stdafx.h:12:
/usr/local/include/opentxs/OTCommon.hpp:11:10: fatal error: 'cinttypes' file not found
#include _CINTTYPES
         ^
/usr/local/include/opentxs/TR1_Wrapper.hpp:19:20: note: expanded from macro '_CINTTYPES'
#define _CINTTYPES <cinttypes>
                   ^
1 error generated.
make[1]: *** [release/moneychanger-qt/objective-c++.pch] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [release] Error 2

Any idea why this is happening?

mcrpcservice.cpp

Hi There,

Thank you very much for updating the repo ..

Can i ask you about this ../../src/rpc/mcrpcservice.cpp ?

/usr/include/qt5/QtCore/qjsonobject.h:57:5: note: candidate expects 0 arguments, 1 provided
make[2]: *** [release/mcrpcservice.o] Error 1
make[2]: Leaving directory /root/Moneychanger/project/moneychanger-qt' make[1]: *** [release] Error 2 make[1]: Leaving directory/root/Moneychanger/project/moneychanger-qt'
make: *** [sub-moneychanger-qt-make_first-ordered] Error 2

I got error and i can't compiler it ..

Regards,

ytz

Debian Dependecies unmet

When trying to install the dependencies on debian I get the following:
rojaslee@debian:~$ sudo apt-get install libidn11 libidn-devel libcurl4 libcurl-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libcurl3:i386 libcurl3

E: Unable to locate package libidn-devel
E: Package 'libcurl4' has no installation candidate
E: Unable to locate package libcurl-devel

Do you have a better set of installation instructions, like the ones for the Open-Transactions-master?

Thanks

Segmentation fault when creating nym

When creating a new nym from a fresh install state (~/.ot does not exist), Moneychanger crashes immediately after entering the master password:

Welcome to Open Transactions -- version 0.94.0-482-g851da7a
Adding DB 
"File Handler File does not Exist." 
"/var/lib/justus/.ot//mc_db" 
Database opened 
Creating Tables 
"Database /mc_db created." 
Lanugage Setting wasn't set in the database. Inserting system default:  "en_US" 
Could not update language to:  "en_US.qm" 
OTCaller::setCallback: Attempting to set the password OTCallback pointer...
OTCaller::setCallback: FYI, the password OTCallback pointer was set.
OTLookupCaller::setCallback: Attempting to set the OTNameLookup pointer...
OTLookupCaller::setCallback: FYI, the OTNameLookup pointer was set.
LoadWallet: Wallet file does not exist: wallet.xml. Creating...
Loading pending name registrations: 
Namecoin update timer called. 
No operations necessary that need an unlocked wallet. 
Setting up Nym table 
Default Nym wasn't set in the database. Inserting blank record... 
Default Server wasn't set in the database. Inserting blank record... 
Default Asset Type wasn't set in the database. Inserting blank record... 
Default Account wasn't set in the database. Inserting blank record... 
Database Populated 
"" 
"" 
QMetaObject::connectSlotsByName: No matching signal for on_refreshButton_clicked()
Overview Opened 
QMetaObject::connectSlotsByName: No matching signal for on_viewContactButton_clicked(bool)
QMetaObject::connectSlotsByName: No matching signal for on_addContactButton_clicked(bool)
QMetaObject::connectSlotsByName: No matching signal for on_existingContactButton_clicked(bool)
QMetaObject::connectSlotsByName: No matching signal for on_deleteButton_clicked(bool)
QMetaObject::connectSlotsByName: No matching signal for on_acceptButton_clicked(bool)
QMetaObject::connectSlotsByName: No matching signal for on_cancelButton_clicked(bool)
QMetaObject::connectSlotsByName: No matching signal for on_discardOutgoingButton_clicked(bool)
QMetaObject::connectSlotsByName: No matching signal for on_discardIncomingButton_clicked(bool)
QMetaObject::connectSlotsByName: No matching signal for on_msgButton_clicked(bool)
================ Populate: Looping through the accounts in the wallet...
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QMetaObject::connectSlotsByName: No matching signal for on_btnAddressAdd_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_btnAddressDelete_clicked()
....++++++
.......................++++++
OTCaller::callTwo: FYI, Executing password callback (two)...
QMetaObject::connectSlotsByName: No matching signal for on_MTDlgPasswordConfirm_accepted()
OTCaller::GetPassword: FYI, returning password after invoking a (probably Java) password dialog.
souped_up_pass_cb: 0 length password was returned from the API password callback. Substituting default password 'test'.
BuildFolderPath: Made new folder: /var/lib/justus/.ot/client_data/certs/
BuildFolderPath: Made new folder: /var/lib/justus/.ot/client_data/nyms/
......++++++
......++++++
.........++++++
..++++++
BuildFolderPath: Made new folder: /var/lib/justus/.ot/client_data/credentials/
BuildFolderPath: Made new folder: /var/lib/justus/.ot/client_data/credentials/otx8eED7ts6YKeR3ti9dr6XRwUWYZuvy5izx/
....++++++
...............++++++
....++++++
...................++++++
.............................................................................................++++++
..............................................................++++++
"" 
"" 
MTDetailEdit Iteration:  0 
"MTDetailEdit::RefreshRecords: Name: Justus, ID: otx8eED7ts6YKeR3ti9dr6XRwUWYZuvy5izx" 
"SETTING current row to 0 on the tableWidget." 
SETTING current row to  0  on the tableWidget. 
"NYM ID: otx8eED7ts6YKeR3ti9dr6XRwUWYZuvy5izx" 
Segmentation fault

Missing License file

I think it's important to add a licence as early as possible.
At least after Swiss law everything is closed source if there is no file which says it isn't. Also when it's on github.

I think trusting a closed source OT client is a bad idea. So that nobody can fork it and make it CS, GPLv3 is the best solution. You could use the MIT for ot_worker.h/.cpp, MTRecordList.h/.cpp and MTRecord.h/.cpp, since you use them in your Monetas iPhone App (right?) and MIT allows the usage in CS projects.
What do you think?

And BTW: It's also quite confusing that the Java test GUI and this Qt client both have the same name. Maybe we should rename one?

Cannot compile on OSX High Sierra - auto_ptr not in namespace std

/Users/yamamushi/programming/projects/Moneychanger/src/core/handlers/contacthandler.cpp:1362:26: error: no member named 'auto_ptr' in namespace 'std' std::auto_ptr<DBHandler::PreparedQuery> qu; ~~~~~^ /Users/yamamushi/programming/projects/Moneychanger/src/core/handlers/contacthandler.cpp:1362:59: error: expected '(' for function-style cast or type construction std::auto_ptr<DBHandler::PreparedQuery> qu;

This is also triggered in xmlrpc-c

/usr/local/include/xmlrpc-c/girmem.hpp:45:10: error: no template named 'auto_ptr' in namespace 'std' std::auto_ptr<Impl> const implP; ~~~~~^ /usr/local/include/xmlrpc-c/girmem.hpp:45:25: error: expected member name or ';' after declaration specifiers std::auto_ptr<Impl> const implP; ~~~~~~~~~~~~~ ^

And

In file included from /usr/local/include/xmlrpc-c/client.hpp:10: /usr/local/include/xmlrpc-c/girmem.hpp:45:10: error: no template named 'auto_ptr' in namespace 'std' std::auto_ptr<Impl> const implP; ~~~~~^ /usr/local/include/xmlrpc-c/girmem.hpp:45:25: error: expected member name or ';' after declaration specifiers std::auto_ptr<Impl> const implP;

I'm still looking into how to resolve this.

ld: library not found for -lboost_system-mt

compiling release/qrc_resource.cpp
linking moneychanger-qt.app/Contents/MacOS/moneychanger-qt
ld: library not found for -lboost_system-mt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [moneychanger-qt.app/Contents/MacOS/moneychanger-qt] Error 1
make[1]: *** [release] Error 2
make: *** [sub-moneychanger-qt-make_default-ordered] Error 2

make from Moneychanger/project

Moneychanger on OSX

I've tried installing Moneychanger with Qt creator on OSX.
When trying to build, it gives me the following error:

opentxs development package not found

In this forum: http://opentransactions.org/forum/index.php?topic=3741.0 they recommend to add /usr/local/bin to the "Build Environment" section of Qt section, but I'm not sure exactly what that means.

Thanks and sorry for the amateur question!

Moneychanger on OSX

I've tried installing Moneychanger with Qt creator on OSX.
When trying to build, it gives me the following error:

opentxs development package not found

In this forum: http://opentransactions.org/forum/index.php?topic=3741.0 they recommend to add /usr/bin/local to the "Build Environment" section of Qt section, but I'm not sure exactly what that means.

Thanks and sorry for the amateur question!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.