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

0 Members and 1 Guest are viewing this topic.

Offline HackFisher

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

Quote
1. CMake config, change CMAKE_BUILD_TYPE to Debug.

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

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
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.
« Last Edit: February 15, 2014, 03:22:11 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 sschechter

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



BTSX: sschechter
PTS: PvBUyPrDRkJLVXZfvWjdudRtQgv1Fcy5Qe

Offline CrazyCriple

  • Full Member
  • ***
  • Posts: 51
    • View Profile
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

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

allready installed. I also reinstalled vs2012. Have no clue.

Offline crazybit

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.

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
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

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
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 CrazyCriple

  • Full Member
  • ***
  • Posts: 51
    • View Profile
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;

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
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.
« Last Edit: February 01, 2014, 05:25:07 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 HackFisher

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

anyone can debug the workspace? i tried to debug on win platform, but failed.

Offline crazybit

I did... but I have the same issue :(
install the Berkeley db and include the required header file and library in the bshare project.

Offline CrazyCriple

  • Full Member
  • ***
  • Posts: 51
    • View Profile
I did... but I have the same issue :(

Offline crazybit

seems hackfisher has fix the issue,pull the update code and retry.


Sent from my iPhone using Tapatalk

Offline crazybit

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.

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

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
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)
« Last Edit: December 14, 2013, 02:43:09 pm 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 HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
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).
« Last Edit: December 14, 2013, 03:40:24 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
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.

Offline bytemaster

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.
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 devilfish

  • Full Member
  • ***
  • Posts: 98
    • View Profile
I just use text wrangler, can open the whole folder then just compile on the command line...
BTC: 1MqCxQ2qD7ZuS3ELFY43wfaBTbA2XkYwDP
PTS: PiuFEJHz6zScALgPWzcu2SDKtWJW4cnUFi
XPM: Af5qzgsEwWaHZdGUq8dUoHkhmH4XBmnGW9

Offline BTSInvestor

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

Offline devilfish

  • Full Member
  • ***
  • Posts: 98
    • View Profile
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.
BTC: 1MqCxQ2qD7ZuS3ELFY43wfaBTbA2XkYwDP
PTS: PiuFEJHz6zScALgPWzcu2SDKtWJW4cnUFi
XPM: Af5qzgsEwWaHZdGUq8dUoHkhmH4XBmnGW9

Offline BTSInvestor

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