• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Macbook - RME

seyakuroya

DevlandOT.eu
Joined
Dec 21, 2008
Messages
711
Solutions
1
Reaction score
411
Hey there I using MacBook Air and trying compile Rme from GitHub.
1)
brew install git cmake wxmac boost libarchive
2)
3)
cd rme
mkdir build
cd build
cmake ..
make -j4

And I have error:
CMake Error at /opt/homebrew/Cellar/cmake/3.22.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find LibArchive (missing: LibArchive_INCLUDE_DIR)
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.22.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/opt/homebrew/Cellar/cmake/3.22.1/share/cmake/Modules/FindLibArchive.cmake:64 (find_package_handle_standard_args)
CMakeLists.txt:20 (find_package)

Also I have libarchive
brew info libarchive
C++:
libarchive: stable 3.5.2 (bottled) [keg-only]
Multi-format archive and compression library
https://www.libarchive.org
/opt/homebrew/Cellar/libarchive/3.5.2 (62 files, 3.7MB)
  Poured from bottle on 2022-01-16 at 13:09:25
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libarchive.rb
License: BSD-2-Clause
==> Dependencies
Required: libb2 ✔, lz4 ✔, xz ✔, zstd ✔
==> Caveats
libarchive is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have libarchive first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/libarchive/bin:$PATH"' >> ~/.zshrc

For compilers to find libarchive you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/libarchive/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/libarchive/include"


Thanks!
 
Fixed!
Code:
To fix this problem: add "set(LibArchive_INCLUDE_DIR "/usr/local/opt/libarchive/include")" to CMakeLists.txt

but now got this:
C++:
rme/source/main.h10:'archive.h' file not found'archive.h' file not found

:91:10fatal error::  'archive.h' file not foundfatal error:
#include <archive.h>#include <archive.h>

'archive.h' file not found         ^~~~~~~~~~~         ^~~~~~~~~~~


#include <archive.h>
 
Back
Top