Author Topic: make error : no makefile found  (Read 8499 times)

0 Members and 1 Guest are viewing this topic.

Offline davidpbrown

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
« Last Edit: June 06, 2015, 12:29:14 pm by davidpbrown »
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
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.
« Last Edit: June 05, 2015, 07:22:38 pm by puppies »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
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. 
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline 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

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
current source is now building just fine on Ubuntu.  I think the only extra dependency is ruby-sass.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
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.
« Last Edit: May 19, 2015, 02:57:11 am by puppies »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline 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

Offline davidpbrown

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
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

Offline joele

  • Sr. Member
  • ****
  • Posts: 467
    • View Profile
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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
seems play faces the same issue that bitshares faced a few weeks ago:
https://github.com/BitShares/bitshares/issues/1490

paging @Hackfisher

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile

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'
>>> approve bitcoiners

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
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?
>>> approve bitcoiners

Offline joele

  • Sr. Member
  • ****
  • Posts: 467
    • View Profile
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
« Last Edit: April 08, 2015, 07:05:26 am by joele »