BitShares Forum

Other => Graveyard => DAC PLAY => Topic started by: ebit on April 03, 2015, 08:07:20 am

Title: make error : no makefile found
Post by: ebit on April 03, 2015, 08:07:20 am
ubuntu:


-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a (found version "1.0.1f")
** for a debug build: cmake -DCMAKE_BUILD_TYPE=Debug ..
-- Finished fc module configuration...
-- 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
-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)
-- Found Readline: /usr/include
-- Configuring done
CMake Error at CMakeLists.txt:206 (add_library):
  Cannot find source file:

    /root/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


-- Build files have been written to: /root/dac_play/build
root@li9:~/dac_play/build# export LC_ALL="en_US.UTF-8"
root@li9:~/dac_play/build# make
make: *** No targets specified and no makefile found.  Stop.
Title: Re: make error : no makefile found
Post by: pc on April 03, 2015, 09:59:22 am
You need to install libncurses-dev or something like that. Edit: forget that, I misread the error message.
Title: Re: make error : no makefile found
Post by: ripplexiaoshan on April 03, 2015, 11:48:45 am
same error here, any tutorial?
Title: Re: make error : no makefile found
Post by: vikram on April 03, 2015, 07:19:59 pm
This might not be the only error here, but it seems that recently the upstream LevelDB submodule repo (https://github.com/bitcoin/leveldb) was modified and you may not have it actually checked out in "libraries/leveldb".
Title: Re: make error : no makefile found
Post by: ebit on April 04, 2015, 01:44:42 am
 +5%thanks
Title: Re: make error : no makefile found
Post by: joele on April 08, 2015, 03:08:39 am
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
Title: Re: make error : no makefile found
Post by: bitcoinerS on April 20, 2015, 01:57:33 am
I also have this problem. Can't build.

Code: [Select]
-- 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?
Title: Re: make error : no makefile found
Post by: xeroc on April 20, 2015, 05:57:28 am
I also have this problem. Can't build.

Code: [Select]
-- 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
Code: [Select]
git submodule --init update --recursive
Title: Re: make error : no makefile found
Post by: bitcoinerS on April 20, 2015, 06:06:47 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
Code: [Select]
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'
Title: Re: make error : no makefile found
Post by: xeroc on April 20, 2015, 07:16:09 am
seems play faces the same issue that bitshares faced a few weeks ago:
https://github.com/BitShares/bitshares/issues/1490

paging @Hackfisher
Title: Re: make error : no makefile found
Post by: joele on April 20, 2015, 12:38:54 pm
I also have this problem. Can't build.

Code: [Select]
-- 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
Title: Re: make error : no makefile found
Post by: davidpbrown on April 20, 2015, 03:26:22 pm
Thanks @joele

This works for the server:
Quote
cd ~/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
Quote
cd ./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.
Quote
cmake -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
Title: Re: make error : no makefile found
Post by: davidpbrown on April 20, 2015, 05:08:25 pm
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
Title: Re: make error : no makefile found
Post by: 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
Code: [Select]
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)
Code: [Select]
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
Code: [Select]
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.
Title: Re: make error : no makefile found
Post by: xeroc on May 19, 2015, 06:26:00 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
Code: [Select]
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)
Code: [Select]
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
Code: [Select]
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
Title: Re: make error : no makefile found
Post by: puppies on June 05, 2015, 06:14:26 pm
current source is now building just fine on Ubuntu.  I think the only extra dependency is ruby-sass.
Title: Re: make error : no makefile found
Post by: 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
Title: Re: make error : no makefile found
Post by: puppies on June 05, 2015, 06:58: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. 
Title: Re: make error : no makefile found
Post by: puppies on June 05, 2015, 07:18:24 pm
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.
Code: [Select]
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
Code: [Select]
cd ../..
make buildweb
This led to the same error that iHashFury is having.  So i took a closer look.
Code: [Select]
cd programs/web_wallet
lineman run
That led to
Code: [Select]
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
Code: [Select]
sudo apt-get install ruby-sassunder suggested packages there was quite a list so I also did a
Code: [Select]
sudo apt-get install ri ruby-dev ruby-compass ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-devI 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
Code: [Select]
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.
Title: Re: make error : no makefile found
Post by: davidpbrown on June 06, 2015, 12:27:13 pm
Following the server setup (https://bitsharestalk.org/index.php/topic,15451.msg203387.html#msg203387) 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