Main Menu

make error : no makefile found

Started by ebit, April 03, 2015, 08:07:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

davidpbrown

#20
Following the server setup as 0.1.0, and thanks to puppies, this below worked for the GUI:

Quote
sudo apt-get install ruby-sass ri ruby-dev ruby-compass ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev
cmake -DINCLUDE_QT_WALLET=ON .
cd ./programs/web_wallet
sudo npm install -g lineman angular
sudo npm install
cd -
make buildweb
make

PlayTalk thread is at http://playtalk.org/index.php?topic=320.0
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

puppies

#19
I don't have a playtallk account yet so I will post this here.   It built just fine for me on a fresh Xubuntu 14.04. I followed standard instructions.
sudo apt-get update
sudo apt-get install cmake git libreadline-dev uuid-dev g++ libdb++-dev libdb-dev zip libssl-dev openssl build-essential python-dev autotools-dev libicu-dev libbz2-dev libboost-dev libboost-all-dev npm qt5-default libqt5webkit5-dev qttools5-dev qttools5-dev-tools nodejs-legacy
git clone https://github.com/dacsunlimited/dac_play.git
cd dac_play
git submodule udpate --init --recursive
cmake -DINCLUDE_QT_WALLET=ON .
cd programs/web_wallet
sudo npm install -g lineman
sudo npm install

For some reason I have been having to sudo the npm install. 
I then went back to standard install
cd ../..
make buildweb

This led to the same error that iHashFury is having.  So i took a closer look.

cd programs/web_wallet
lineman run

That led to
user@user-desktop:~/dac_play/programs/web_wallet$ lineman run
Running "common" task

Running "bower:install" (bower) task
>> Installed bower packages

Running "less:compile" (less) task
File generated/css/app.less.css created.

Running "ngtemplates:app" (ngtemplates) task
File generated/angular/template-cache.js created.

Running "sass:compile" (sass) task
Warning: You need to have Ruby and Sass installed and in your PATH for
this task to work. More info:
https://github.com/gruntjs/grunt-contrib-sass Used --force, continuing.
user@user-desktop:~/dac_play/programs/web_wallet$

So i did a sudo apt-get install ruby-sass
under suggested packages there was quite a list so I also did a sudo apt-get install ri ruby-dev ruby-compass ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev
I am not sure if these are required, but they seemed like a good idea. There were a couple of other packages listed, but apt-get couldn't resolve them. 

After than I did another lineman run, and it seemed to run through just fine.  So I Ctrl-C to kill it and cd ../..
make forcebuildweb
make PLAY


I typed this up mostly from memory, so please forgive any syntax errors.  Hope it helps.

**edit** forgot to add the standard qt_wallet dependencies.  they are now in the first dependency line.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

puppies

Quote from: davidpbrown on June 05, 2015, 06:32:53 PM
Including the 0.1.1 GUI?.. iHashFury suggesting the same GUI error as before.. see https://playtalk.org/index.php?topic=320.msg857

Yes.  GUI built for me.  I didn't checkout 0.1.1, I just built from master. 
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

davidpbrown

Including the 0.1.1 GUI?.. iHashFury suggesting the same GUI error as before.. see https://playtalk.org/index.php?topic=320.msg857
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

puppies

current source is now building just fine on Ubuntu.  I think the only extra dependency is ruby-sass.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

xeroc

Quote from: puppies on May 19, 2015, 02:52:39 AM
Nevermind.  Now that I have tried playing with it, it seems as if it did not build correctly.  I am getting a black screen once the wallet loads.  I will mess with it later, and see if I can figure it out.

Someone probably figured this out in the last month, but I don't see a post.  I was able to get the qt_wallet to build on ubuntu.  I did an approximation of

sudo npm install -g lineman
sudo npm install -g
npm install grunt-contrib-sass --save-dev
lineman run -v

wait 10 minutes for process to run then CTRL C (3 minutes is probably enough)

