Author Topic: how to setup the development workspace  (Read 14069 times)

0 Members and 1 Guest are viewing this topic.

Offline CrazyCriple

  • Full Member
  • ***
  • Posts: 51
    • View Profile
I also have a problem compiling.

-- Colud not find Berkeley DB <= 4.1 (missing: BDB_CXX_INCLUDE_DIR ...)

I dont need Berkeley db or do I?

Offline crazybit


hello everyone,i compile bitshares on centos,but there are some erros:
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1111 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:61 (FIND_PACKAGE)


-- Could NOT find Boost
CMake Warning (dev) at CMakeLists.txt:91 (set):
  Cannot set "BOOST_LIBRARIES": current scope has no parent.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)




------------------------
how could i fix these issues?

Any help will be appreciated,thanks.
build and install the boost accordingly.


Sent from my iPhone using Tapatalk

Offline lib

  • Sr. Member
  • ****
  • Posts: 243
  • liberty
    • View Profile
hello everyone,i compile bitshares on centos,but there are some erros:
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1111 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:61 (FIND_PACKAGE)


-- Could NOT find Boost
CMake Warning (dev) at CMakeLists.txt:91 (set):
  Cannot set "BOOST_LIBRARIES": current scope has no parent.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)

------------------------
how could i fix these issues?

Any help will be appreciated,thanks.

Did you have Boost library installed?
Download it here http://www.boost.org/ and build it from the source.
Forum Donation: PforumPLfVQXTi4QpQqKwoChXHkoHcxGuA
Personal Address: PakhuBkqTu4oTHJ4ZffvzVwCGCMfuqazgm

Offline SuanBing

  • Full Member
  • ***
  • Posts: 92
    • View Profile
    • Bitshares News
hello everyone,i compile bitshares on centos,but there are some erros:
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1111 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:61 (FIND_PACKAGE)


-- Could NOT find Boost
CMake Warning (dev) at CMakeLists.txt:91 (set):
  Cannot set "BOOST_LIBRARIES": current scope has no parent.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)




------------------------
how could i fix these issues?

Any help will be appreciated,thanks.
BitsharesNews.com
我的微博
pts: PkyZq51PFLHonjzKdUDunzA52TDMR2tRrn

Offline cgafeng


Finally, succuss build the solution, and generate the exe.

To fix the above link errors, in CMakeLists.txt of Keyhotee, the coroutine module is missed:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess the
coder fogot it in WIN32.

FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time
system filesystem program_options signals serialization chrono
unit_test_framework context coroutine)
请问下你怎么编译leveldb-win的,用vs2012吗。
如果用vs2012的话,找不到CMakeLists.txt,没法用cmake创建工程。
如果可以的话麻烦你把解决步骤写详细点,谢谢

for win32 platform, you should clone leveldb(https://github.com/InvictusInnovations/leveldb-win) into keyhotee/BitShares/vendor/


Sent from my iPhone using Tapatalk

yes, but there is not CMakeLists.txt

use the "windows" branch but no "master" branch

oh, there is it.  Thank you!
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

Offline crazybit


Finally, succuss build the solution, and generate the exe.

To fix the above link errors, in CMakeLists.txt of Keyhotee, the coroutine module is missed:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess the
coder fogot it in WIN32.

FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time
system filesystem program_options signals serialization chrono
unit_test_framework context coroutine)
请问下你怎么编译leveldb-win的,用vs2012吗。
如果用vs2012的话,找不到CMakeLists.txt,没法用cmake创建工程。
如果可以的话麻烦你把解决步骤写详细点,谢谢

for win32 platform, you should clone leveldb(https://github.com/InvictusInnovations/leveldb-win) into keyhotee/BitShares/vendor/


Sent from my iPhone using Tapatalk

yes, but there is not CMakeLists.txt

use the "windows" branch but no "master" branch

Offline cgafeng


Finally, succuss build the solution, and generate the exe.

To fix the above link errors, in CMakeLists.txt of Keyhotee, the coroutine module is missed:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess the
coder fogot it in WIN32.

FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time
system filesystem program_options signals serialization chrono
unit_test_framework context coroutine)
请问下你怎么编译leveldb-win的,用vs2012吗。
如果用vs2012的话,找不到CMakeLists.txt,没法用cmake创建工程。
如果可以的话麻烦你把解决步骤写详细点,谢谢

for win32 platform, you should clone leveldb(https://github.com/InvictusInnovations/leveldb-win) into keyhotee/BitShares/vendor/


Sent from my iPhone using Tapatalk

yes, but there is not CMakeLists.txt
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

Offline crazybit


Finally, succuss build the solution, and generate the exe.

To fix the above link errors, in CMakeLists.txt of Keyhotee, the coroutine module is missed:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess the
coder fogot it in WIN32.

FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time
system filesystem program_options signals serialization chrono
unit_test_framework context coroutine)
请问下你怎么编译leveldb-win的,用vs2012吗。
如果用vs2012的话,找不到CMakeLists.txt,没法用cmake创建工程。
如果可以的话麻烦你把解决步骤写详细点,谢谢

