Post
Topic
Board Announcements (Altcoins)
Re: [ANN][TC][TorrentCoin]|POW|X13|DGW|new wallet|
by
torrentcointeam
on 09/06/2014, 13:57:16 UTC
The new wallet looks good in the screenshot, could you please push the update to github?

commit  now.

Thanks!

Linux support seems a bit lacking in these releases though.
To compile on Linux, I had to:

1. On line 120 of torretcoin-qt.pro:
Change the line to read: INCLUDEPATH += src/leveldb/include src/leveldb/helpers

2. On line 121 of torrentcoin-qt.pro:
Change line to read: LIBS += src/leveldb/libleveldb.a src/leveldb/libmemenv.a

3. Near the top of src/qt/torrentpage.cpp, add this code (borrowed from http://www.jb.man.ac.uk/~slowe/cpp/itoa.html#newest ):
Code:
char* itoa(int value, char* result, int base) {
// check that the base if valid
if (base < 2 || base > 36) { *result = '\0'; return result; }

char* ptr = result, *ptr1 = result, tmp_char;
int tmp_value;

do {
tmp_value = value;
value /= base;
*ptr++ = "zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz" [35 + (tmp_value - value * base)];
} while ( value );

// Apply negative sign
if (tmp_value < 0) *ptr++ = '-';
*ptr-- = '\0';
while(ptr1 < ptr) {
tmp_char = *ptr;
*ptr--= *ptr1;
*ptr1++ = tmp_char;
}
return result;
}

4. $cd src/leveldb
$chmod 755 build_detect_platform
$make libleveldb.a libmemenv.a
$cd ../..
$qmake
$make


Dev, you should test your code on Linux too!

I hope these changes don't introduce any bugs...




Code:
QString s = QString::number(index, 10); 
std::vector args;
args.push_back("getblockhash");
args.push_back(s.toStdString());


thank you!