17 Compiling for FreeBSD
Nikolay Borodin edited this page 2024-04-17 12:35:58 +00:00
git clone https://gitlab.com/Monsterovich/lanemu/
cd lanemu/native
gmake freebsd EXTRA_CFLAGS=-DUSE_TRANSIENT
cd ..
git submodule update --init --recursive
ant

Notes:

  • FreeBSD does not have an equivalent to setcap. How do we run Lanemu as something other than root?
  • Support for USE_TRANSIENT requires a kernel with these patches: patch №1 patch №2. Otherwise, automatic deletion of interfaces when the application is closed will not work (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277435). You can omit this parameter, but then the devices have to be manually deleted via ifconfig <tapN> destroy.
  • Make sure that all dependencies are installed:
sudo pkg install gcc gmake pkgconf apache-ant libnotify libayatana-appindicator openjdk8
export JAVA_HOME=/usr/local/openjdk8/