BitShares Forum

Main => Technical Support => Topic started by: BTSInvestor on December 11, 2013, 03:19:53 pm

Title: how to setup the development workspace
Post by: BTSInvestor on December 11, 2013, 03:19:53 pm
I am very interesting on the Bitshares project,would like to setup the workspace to have a study on the project,what tools should i prepare can i import the project into the IDE for study?appreciated if any technical guy here can give me guidance or share me some useful information for my reference.
Title: Re: how to setup the development workspace
Post by: devilfish on December 12, 2013, 09:07:12 am
I believe the project is being worked on at GitHub, go to the following link:

https://github.com/InvictusInnovations/BitShares

Clone the project to your hard-drive and use with your IDE. I haven't really looked at it, but at a guess it'll be based on Bitcoin's source so if you are familiar with that then you will have a base to start with.
Title: Re: how to setup the development workspace
Post by: BTSInvestor on December 13, 2013, 01:42:35 am
Thanks devilfish, i have cloned the source code to my local pc before raising the questions here, and also took a glance on the source,but it is a little bit difficult to get the whole picture of the project if read the source code file by file, i think the faster way is to import the source into the IDE(e.g. vs2010), i searched in the internet,but can not find any useful guide to import the bitshares project into the IDE, maybe my direction is wrong,as i also do not know whether can import the bitshares source into the IDE.
Title: Re: how to setup the development workspace
Post by: devilfish on December 13, 2013, 07:25:49 am
I just use text wrangler, can open the whole folder then just compile on the command line...
Title: Re: how to setup the development workspace
Post by: bytemaster on December 13, 2013, 09:17:23 am
Thanks devilfish, i have cloned the source code to my local pc before raising the questions here, and also took a glance on the source,but it is a little bit difficult to get the whole picture of the project if read the source code file by file, i think the faster way is to import the source into the IDE(e.g. vs2010), i searched in the internet,but can not find any useful guide to import the bitshares project into the IDE, maybe my direction is wrong,as i also do not know whether can import the bitshares source into the IDE.

Cmake will generate a Visual Studio project for you.  Read the CMake documentation if you have questions.
Title: Re: how to setup the development workspace
Post by: BTSInvestor on December 13, 2013, 02:18:25 pm
Thanks bytemaster, the workspace has been setup finally, starting my Bitshares journey. :) :) :)

Thanks devilfish, i have cloned the source code to my local pc before raising the questions here, and also took a glance on the source,but it is a little bit difficult to get the whole picture of the project if read the source code file by file, i think the faster way is to import the source into the IDE(e.g. vs2010), i searched in the internet,but can not find any useful guide to import the bitshares project into the IDE, maybe my direction is wrong,as i also do not know whether can import the bitshares source into the IDE.

Cmake will generate a Visual Studio project for you.  Read the CMake documentation if you have questions.
Title: Re: how to setup the development workspace
Post by: HackFisher on December 14, 2013, 03:13:36 am
Has some problem with handling leveldb:

Bitshares seems to use leveldb-win, but CMake reports that can not found CMakeList.txt under vendor/leveldb-win when generate VS proj files, so I just simply copy "CMakeList.txt" under vendor/leveldb-1.12.0,    then the leveldb build failed later...


How should I handle leveldb-win?

Update:

I just found a branch "windows" of leveldb-win on github, I checkout this branch, use it for that, and now it's ok :), though there is still some errors(Using VS2010, std::unordered_set::reserve seems since C++11).
Title: Re: how to setup the development workspace
Post by: 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)
Title: Re: how to setup the development workspace
Post by: BTSInvestor on December 14, 2013, 02:56:56 pm
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 (http://tapatalk.com/m?id=1)
Title: Re: how to setup the development workspace
Post by: 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)
Title: Re: how to setup the development workspace
Post by: bytemaster on December 15, 2013, 03:23:21 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.

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+)...
Title: Re: how to setup the development workspace
Post by: 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?

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+)...
Title: Re: how to setup the development workspace
Post by: HackFisher on January 08, 2014, 12:51:54 pm
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

