it's JavaScript Jim, but not as we know it. :space_invader:
it's JavaScript Jim, but not as we know it. :space_invader:
the default build of lo runtime links to system libssl and zlib but we build a custom version of libcurl as the default libcurl links to a ton of support libraries we don't need and this slows down startup time. we will likely remove dependency on libcurl at some point (i.e. when we have a robust implementation of fetch in the runtime) but, for now, you will need to install libcurl as follows.
sudo apt install -y libcurl4-openssl-dev libssl-dev zlib1g-devmake lomake ARCH=arm64 lomake CC="clang" CXX="clang++" loexport LO_HOME=$(pwd)
LO_VERSION=main make lo
CC="ccache gcc" CXX="ccache g++" LO_VERSION=main ./lo build runtime runtime/lomold -run make C="ccache gcc" CC="ccache g++" lothe default build of lo runtime depends on libcurl, which is available out of the box on macos. it also depends on openssl, which does not seem to be available as a static library by default.
as such, you will need to install openssl using homebrew or some other mechanism for the default build to succeed.
brew install openssl@3this will install libssl libs in /opt/homebrew/lib by default. if you need to override this default in the Makefile you can pass the LIB_DIRS argument to make as follows
make LIB_DIRS=/opt/somewhere_else/lib ARCH=arm64 lomake cleanall lomake ARCH=arm64 cleanall loSet-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))https://visualstudio.microsoft.com/downloads/ download and run this https://aka.ms/vs/17/release/vs_BuildTools.exe
choose "Desktop Development with C++"
https://learn.microsoft.com/en-us/cpp/build/msbuild-visual-cpp?view=msvc-170
choco install make
choco install git
make cleanall lo.exe testmake cleanall
## change v8 version in makefile
make lomake v8/srcNo open issues yet, or sync has not completed.