
Matlab_MEX_EXTENSION Matlab_ROOT_DIR) (found version "NOTFOUND") Setting system file as: src/SysMatlabLinuxGnu.f90ĬMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):Ĭould NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY

Found BLAS: /usr/lib/x86_64-linux-gnu/libf77blas.so /usr/lib/x86_64-linux-gnu/libatlas.so Looking for pthread_create in pthread - found Looking for pthread_create in pthreads - not found Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed Performing Test CMAKE_HAVE_LIBC_PTHREAD Performing Test HAS_FORTRAN2008 - Success Checking whether /usr/bin/gfortran supports Fortran 90 - yes Checking whether /usr/bin/gfortran supports Fortran 90 Detecting Fortran compiler ABI info - done Check for working Fortran compiler: /usr/bin/gfortran - works Check for working Fortran compiler: /usr/bin/gfortran Check for working C compiler: /usr/bin/cc - works Check for working C compiler: /usr/bin/cc Check for working CXX compiler: /usr/bin/c++ - works Check for working CXX compiler: /usr/bin/c++ The Fortran compiler identification is GNU 9.4.0 The C compiler identification is GNU 9.4.0

DBUILD_DOCUMENTATION=ON -DBUILD_FASTFARM=ON -DBUILD_OPENFAST_SIMULINK_API=ON -DBUILD_TESTING=ON -DOPENMP=ONĪnd when I run it from the /build directory I have the following CLI output: - The CXX compiler identification is GNU 9.4.0 I have customized the cmake command a first time as follow: cmake. Target_link_libraries(main PRIVATE spdlog::spdlog spdlog::spdlog_header_only)So far I have used OpenFAST through an anaconda environment, but now I need to compile it from source on a Ubuntu 20.04 workstation, and am following the instruction on readthedocs (sections 2.2.1, 2.2.2, 2.2.4, 2.2.5). The package spdlog provides CMake targets: Target_link_libraries(main PRIVATE pugixml pugixml::static pugixml::pugixml) The package pugixml provides CMake targets: Target_link_libraries(main PRIVATE unofficial::libmariadb) The package libmariadb provides CMake targets:įind_package(unofficial-libmariadb CONFIG REQUIRED) Target_link_libraries(main PRIVATE jsoncpp_object jsoncpp_static JsonCpp::JsonCpp) The package jsoncpp provides CMake targets: Target_link_libraries(main PRIVATE CURL::libcurl) Target_link_libraries(main PRIVATE cryptopp-static) The package cryptopp provides CMake targets: Target_link_libraries(main PRIVATE Boost::boost Boost:: Boost. The package boost is compatible with built-in CMake targets:įind_package(Boost REQUIRED ) bootstrap-vcpkg.sh too.ĮDIT: My PR was accepted and now the typical instructions will work again. You'll need to use the git checkout f33d743a757fc50da77a2bd3a4cf5d55c4f5e02f line from my instructions while you are inside the vcpkg folder to fix this for now.

#Cmake ubuntu 20.04 Patch
Gesior's instructions will also likely fail to compile due to the recent vcpkg libmariadb changes, unless/until otservbr patch their cmake to include the libmariadb-client option. I have not reviewed the rest of what Gesior's instructions are doing, but a quick glance seems it does essentially exactly the same but with less cmake/vcpkg automation.

If you want to try and use Gesior's instructions instead, you can change the line that says git checkout develop to git checkout main You can see this reflected in my instructions. The correct "branch" is no longer called develop but is instead called main. Regarding Gesior's instructions and your error: If you follow the instructions carefully, they ensure you are in the right folder when you use the command. When you run the cmake command, you need to be inside the build folder, not inside the otservbr-global folder. Regarding my instructions and your error: You seem to not be following my instructions quite in order and Gesior's instructions are a little outdated. Note: The cmake step will take a long time to complete as it will handle all remaining dependencies automatically. $ cmake -DCMAKE_TOOLCHAIN_FILE=././vcpkg/scripts/buildsystems/vcpkg.cmake.
#Cmake ubuntu 20.04 install
$ sudo apt-get install git cmake build-essential libluajit-5.1-dev ca-certificates curl zip unzip tar pkg-config If you have done a whole lot of stuff that you don't really understand and won't be able to explain to anybody, I suggest you start from a fresh install of Ubuntu 20.04 and follow the steps below exactly.Ĭompiling otservbr-global on Ubuntu 20.04 as at 32df826 UPDATE3: My PR fixing the libmariadb issue has been accepted - I've updated the instructions below to match UPDATE2: These instructions are correct, but it seems you also need to get this package - to do this run sudo apt install libcrypto++-dev
#Cmake ubuntu 20.04 update
UPDATE: Updated to temp-fix issue with vcpkg update to libmariadb
