Advertisement
Guest User

gnucash 3.2 build

a guest
Jul 29th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. # Prior to starting the commands below, I had already downloaded the gnucash 3.2 source files.
  2.  
  3. #
  4. # This is where I started the installation procedure on https://wiki.gnucash.org/wiki/BuildUbuntu16.04
  5. #
  6.  
  7. sudo apt get install build-essential git
  8. sudo apt install build-essential git
  9. sudo apt install cmake
  10.  
  11. #
  12. # Here are the commands to setup GoogleTest (https://wiki.gnucash.org/wiki/GoogleTest)
  13. #
  14.  
  15. cd
  16. cd .local
  17. ll
  18. mkdir src
  19. cd src
  20. ll
  21. git clone https://github.com/google/googletest.git
  22. ll
  23. ll googletest/
  24. cd googletest/
  25. mkdir mybuild
  26. cd mybuild/
  27. cmake -DBUILD_GMOCK=ON ../
  28. make
  29. export GTEST_ROOT=$HOME/.local/src/googletest/googletest
  30. export GMOCK_ROOT=$HOME/.local/src/googletest/googlemock
  31. cd ~/Downloads
  32. ll
  33. git clone https://github.com/google/googletest.git
  34. cd googletest/
  35. mkdir mybuild
  36. cd mybuild/
  37. cmake -DCAMKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DBUILD_GMOCK=ON -DINSTALL_GTEST=ON -DINSTALL_GMOCK=ON ../
  38. make
  39. sudo make install
  40. sudo apt install googletest
  41.  
  42. #
  43. # This is where I install the dependencies listed on https://wiki.gnucash.org/wiki/BuildUbuntu16.04.
  44. # Note that I did not install libgtest-dev and google-mock at this stage.
  45. # Neither did I install any of the Option Dependencies.
  46. #
  47.  
  48. sudo apt install libtool libltdl-dev
  49. sudo apt install libglib2.0 libglib2.0-dev
  50. sudo apt install icu-devtools libicu-dev
  51. sudo apt install libboost-all-dev
  52. sudo apt install guile-2.0 guile-2.0-dev
  53. sudo apt install swig2.0
  54. sudo apt install libxml2 libxml++2.6-dev libxml2-utils
  55. sudo apt install libxslt1.1 libxslt1-dev
  56. sudo apt install xsltproc
  57. sudo apt install texinfo
  58. sudo apt install libsecret-1-0
  59. sudo apt install gtk+3.0
  60. sudo apt install libgtk-3-dev
  61. sudo apt install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
  62.  
  63.  
  64. cd ..
  65. cd gnucash
  66. ll
  67. cd gnucash-3.2/
  68. ll
  69. mkdir build-gnucash-3.2
  70. ll ~/.local
  71. ll ~/.local/bin
  72. cd build-gnucash-3.2/
  73. ll
  74. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local ../gnucash-3.2
  75. ll
  76. cd ..
  77. rmdir build-gnucash-3.2/
  78. ll
  79. mkdir build-gnucash-3.2
  80. cd build-gnucash-3.2/
  81. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local ../gnucash
  82. make
  83. ll
  84. cat CMakeFiles/CMakeError.log
  85. cat CMakeFiles/CMakeOutput.log
  86. less CMakeFiles/CMakeOutput.log
  87.  
  88. #
  89. # This is where I decide to install libgtest-dev and google-mock
  90. #
  91.  
  92. sudo apt install libgtest-dev
  93. sudo apt install google-mock
  94.  
  95. #
  96. # Trying again to run cmake...
  97. #
  98.  
  99. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local ../gnucash
  100. cd ..
  101. ll
  102. cd build-gnucash-3.2/
  103. ll
  104. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local ../
  105. cd ..
  106. ll
  107. ll build-gnucash-3.2/
  108. rm -rf build-gnucash-3.2/
  109. ll
  110. ll ..
  111. ll
  112. mkdir /tmp/build-gnucash
  113. cd /tmp/build-gnucash/
  114.  
  115. #
  116. # At this stage, I am starting to get some more success, but am finding that some of the Option Dependencies are missing, so I am installing those.
  117. #
  118.  
  119. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /data/download/gnucash/gnucash-3.2
  120. sudo apt install gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev
  121. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /data/download/gnucash/gnucash-3.2
  122. sudo apt install aqbanking-tools libaqbanking-dev
  123. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /data/download/gnucash/gnucash-3.2
  124. sudo apt install libofx-dev
  125. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /data/download/gnucash/gnucash-3.2
  126. sudo apt install libdbi1 libdbi-dev
  127. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /data/download/gnucash/gnucash-3.2
  128. ll
  129. rm -rf *
  130. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /data/download/gnucash/gnucash-3.2
  131. less /tmp/build-gnucash/CMakeFiles/CMakeOutput.log
  132. less /tmp/build-gnucash/CMakeFiles/CMakeError.log
  133. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /data/download/gnucash/gnucash-3.2
  134. ll
  135. rm -rf *
  136. cmake -D CMAKE_INSTALL_PREFIX=$HOME/.local /data/download/gnucash/gnucash-3.2
  137. less CMakeFiles/CMakeError.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement