Author Topic: wallet ubuntu compile  (Read 1159 times)

SatoshisLiver

  • Newbie
  • *
  • Posts: 28
    • View Profile
wallet ubuntu compile
« on: March 11, 2016, 10:45:59 am »
gruezi georgem,
  just a hint - trying to compile your actual source gives me an error on ubuntu.
/src/leveldb/libleveldb.a and /src/leveldb/libmemenv.a was missing for me.
my workaround was to use the existing files from a pretty old spread wallet compile.

kind regards!

georgem

  • Tech Admin
  • ******
  • Posts: 880
    • View Profile
Re: wallet ubuntu compile
« Reply #1 on: March 11, 2016, 11:06:03 am »
gruezi georgem,
  just a hint - trying to compile your actual source gives me an error on ubuntu.
/src/leveldb/libleveldb.a and /src/leveldb/libmemenv.a was missing for me.
my workaround was to use the existing files from a pretty old spread wallet compile.

kind regards!

Oh, I see, I had building of leveldb disabled in the bitcoin.pro file for some reason.
I'll put it back in.

SatoshisLiver

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: wallet ubuntu compile
« Reply #2 on: June 04, 2017, 06:24:04 pm »
...is there a way to compile the GUI wallet with ubuntu 16.x.x LTS?
I was stuck on ubuntu 14 with this wallet a long time... but now I had to move...

In file included from src/qt/rpcconsole.cpp:49:0:
src/qt/rpcconsole.moc:14:2: error: #error "This file was generated using the moc from 5.4.0. It"
 #error "This file was generated using the moc from 5.4.0. "

georgem

  • Tech Admin
  • ******
  • Posts: 880
    • View Profile
Re: wallet ubuntu compile
« Reply #3 on: June 04, 2017, 07:26:47 pm »
...is there a way to compile the GUI wallet with ubuntu 16.x.x LTS?
I was stuck on ubuntu 14 with this wallet a long time... but now I had to move...

In file included from src/qt/rpcconsole.cpp:49:0:
src/qt/rpcconsole.moc:14:2: error: #error "This file was generated using the moc from 5.4.0. It"
 #error "This file was generated using the moc from 5.4.0. "

delete all previous files in your build folder, there shouldn't be anything in there, then try again.

SatoshisLiver

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: wallet ubuntu compile
« Reply #4 on: June 05, 2017, 06:58:45 am »
delete all previous files in your build folder, there shouldn't be anything in there, then try again.


Thanks for your hint - but I already tried it with a fresh git clone from https://github.com/spreadcoin/spreadcoin
I think i'm not the only one as you could see here https://github.com/spreadcoin/spreadcoin/issues/13

The daemon is compliable without any problem with the latest ubuntu.

georgem

  • Tech Admin
  • ******
  • Posts: 880
    • View Profile
Re: wallet ubuntu compile
« Reply #5 on: June 05, 2017, 12:19:33 pm »
Thanks for your hint - but I already tried it with a fresh git clone from https://github.com/spreadcoin/spreadcoin
I think i'm not the only one as you could see here https://github.com/spreadcoin/spreadcoin/issues/13

The daemon is compliable without any problem with the latest ubuntu.

Just delete any *.moc files you find.

For some reason (commiting files that should rather be ".gitignored" I guess), some *.moc files can still be found in the /src/qt folder,
but they shouldn't be there by default, they have to be created by your setup during compilation.

EDIT: I removed the moc-files from the source code, you can download and try again.

SatoshisLiver

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: wallet ubuntu compile
« Reply #6 on: June 06, 2017, 06:06:54 am »
EDIT: I removed the moc-files from the source code, you can download and try again.

thanks, the vanitygenpage makes trouble afterwards.

src/qt/vanitygenpage.cpp:15:22: fatal error: QJsonArray: No such file or directory
compilation terminated.

georgem

  • Tech Admin
  • ******
  • Posts: 880
    • View Profile
Re: wallet ubuntu compile
« Reply #7 on: June 06, 2017, 10:15:05 am »
EDIT: I removed the moc-files from the source code, you can download and try again.

thanks, the vanitygenpage makes trouble afterwards.

src/qt/vanitygenpage.cpp:15:22: fatal error: QJsonArray: No such file or directory
compilation terminated.

What build environment are you using on ubuntu?
How do you specify what Qt-Version is used?

You'll probably be better off doing everything with QtCreator.
Are you?