Menu

owlcpp installation guide on windows

Help
BENZAIT
2016-03-30
2016-07-05
  • BENZAIT

    BENZAIT - 2016-03-30

    and I'm trying to develop a new semantic automatic annotation method for Brain MRI using Ontology, and for this last I'm trying to use owlcpp, but when I try to install it, I found a lot of problem and I didn't understand how to install it and now I’m blocked, I can't move and finished my project.
    So could you help me please, and show me how to install it step by step on windows such as I read all the documentation more than 3 time

     
  • M Levin

    M Levin - 2016-03-31

    Please describe specifically, which step of 'Getting started' instructions you are having a problem with

     
    • roma white

      roma white - 2016-05-11

      Hi M Levin,
      I tried to follow the instructions of "owl\doc\build.txt" to use owlcpp and met some problems.
      Environment:
      OS: windows 10 professional (64 bit)
      VS: visual studio 2013
      owlcpp Configuration:
      1) user-config.jam:

      ## Microsoft Visual C++
       using msvc ;
      
      ## GCC (under Linux of MS Windows MinGW)
      # using gcc ;
      
      ## http://llvm.org/
       #using clang ;
      
      ## Mac OS X
      # using darwin ;
      
      ## Python (for generating python bindings)
      ## For more details see 
      ## http://www.boost.org/doc/libs/release/libs/python/doc/building.html
      ## Alternatives:
       #using python ;
       #using python : 2.7 : /usr/bin/python ;
       using python : 2.7 : "E:/Python27" : "E:/Python27/include" : "E:/Python27/libs" ;
      
      ## Doxygen (generating documentation from source code, optional)
      ## http://www.stack.nl/~dimitri/doxygen/
      ## Specifying Doxygen location may be required. For example
       using doxygen : "E:/doxygen/bin/doxygen.exe" ;
      # using doxygen ;
      
      ## Path for GIT client executable (optional)
      ## http://git-scm.com/
       path-constant GIT_PATH : "c:/Program Files/Git/bin/git.exe" ;
      
      ################################################################################
      ## Libraries
      ## Uncomment "constant" statements and provide correct paths and versions. 
      
       local utils = "E:" ;
      
      ## Boost library source
      ## http://www.boost.org/
      constant BOOST : "$(utils)/boost/boost_1_60_0/" 1.60.0 ;
      
      ## libxml2 library source
      ## http://xmlsoft.org/
       constant LIBXML2 : "$(utils)/libxml2-2.9.0" 2.9.0 ;
      
      ## pre-built iconv library (required under MS Windows)
      ## http://www.zlatkovic.com/libxml.en.html
       constant ICONV : "$(utils)/iconv-1.9.2.win32" 1.9.2 ;
      
      ## Raptor library source
      ## http://librdf.org/raptor/
       constant RAPTOR : "$(utils)/raptor2-2.0.8" 2.0.8 ;
      
      ## FaCT++ library source
      ## http://code.google.com/p/factplusplus/
       constant FACTPP : "$(utils)/FaCT++-1.6.1" 1.6.1 ;
      
      ## owlcpp library source
      ## http://sourceforge.net/projects/owl-cpp/
      ## (optionally) uncomment this to use owlcpp library in your projects
       constant OWLCPP : "$(utils)/owlcpp" 0.3.0 ;
      

      Problems
      1) run b2 release:
      E:\owlcpp>b2 release
      lib\jamfile.jam:12: in modules.load
      ERROR: rule "process_version_string" unknown in module "Jamfile<E:\\owlcpp\\lib>".
      E:/boost/boost_1_60_0/tools/build/src/build\project.jam:325: in load-jamfile
      E:/boost/boost_1_60_0/tools/build/src/build\project.jam:64: in load
      E:/boost/boost_1_60_0/tools/build/src/build\project.jam:145: in project.find
      E:/boost/boost_1_60_0/tools/build/src/build\targets.jam:452: in find-really
      E:/boost/boost_1_60_0/tools/build/src/build\targets.jam:474: in find
      E:/boost/boost_1_60_0/tools/build/src/build\targets.jam:305: in targets-to-build
      E:/boost/boost_1_60_0/tools/build/src/build\targets.jam:270: in class@project-target.generate
      E:/boost/boost_1_60_0/tools/build/src\build-system.jam:710: in load
      E:\boost\boost_1_60_0\tools\build\src/kernel\modules.jam:295: in import
      E:\boost\boost_1_60_0\tools\build\src/kernel/bootstrap.jam:139: in boost-build
      E:\boost\boost_1_60_0\boost-build.jam:17: in module scope

      2) run b2 --debug-configuration :
      E:\owlcpp>b2 --debug-configuration
      notice: found boost-build.jam at E:/boost/boost_1_60_0/boost-build.jam
      notice: loading Boost.Build from E:/boost/boost_1_60_0/tools/build/src
      notice: Searching 'C:\WINDOWS' 'C:\Users\roma' 'C:\Users\roma' 'E:\boost\boost_1_60_0\tools/build/src' 'E:/boost/boost_1_60_0/tools/build/src/kernel' 'E:/boost/boost_1
      _60_0/tools/build/src/util' 'E:/boost/boost_1_60_0/tools/build/src/build' 'E:/boost/boost_1_60_0/tools/build/src/tools' 'E:/boost/boost_1_60_0/tools/build/src/contrib'
      'E:/boost/boost_1_60_0/tools/build/src/.' for site-config configuration file 'site-config.jam'.
      notice: Loading site-config configuration file 'site-config.jam' from 'E:/boost/boost_1_60_0/tools/build/src'.
      notice: Searching 'C:\Users\roma' 'C:\Users\roma' 'E:\boost\boost_1_60_0\tools/build/src' 'E:/boost/boost_1_60_0/tools/build/src/kernel' 'E:/boost/boost_1_60_0/tools/b
      uild/src/util' 'E:/boost/boost_1_60_0/tools/build/src/build' 'E:/boost/boost_1_60_0/tools/build/src/tools' 'E:/boost/boost_1_60_0/tools/build/src/contrib' 'E:/boost/bo
      ost_1_60_0/tools/build/src/.' for user-config configuration file 'user-config.jam'.
      notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/roma'.
      notice: [msvc-cfg] msvc-12.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe'
      notice: [msvc-cfg] msvc-11.0 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\cl.exe'
      notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe' for msvc, condition <toolset>msvc-12.0
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>/<address-model>', setup: 'call "C:\Users\roma\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >nul
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>/<address-model>32', setup: 'call "C:\Users\roma\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >nu
      l
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>x86/<address-model>', setup: 'call "C:\Users\roma\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >n
      ul
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>x86/<address-model>32', setup: 'call "C:\Users\roma\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd"

      nul
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>/<address-model>64', setup: 'call "C:\Users\roma\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_amd64.cmd" >
      nul
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>x86/<address-model>64', setup: 'call "C:\Users\roma\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_amd64.cmd
      " >nul
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>ia64/<address-model>', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.b
      at" x86_ia64 >nul
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>ia64/<address-model>64', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall
      .bat" x86_ia64 >nul
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>arm/<address-model>', setup: 'call "C:\Users\roma\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86_arm.cmd
      " >nul
      '
      notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>arm/<address-model>32', setup: 'call "C:\Users\roma\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86_arm.c
      md" >nul
      '
      notice: [python-cfg] Configuring python...
      notice: [python-cfg] user-specified version: "2.7"
      notice: [python-cfg] user-specified cmd-or-prefix: "E:/Python27"
      notice: [python-cfg] user-specified includes: "E:/Python27/include"
      notice: [python-cfg] user-specified libraries: "E:/Python27/libs"
      notice: [python-cfg] Registry indicates Python 2.7 installed at "E:\Python27\"
      notice: [python-cfg] Checking interpreter command "E:/Python27\PCBuild8\python"...
      notice: [python-cfg] running command 'E:/Python27\PCBuild8\python -c "from sys import ; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
      (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
      notice: [python-cfg] ...does not invoke a working interpreter
      notice: [python-cfg] Checking interpreter command "E:/Python27\PCBuild\python"...
      notice: [python-cfg] running command 'E:/Python27\PCBuild\python -c "from sys import
      ; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
      (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
      notice: [python-cfg] ...does not invoke a working interpreter
      notice: [python-cfg] Checking interpreter command "E:/Python27\python"...
      notice: [python-cfg] running command 'DIR /-C /A:S "E:\Python27\python.exe" 2>&1'
      notice: [python-cfg] running command 'E:/Python27\python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version
      _info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
      notice: [python-cfg] ...requested configuration matched!
      notice: [python-cfg] Details of this Python configuration:
      notice: [python-cfg] interpreter command: "E:/Python27\python"
      notice: [python-cfg] include path: "E:/Python27/include"
      notice: [python-cfg] library path: "E:/Python27/libs"
      notice: [python-cfg] DLL search path: "E:\Python27"
      notice: using doxygen : E:/doxygen/bin/doxygen.exe
      notice: [zlib] Using pre-installed library
      notice: [zlib] Condition
      notice: iostreams: not using bzip2 compression
      notice: iostreams: not using bzip2 compression
      lib\jamfile.jam:12: in modules.load
      ERROR: rule "process_version_string" unknown in module "Jamfile<E:\\owlcpp\\lib>".
      E:/boost/boost_1_60_0/tools/build/src/build\project.jam:325: in load-jamfile
      E:/boost/boost_1_60_0/tools/build/src/build\project.jam:64: in load
      E:/boost/boost_1_60_0/tools/build/src/build\project.jam:145: in project.find
      E:/boost/boost_1_60_0/tools/build/src/build\targets.jam:452: in find-really
      E:/boost/boost_1_60_0/tools/build/src/build\targets.jam:474: in find
      E:/boost/boost_1_60_0/tools/build/src/build\targets.jam:305: in targets-to-build
      E:/boost/boost_1_60_0/tools/build/src/build\targets.jam:270: in class@project-target.generate
      E:/boost/boost_1_60_0/tools/build/src\build-system.jam:710: in load
      E:\boost\boost_1_60_0\tools\build\src/kernel\modules.jam:295: in import
      E:\boost\boost_1_60_0\tools\build\src/kernel/bootstrap.jam:139: in boost-build
      E:\boost\boost_1_60_0\boost-build.jam:17: in module scope

      And I have also tried to track the error "process_version_string" unknown in module "Jamfile<E:\\owlcpp\\lib>". After checking the file "owlcpp\lib\jamfile.jam", "owlcpp\build\version.jam" and "owlcpp\jamroot.jam", I thought there was no problem in these files. So my problems are followed:
      1) how to fix the error "process_version_string" unknown in module "Jamfile<E:\\owlcpp\\lib>"?
      2) is there any problem in the process of building the owlcpp?

      Thanks! Looking forward to your advice!

       
  • M Levin

    M Levin - 2016-07-05

    Building owlcpp with newer versions of Boost.Build is fixed in the latest commit in the master branch (ee7d4c).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.