mkdir ../qt_wallet/htdocs
cp generated/* ../qt_wallet/htdocs
cd ../../build
make


This isn't exactly what I did as I was trying to figure out why it wouldn't build, but I believe this has everything that is needed other than the official instructions.  If this doesn't work for you please let me know, and I'll rebuild to ensure I got it all right.  I am not sure if
cd ../..build
make forcebuildweb
make

will work, but buildweb did not seem to be working for me at all.  I can try to figure out why it didn't work, but someone more knowledgeable than me could probably do it much faster.

You can use Firefox as frontend too if you want to check the lineman build:
http://wiki.bitshares.org/index.php/BitShares/Clients#Web-Frontend

puppies

#14
Nevermind.  Now that I have tried playing with it, it seems as if it did not build correctly.  I am getting a black screen once the wallet loads.  I will mess with it later, and see if I can figure it out.

Someone probably figured this out in the last month, but I don't see a post.  I was able to get the qt_wallet to build on ubuntu.  I did an approximation of

sudo npm install -g lineman
sudo npm install -g
npm install grunt-contrib-sass --save-dev
lineman run -v

wait 10 minutes for process to run then CTRL C (3 minutes is probably enough)

mkdir ../qt_wallet/htdocs
cp generated/* ../qt_wallet/htdocs
cd ../../build
make


This isn't exactly what I did as I was trying to figure out why it wouldn't build, but I believe this has everything that is needed other than the official instructions.  If this doesn't work for you please let me know, and I'll rebuild to ensure I got it all right.  I am not sure if
cd ../..build
make forcebuildweb
make

will work, but buildweb did not seem to be working for me at all.  I can try to figure out why it didn't work, but someone more knowledgeable than me could probably do it much faster.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

davidpbrown

See also HackFisher's reply on playtalk suggesting include angular, though I couldn't get a difference for installing that.
https://playtalk.org/index.php?topic=320.0
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

davidpbrown

Thanks @joele

This works for the server:
Quotecd ~/x/bitcoins/Play/
mkdir ./0.0.4
cd ./0.0.4
git clone https://github.com/dacsunlimited/dac_play.git
cd dac_play

rm -r libraries/leveldb
cd libraries
git clone https://github.com/bitcoin/leveldb.git
cd ../

git submodule update --init --recursive
cmake .
export LC_ALL="en_US.UTF-8"
make

Running
Quotecd ./programs/client
./play_client --server

# Error => fix the now existing config for rpc user & password
nano ~/.DACPLAY/config.json

#try again
cd ~/x/bitcoins/Play/0.0.4/dac_play/programs/client
./play_client --server


Note: I got these below that look like errors but still it works! :)
Quote
Submodule path 'libraries/fc': checked out 'fd4fc4f0cb21fc7b631ee2be827f6aea85e040d6'
fatal: reference is not a tree: 028f9409247be6d3d09a157e8eb347a173afc599

Unable to checkout '028f9409247be6d3d09a157e8eb347a173afc599' in submodule path 'libraries/leveldb'

--------------
However, less luck with the QT Wallet.
Quotecmake -DINCLUDE_QT_WALLET=ON .
cd ./programs/web_wallet
sudo npm install -g lineman
sudo npm install
cd -
make buildweb
make DacPlay

fails at the buildweb with:
Quote-- Spawning lineman build...
CMake Error at GenerateHtDocs.cmake:16 (message):
  lineman build spawn failed: '6'


make[3]: *** [programs/qt_wallet/CMakeFiles/buildweb] Error 1
make[2]: *** [programs/qt_wallet/CMakeFiles/buildweb.dir/all] Error 2
make[1]: *** [programs/qt_wallet/CMakeFiles/buildweb.dir/rule] Error 2
make: *** [buildweb] Error 2
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

joele

Quote from: bitcoinerS on April 20, 2015, 01:57:33 AM
I also have this problem. Can't build.


-- Using  as BerkeleyDB root
-- Looking for: db_cxx-6.0
-- debug/usr/lib/x86_64-linux-gnu/libdb_cxx.sooptimized/usr/lib/x86_64-linux-gnu/libdb_cxx.so
-- Found BerkeleyDB: /usr/include 
-- Enabling Bitcoin Core Wallet Imports
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so 
-- Found Readline: /usr/include 
-- Configuring done
CMake Error at CMakeLists.txt:206 (add_library):
  Cannot find source file:

    /home/local/dac_play/libraries/leveldb/port/port_posix.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx



Any solutions?

Try to remove the leveldb dir
install the bitcoin leveldb
then cmake

rm -r libraries/leveldb
cd libraries
git clone https://github.com/bitcoin/leveldb.git

xeroc

seems play faces the same issue that bitshares faced a few weeks ago:
https://github.com/BitShares/bitshares/issues/1490

paging @Hackfisher

bitcoinerS

Quote from: xeroc ¯\_(ツ)_/¯ on April 20, 2015, 05:57:28 AM

If I had to guess (and that's what I am doing here all the time) .. then I'd say you need to run a
git submodule --init update --recursive

$ git submodule  update --init --recursive
fatal: reference is not a tree: 028f9409247be6d3d09a157e8eb347a173afc599
Unable to checkout '028f9409247be6d3d09a157e8eb347a173afc599' in submodule path 'libraries/leveldb'
>>> approve bitcoiners

xeroc

Quote from: bitcoinerS on April 20, 2015, 01:57:33 AM
I also have this problem. Can't build.


-- Using  as BerkeleyDB root
-- Looking for: db_cxx-6.0
-- debug/usr/lib/x86_64-linux-gnu/libdb_cxx.sooptimized/usr/lib/x86_64-linux-gnu/libdb_cxx.so
-- Found BerkeleyDB: /usr/include 
-- Enabling Bitcoin Core Wallet Imports
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so 
-- Found Readline: /usr/include 
-- Configuring done
CMake Error at CMakeLists.txt:206 (add_library):
  Cannot find source file:

    /home/local/dac_play/libraries/leveldb/port/port_posix.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx



Any solutions?
If I had to guess (and that's what I am doing here all the time) .. then I'd say you need to run a
git submodule --init update --recursive

bitcoinerS

I also have this problem. Can't build.


-- Using  as BerkeleyDB root
-- Looking for: db_cxx-6.0
-- debug/usr/lib/x86_64-linux-gnu/libdb_cxx.sooptimized/usr/lib/x86_64-linux-gnu/libdb_cxx.so
-- Found BerkeleyDB: /usr/include 
-- Enabling Bitcoin Core Wallet Imports
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so 
-- Found Readline: /usr/include 
-- Configuring done
CMake Error at CMakeLists.txt:206 (add_library):
  Cannot find source file:

    /home/local/dac_play/libraries/leveldb/port/port_posix.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx



Any solutions?
>>> approve bitcoiners

joele

#6
Please someone show some commands how to fix the makefile problem.  Thanks :D

Edit 0: Issue solved in 'no makefile found' by installing leveldb

Edit 1: Now make has error
[ 56%] Building CXX object libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[2]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/chain_database.cpp.o] Error 4
make[1]: *** [libraries/blockchain/CMakeFiles/bts_blockchain.dir/all] Error 2
make: *** [all] Error 2

Edit 2: Memory problem, solved by using swapfile