Title: Re: how to setup the development workspace
Post by: crazybit on January 09, 2014, 02:01:59 pm
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
Title: Re: how to setup the development workspace
Post by: cgafeng on January 12, 2014, 09:50:17 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创建工程。
如果可以的话麻烦你把解决步骤写详细点,谢谢
Title: Re: how to setup the development workspace
Post by: crazybit on January 12, 2014, 11:30:12 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 (http://tapatalk.com/m?id=1)
Title: Re: how to setup the development workspace
Post by: cgafeng on January 12, 2014, 12:33:13 pm

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 (http://tapatalk.com/m?id=1)

yes, but there is not CMakeLists.txt
Title: Re: how to setup the development workspace
Post by: crazybit on January 12, 2014, 01:10:35 pm

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 (http://tapatalk.com/m?id=1)

yes, but there is not CMakeLists.txt

use the "windows" branch but no "master" branch
Title: Re: how to setup the development workspace
Post by: cgafeng on January 12, 2014, 01:43:47 pm

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 (http://tapatalk.com/m?id=1)

yes, but there is not CMakeLists.txt

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

oh, there is it.  Thank you!
Title: Re: how to setup the development workspace
Post by: 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.
Title: Re: how to setup the development workspace
Post by: lib on January 21, 2014, 05:25:39 am
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.
Title: Re: how to setup the development workspace
Post by: crazybit on January 22, 2014, 03:08:48 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 (http://tapatalk.com/m?id=1)
Title: Re: how to setup the development workspace
Post by: CrazyCriple on January 22, 2014, 03:37:09 pm
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?
Title: Re: how to setup the development workspace
Post by: crazybit on January 23, 2014, 02:36:36 am
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?

i also got such compile error after pulling the bitcoin wallet related code,suppose Berkely DB library is required,i have downloaded the Berkeley DB 12cR1 6.0.20 from oracle website,but issue still not fixed,will share it if the problem got solved.
Title: how to setup the development workspace
Post by: crazybit on January 23, 2014, 03:37:55 pm
seems hackfisher has fix the issue,pull the update code and retry.


Sent from my iPhone using Tapatalk (http://tapatalk.com/m?id=1)
Title: Re: how to setup the development workspace
Post by: CrazyCriple on January 24, 2014, 07:50:50 am
I did... but I have the same issue :(
Title: Re: how to setup the development workspace
Post by: crazybit on January 25, 2014, 01:10:14 pm
I did... but I have the same issue :(
install the Berkeley db and include the required header file and library in the bshare project.
Title: Re: how to setup the development workspace
Post by: crazybit on January 25, 2014, 01:13:10 pm
anyone can debug the workspace? i tried to debug on win platform, but failed.
Title: Re: how to setup the development workspace
Post by: HackFisher on February 01, 2014, 01:34:41 am
anyone can debug the workspace? i tried to debug on win platform, but failed.

If you go over the CMakeList.txt of Keyhotee, you may notice a comment about window debug mode:
Quote
if (MSVC)
  message(STATUS "Setting up debug options for MSVC build")
# Probably cmake has a bug and vcxproj generated for executable in Debug conf. has disabled debug info
  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /DEBUG")
endif(MSVC)
This seems a problem of CMake, If you going to use Debug on MSVC, just configure and generate, after that change Linking/Debug related config manually.
Title: Re: how to setup the development workspace
Post by: HackFisher on February 01, 2014, 02:09:11 am
I did... but I have the same issue :(

Did you set the "DBROOTDIR" varible to the install path of Berkeley DB?

https://github.com/InvictusInnovations/BitShares/blob/master/CMakeModules/FindBerkeleyDB.cmake

If you are using shared libraries, you may need change KH_STATIC_QT and BDB_STATIC_LIBS from 1 to 0.
Title: Re: how to setup the development workspace
Post by: CrazyCriple on February 06, 2014, 02:23:36 pm
Thanks that works.. Now I'm down to two libraries.
What am I missing? Sorry I'm a .Net developer and therefor spoiled ;)

WINSOCK2_LIBRARY-NOTFOUND;general;IPHLPAPI_LIBRARY-NOTFOUND;
Title: Re: how to setup the development workspace
Post by: HackFisher on February 07, 2014, 09:01:11 am
Thanks that works.. Now I'm down to two libraries.
What am I missing? Sorry I'm a .Net developer and therefor spoiled ;)

WINSOCK2_LIBRARY-NOTFOUND;general;IPHLPAPI_LIBRARY-NOTFOUND;

WINSOCK2_LIBRARY should be some value like "C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86/WS2_32.Lib"

If you have not install Windows Kits yet, refer http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx (http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx)

It is strange because Windows Kits should be shipped together with vs2012
http://stackoverflow.com/questions/16606739/windows-kit-8-0-and-visual-studio-2012-are-they-shipped-together (http://stackoverflow.com/questions/16606739/windows-kit-8-0-and-visual-studio-2012-are-they-shipped-together)
Title: Re: how to setup the development workspace
Post by: crazybit on February 11, 2014, 04:03:51 pm
anyone can debug the workspace? i tried to debug on win platform, but failed.

If you go over the CMakeList.txt of Keyhotee, you may notice a comment about window debug mode:
Quote
if (MSVC)
  message(STATUS "Setting up debug options for MSVC build")
# Probably cmake has a bug and vcxproj generated for executable in Debug conf. has disabled debug info
  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /DEBUG")
endif(MSVC)
This seems a problem of CMake, If you going to use Debug on MSVC, just configure and generate, after that change Linking/Debug related config manually.

hi hackfisher, may i know the detailed steps? thanks in advance.
Title: Re: how to setup the development workspace
Post by: CrazyCriple on February 11, 2014, 04:39:26 pm
Thanks that works.. Now I'm down to two libraries.
What am I missing? Sorry I'm a .Net developer and therefor spoiled ;)

WINSOCK2_LIBRARY-NOTFOUND;general;IPHLPAPI_LIBRARY-NOTFOUND;

WINSOCK2_LIBRARY should be some value like "C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86/WS2_32.Lib"

If you have not install Windows Kits yet, refer http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx (http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx)

It is strange because Windows Kits should be shipped together with vs2012
http://stackoverflow.com/questions/16606739/windows-kit-8-0-and-visual-studio-2012-are-they-shipped-together (http://stackoverflow.com/questions/16606739/windows-kit-8-0-and-visual-studio-2012-are-they-shipped-together)

allready installed. I also reinstalled vs2012. Have no clue.
Title: Re: how to setup the development workspace
Post by: sschechter on February 14, 2014, 03:07:40 pm
I'm running into issues building this myself for Win7-64 VS2012.  Can anyone help? Thanks in advance.

1. I get this message Could NOT find ICU (missing:  ICU_ROOT_DIR ICU_INCLUDE_DIR) - What should these be set as?

2.  CMake can't seem to find Boost.  I've downloaded and built Boost and tried setting BOOST_ROOT, BOOST_LIBRARYDIR, and BOOST_INCLUDEDIR to all sorts of different variations (probably not the right one) but I keep getting some version of this error:

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1111 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.54.0

  Boost include path: C:/boost_1_54_0

  Could not find the following Boost libraries:

          boost_thread
          boost_date_time
          boost_system
          boost_filesystem
          boost_program_options
          boost_signals
          boost_serialization
          boost_chrono
          boost_unit_test_framework
          boost_context

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  CMakeLists.txt:162 (FIND_PACKAGE)


CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1111 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.54.0

  Boost include path: C:/boost_1_54_0

  Could not find the following Boost libraries:

          boost_coroutine

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  CMakeLists.txt:165 (FIND_PACKAGE)



Title: Re: how to setup the development workspace
Post by: HackFisher on February 15, 2014, 03:20:36 am
anyone can debug the workspace? i tried to debug on win platform, but failed.

If you go over the CMakeList.txt of Keyhotee, you may notice a comment about window debug mode:
Quote
if (MSVC)
  message(STATUS "Setting up debug options for MSVC build")
# Probably cmake has a bug and vcxproj generated for executable in Debug conf. has disabled debug info
  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /DEBUG")
endif(MSVC)
This seems a problem of CMake, If you going to use Debug on MSVC, just configure and generate, after that change Linking/Debug related config manually.

hi hackfisher, may i know the detailed steps? thanks in advance.

You may need to do following thing:
1. CMake config, change CMAKE_BUILD_TYPE to Debug.
2. If you are using boost libraries not build with python, you may need to remove "set(Boost_USE_DEBUG_PYTHON ON)"
in fc/CMakeList.txt
take a look at comments in following commit
https://github.com/InvictusInnovations/fc/commit/7fc529e7f24ce5788ba50dec428aa6b4276e4e8b
3. After Cmake generate VS project file automatically, you may need to change "Generate Debug Info" to "Yes(/DEBUG)" manually in "Configuration Properties>Linker>Debugging" Settings.
Title: Re: how to setup the development workspace
Post by: crazybit on February 17, 2014, 11:46:03 am
Quote
1. CMake config, change CMAKE_BUILD_TYPE to Debug.

may i know which cmake file should i update?thanks!
Title: Re: how to setup the development workspace
Post by: HackFisher on March 09, 2014, 04:46:07 am
Quote
1. CMake config, change CMAKE_BUILD_TYPE to Debug.

may i know which cmake file should i update?thanks!

If you are using CMake GUI, you can directly configure it on GUI, or you can also change it in File CMakeCache.txt.
You can also google or refer CMake Manual for help.