summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-18 21:54:02 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-18 21:54:02 +0200
commitf252f2aea1e06c18379f31f2abdbb4bdbda5cf93 (patch)
tree33f2c94211df9a69c33166d74ba4aa97f60abca4
parent291e18e82de36cd68e4e46e537fb5bf31786671a (diff)
[ FIXES ] Fix build on Mac OS, should lookup for library at /usr/local/.
Add this line as well inside .zshrc, any one really. export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
-rw-r--r--makefile8
-rw-r--r--src/manifest_builder.cxx1
2 files changed, 5 insertions, 4 deletions
diff --git a/makefile b/makefile
index 7415acb..bf257aa 100644
--- a/makefile
+++ b/makefile
@@ -1,12 +1,12 @@
.PHONY: build-btb-core
build-btb-core:
- g++ -I./inc $(wildcard src/*.cxx) -std=c++20 -fPIC -shared -o libbtb.so
- cp libbtb.so /usr/lib
+ sudo g++ -I./inc $(wildcard src/*.cxx) -std=c++20 -fPIC -shared -o libbtb.so
+ sudo cp libbtb.so /usr/local/lib
.PHONY: build-btb
build-btb:
- g++ -I./inc $(wildcard cli/*.cxx) -lbtb -o btb
- cp btb /usr/bin
+ sudo g++ -I./inc $(wildcard cli/*.cxx) -std=c++20 -L/usr/local -lbtb -o btb
+ sudo cp btb /usr/local/bin
.PHONY: help
help:
diff --git a/src/manifest_builder.cxx b/src/manifest_builder.cxx
index 81f2c8e..394432f 100644
--- a/src/manifest_builder.cxx
+++ b/src/manifest_builder.cxx
@@ -14,6 +14,7 @@
#include <iostream>
#include <fstream>
+#include <sstream>
using json = nlohmann::json;