for win32 platform, you should clone leveldb(https://github.com/InvictusInnovations/leveldb-win) into keyhotee/BitShares/vendor/


Sent from my iPhone using Tapatalk

Offline cgafeng

Finally, succuss build the solution, and generate the exe.

To fix the above link errors, in CMakeLists.txt of Keyhotee, the coroutine module is missed:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess the
coder fogot it in WIN32.

FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time
system filesystem program_options signals serialization chrono
unit_test_framework context coroutine)
请问下你怎么编译leveldb-win的,用vs2012吗。
如果用vs2012的话,找不到CMakeLists.txt,没法用cmake创建工程。
如果可以的话麻烦你把解决步骤写详细点,谢谢
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

Offline crazybit

problem solved.

Can VS2010 compile the keyhotee and bitshares workspace and build executable keyhotee application?  is VS2012 required?

Finally, succuss build the soluction, and generate the exe.

For the above link errors, fix it in CMakeLists.txt of Keyhotee:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess may the
coder fogot it in WIN32.

Code: [Select]
FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time system filesystem program_options signals serialization chrono unit_test_framework context [color=red]coroutine[/color])
I suspect it is a boost version issue that our Windows developer was using an older version that didn't include coroutine (1.53 vs 1.54+)...

Yes, I think so. I build sucessfully with VS2012, keyhotee use some feature of C++11, which vs2010 seems not support.

Sent from my GT-N7100 using Tapatalk


the following error was encoutered while generating the vs2012 workspace, do you have any idea?

statusCompiling on WIN32
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR) (found version "1.0.1e")
** for a debug build: cmake -DCMAKE_BUILD_TYPE=Debug ..
BOOST_LIBRARIES=C:/Boost/lib/libboost_thread-vc110-mt-1_55.libC:/Boost/lib/libboost_system-vc110-mt-1_55.libC:/Boost/lib/libboost_filesystem-vc110-mt-1_55.libC:/Boost/lib/libboost_date_time-vc110-mt-1_55.libC:/Boost/lib/libboost_chrono-vc110-mt-1_55.libSSL_EAY_LIBRARY-NOTFOUNDLIB_EAY_LIBRARY-NOTFOUNDSSL_EAY_RELEASE-NOTFOUNDLIB_EAY_RELEASE-NOTFOUNDC:/Boost/lib/libboost_coroutine-vc110-mt-1_55.libC:/Boost/lib/libboost_context-vc110-mt-1_55.lib
Setting up debug options for MSVC build
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIB_EAY_LIBRARY
    linked by target "Keyhotee" in directory F:/WorkSpace/keyhotee
    linked by target "keyhotee_library" in directory F:/WorkSpace/keyhotee
    linked by target "sancho" in directory F:/WorkSpace/keyhotee/BitShares/sancho
    linked by target "sanchoc" in directory F:/WorkSpace/keyhotee/BitShares/sancho
    linked by target "bitshares_client" in directory F:/WorkSpace/keyhotee/BitShares/server
    linked by target "bitshares_server" in directory F:/WorkSpace/keyhotee/BitShares/server
    linked by target "bitshares_test" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "blockchain_tests" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "momentum_pow_test" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "timekeeper" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "name_reg_server" in directory F:/WorkSpace/keyhotee/BitShares/founder_reg_server
    linked by target "mail_server" in directory F:/WorkSpace/keyhotee/BitShares/mail_server
    linked by target "pool_miner" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_masiner" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_server" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_server" in directory F:/WorkSpace/keyhotee/miner
LIB_EAY_RELEASE
    linked by target "Keyhotee" in directory F:/WorkSpace/keyhotee
    linked by target "keyhotee_library" in directory F:/WorkSpace/keyhotee
    linked by target "sancho" in directory F:/WorkSpace/keyhotee/BitShares/sancho
    linked by target "sanchoc" in directory F:/WorkSpace/keyhotee/BitShares/sancho
    linked by target "bitshares_client" in directory F:/WorkSpace/keyhotee/BitShares/server
    linked by target "bitshares_server" in directory F:/WorkSpace/keyhotee/BitShares/server
    linked by target "bitshares_test" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "blockchain_tests" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "momentum_pow_test" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "timekeeper" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "name_reg_server" in directory F:/WorkSpace/keyhotee/BitShares/founder_reg_server
    linked by target "mail_server" in directory F:/WorkSpace/keyhotee/BitShares/mail_server
    linked by target "pool_miner" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_miner" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_server" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_server" in directory F:/WorkSpace/keyhotee/miner
SSL_EAY_LIBRARY
    linked by target "Keyhotee" in directory F:/WorkSpace/keyhotee
    linked by target "keyhotee_library" in directory F:/WorkSpace/keyhotee
    linked by target "sancho" in directory F:/WorkSpace/keyhotee/BitShares/sancho
    linked by target "sanchoc" in directory F:/WorkSpace/keyhotee/BitShares/sancho
    linked by target "bitshares_client" in directory F:/WorkSpace/keyhotee/BitShares/server
    linked by target "bitshares_server" in directory F:/WorkSpace/keyhotee/BitShares/server
    linked by target "bitshares_test" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "blockchain_tests" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "momentum_pow_test" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "timekeeper" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "name_reg_server" in directory F:/WorkSpace/keyhotee/BitShares/founder_reg_server
    linked by target "mail_server" in directory F:/WorkSpace/keyhotee/BitShares/mail_server
    linked by target "pool_miner" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_miner" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_server" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_server" in directory F:/WorkSpace/keyhotee/miner
