CMake, dependency libraries are pre-installed in slackware. So, proceeding to build the project.
- Create a build directory if doesn't exists in project directory and navigate to that build directory.
mkdir build
cd build
- Run cmake to configure the project and generate a native build system. This will create a make file.
cmake ..
- Encountered below errors while running make and used the mentioned solutions to fix those errors.
undefined reference to symbol 'json_object_set_string@@JSONC_0.14' /usr/bin/ld: /usr/lib64/libjson-c.so.5: error adding symbols: DSO missing from command line
Referenced grass_parson in CMakeLists in raster(r.info, r.profile) and vector(v.info) files
Traceback (most recent call last): File "/home/mahesh98/usr/local/src/grass/gui/wxpython/core/menutree.py", line 41, in <module> import wx ModuleNotFoundError: No module named 'wx' make[2]: *** [gui/wxpython/CMakeFiles/build_menustrings.dir/build.make:70: gui/wxpython/CMakeFiles/build_menustrings] Error 1 make[1]: *** [CMakeFiles/Makefile2:22560: gui/wxpython/CMakeFiles/build_menustrings.dir/all] Error 2 make: *** [Makefile:146: all] Error 2
Created conda environment with the name grass and installed wxpython package.
conda create -n grass conda install wxpython=4.2.1