how to setup the development workspace

Started by BTSInvestor, December 11, 2013, 03:19:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CrazyCriple

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?

crazybit


Quote from: SuanBing on January 20, 2014, 05:57:19 PM
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

lib

Quote from: SuanBing on January 20, 2014, 05:57:19 PM
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

SuanBing

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.
[url=http://bitsharesnews.com/]BitsharesNews.com[/url]
[url=http://weibo.com/suanbing]我的微博[/url]
pts: PkyZq51PFLHonjzKdUDunzA52TDMR2tRrn

cgafeng

Quote from: CrazyBit on January 12, 2014, 01:10:35 PM
Quote from: cgafeng on January 12, 2014, 12:33:13 PM
Quote from: CrazyBit on January 12, 2014, 11:30:12 AM

Quote from: cgafeng on January 12, 2014, 09:50:17 AM
Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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

crazybit

Quote from: cgafeng on January 12, 2014, 12:33:13 PM
Quote from: CrazyBit on January 12, 2014, 11:30:12 AM

Quote from: cgafeng on January 12, 2014, 09:50:17 AM
Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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

cgafeng

Quote from: CrazyBit on January 12, 2014, 11:30:12 AM

Quote from: cgafeng on January 12, 2014, 09:50:17 AM
Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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

crazybit


Quote from: cgafeng on January 12, 2014, 09:50:17 AM
Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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

cgafeng

Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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

crazybit

#14
problem solved.

Quote from: HackFisher on January 08, 2014, 12:51:54 PM
Quote from: CrazyBit on January 08, 2014, 12:41:37 PM
Can VS2010 compile the keyhotee and bitshares workspace and build executable keyhotee application?  is VS2012 required?

Quote from: bytemaster on December 15, 2013, 03:23:21 AM
Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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.

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

HackFisher

Quote from: CrazyBit on January 08, 2014, 12:41:37 PM
Can VS2010 compile the keyhotee and bitshares workspace and build executable keyhotee application?  is VS2012 required?

Quote from: bytemaster on December 15, 2013, 03:23:21 AM
Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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.

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.

crazybit

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

Quote from: bytemaster on December 15, 2013, 03:23:21 AM
Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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.

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+)...

bytemaster

Quote from: HackFisher on December 15, 2013, 03:22:05 AM
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.

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: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
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.

HackFisher

#10
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)
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.

BTSInvestor

I downloaded the master branch,and no such error in my workspace.

Quote from: HackFisher on December 14, 2013, 02:29:10 PM
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