SSL_EAY_RELEASE
    linked by target "Keyhotee" in directory F:/WorkSpace/keyhotee
    linked by target "keyhotee_library" in directory F:/WorkSpace/keyhotee
    linked by target "sancho" in directory F:/WorkSpace/keyhotee/BitShares/sancho
    linked by target "sanchoc" in directory F:/WorkSpace/keyhotee/BitShares/sancho
    linked by target "bitshares_client" in directory F:/WorkSpace/keyhotee/BitShares/server
    linked by target "bitshares_server" in directory F:/WorkSpace/keyhotee/BitShares/server
    linked by target "bitshares_test" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "blockchain_tests" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "momentum_pow_test" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "timekeeper" in directory F:/WorkSpace/keyhotee/BitShares/tests
    linked by target "name_reg_server" in directory F:/WorkSpace/keyhotee/BitShares/founder_reg_server
    linked by target "mail_server" in directory F:/WorkSpace/keyhotee/BitShares/mail_server
    linked by target "pool_miner" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_miner" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_server" in directory F:/WorkSpace/keyhotee/miner
    linked by target "pool_server" in directory F:/WorkSpace/keyhotee/miner
« Last Edit: January 15, 2014, 03:28:54 pm by CrazyBit »

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Can VS2010 compile the keyhotee and bitshares workspace and build executable keyhotee application?  is VS2012 required?

Finally, succuss build the soluction, and generate the exe.

For the above link errors, fix it in CMakeLists.txt of Keyhotee:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess may the
coder fogot it in WIN32.

Code: [Select]
FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time system filesystem program_options signals serialization chrono unit_test_framework context [color=red]coroutine[/color])
I suspect it is a boost version issue that our Windows developer was using an older version that didn't include coroutine (1.53 vs 1.54+)...

Yes, I think so. I build sucessfully with VS2012, keyhotee use some feature of C++11, which vs2010 seems not support.

Sent from my GT-N7100 using Tapatalk

Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline crazybit

Can VS2010 compile the keyhotee and bitshares workspace and build executable keyhotee application?  is VS2012 required?

Finally, succuss build the soluction, and generate the exe.

For the above link errors, fix it in CMakeLists.txt of Keyhotee:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess may the
coder fogot it in WIN32.

Code: [Select]
FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time system filesystem program_options signals serialization chrono unit_test_framework context [color=red]coroutine[/color])
I suspect it is a boost version issue that our Windows developer was using an older version that didn't include coroutine (1.53 vs 1.54+)...
« Last Edit: January 08, 2014, 12:44:01 pm by CrazyBit »

Offline bytemaster

Finally, succuss build the soluction, and generate the exe.

For the above link errors, fix it in CMakeLists.txt of Keyhotee:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess may the
coder fogot it in WIN32.

Code: [Select]
FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time system filesystem program_options signals serialization chrono unit_test_framework context [color=red]coroutine[/color])
I suspect it is a boost version issue that our Windows developer was using an older version that didn't include coroutine (1.53 vs 1.54+)...
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Finally, succuss build the solution, and generate the exe.

To fix the above link errors, in CMakeLists.txt of Keyhotee, the coroutine module is missed:

add "coroutine" to the last of find_boost package, in "IF( WIN32 )" switch. There is coroutine for non-windows, so I guess the
coder fogot it in WIN32.

FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time
system filesystem program_options signals serialization chrono
unit_test_framework context coroutine)
« Last Edit: December 15, 2013, 03:26:51 am by HackFisher »
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline BTSInvestor

  • Jr. Member
  • **
  • Posts: 20
    • View Profile
I downloaded the master branch,and no such error in my workspace.

Build pass, but there are still some link errors like following, fc default branch is "phoenix", right?

Quote
error LNK2001: unresolved external symbol "public: static unsigned int __cdecl boost::coroutines::detail::standard_stack_allocator::default_stacksize(void)" (?default_stacksize@standard_stack_allocator@detail@coroutines@boost@@SAIXZ)   E:\dev\vs11\BitShares\server\fc.lib(thread.obj)

Quote
error LNK2019: unresolved external symbol "public: static unsigned int __cdecl boost::coroutines::detail::standard_stack_allocator::default_stacksize(void)" (?default_stacksize@standard_stack_allocator@detail@coroutines@boost@@SAIXZ)
referenced in function "public: __thiscall fc::context::context(void (__cdecl*)(int),class boost::coroutines::detail::standard_stack_allocator &,class fc::thread *)" (??0context@fc@@QAE@P6AXH@ZAAVstandard_stack_allocator@detail@coroutines@boost@@PAVthread@1@@Z)   E:\dev\vs11\BitShares\server\fc.lib(mutex.obj)


Sent from my iPhone using Tapatalk