compiling SWUpdate into a toolchain

I am attempting to compile SWUpdate into my cross-toolchain to use its API within my C++ projects. However, I’m encountering some issues during the build process. When I run make -j16, I get the following output:

jhstrutton@JoshuaLaptop:~/swupdate$ make -j16
Package lua was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua' found
Package lua was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua' found
Package lua was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua' found
Package lua was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua' found
  CC      ipc/network_ipc.o
  CC      ipc/network_ipc-if.o
  CC      ipc/progress_ipc.o
  CC      core/swupdate.o
  CC      core/cpio_utils.o
  CC      core/notifier.o
  CC      core/handler.o
  CC      handlers/dummy_handler.o
  CC      core/bootloader.o
  CC      handlers/chain_handler.o
  CC      core/hw-compatibility.o
  CC      core/install_from_file.o
  CC      core/util.o
  CC      core/parser.o
  CC      core/pctl.o
  CC      bootloader/none.o
  CC      core/state.o
  LD      bootloader/built-in.o
  CC      core/syslog.o
  LD      ipc/built-in.o
arm-linux-gnueabihf-ld: unrecognized option '-Wl,-O1'
arm-linux-gnueabihf-ld: use the --help option for usage information
make[1]: *** [scripts/Makefile.build:224: bootloader/built-in.o] Error 1
make: *** [Makefile:514: bootloader] Error 2
make: *** Waiting for unfinished jobs....
  CC      core/installer.o
arm-linux-gnueabihf-ld: unrecognized option '-Wl,-O1'
arm-linux-gnueabihf-ld: use the --help option for usage information
make[1]: *** [scripts/Makefile.build:224: ipc/built-in.o] Error 1
make: *** [Makefile:520: ipc] Error 2
  CC      core/network_utils.o
  CC      core/network_thread.o
  CC      core/stream_interface.o
  CC      core/progress_thread.o
  CC      core/parsing_library.o
  LD      handlers/built-in.o
arm-linux-gnueabihf-ld: unrecognized option '-Wl,-O1'
arm-linux-gnueabihf-ld: use the --help option for usage information
make[1]: *** [scripts/Makefile.build:224: handlers/built-in.o] Error 1
make: *** [Makefile:514: handlers] Error 2
  CC      core/artifacts_versions.o
  CC      core/swupdate_dict.o
  CC      core/swupdate_vars.o
  CC      core/semver.o
  CC      core/strlcpy.o
  LD      core/built-in.o
arm-linux-gnueabihf-ld: unrecognized option '-Wl,-O1'
arm-linux-gnueabihf-ld: use the --help option for usage information
make[1]: *** [scripts/Makefile.build:224: core/built-in.o] Error 1
make: *** [Makefile:514: core] Error 2

I have compiled lua and various other headers into my toolchain with make install, but this seems diffrent from a missing dependency.

Below is the config file I generated with menuConfig…

#
# Automatically generated file; DO NOT EDIT.
# SWUpdate Configuration
#

#
# SWUpdate Settings
#

#
# General Configuration
#
# CONFIG_CURL is not set
# CONFIG_CURL_SSL is not set
# CONFIG_DISKFORMAT is not set
# CONFIG_SYSTEMD is not set
CONFIG_DEFAULT_CONFIG_FILE="/etc/swupdate.cfg"
# CONFIG_SCRIPTS is not set
# CONFIG_HW_COMPATIBILITY is not set
CONFIG_SW_VERSIONS_FILE="/etc/sw-versions"

#
# Socket Paths
#
CONFIG_SOCKET_CTRL_PATH=""
CONFIG_SOCKET_PROGRESS_PATH=""
# CONFIG_MTD is not set
CONFIG_LUA=y
CONFIG_LUAPKG="lua"
# CONFIG_FEATURE_SYSLOG is not set

#
# Build Options
#
CONFIG_CROSS_COMPILE=""
CONFIG_SYSROOT=""
CONFIG_EXTRA_CFLAGS=""
CONFIG_EXTRA_LDFLAGS=""
CONFIG_EXTRA_LDLIBS=""

#
# Debugging Options
#
# CONFIG_DEBUG is not set
# CONFIG_WERROR is not set
# CONFIG_NOCLEANUP is not set

#
# Bootloader support
#

#
# Bootloader Interfaces
#
CONFIG_BOOTLOADER_NONE=y
# CONFIG_BOOTLOADER_EBG is not set
# CONFIG_UBOOT is not set
# CONFIG_BOOTLOADER_GRUB is not set
# CONFIG_BOOTLOADER_CBOOT is not set
CONFIG_BOOTLOADER_DEFAULT_NONE=y
# CONFIG_BOOTLOADER_STATIC_LINKED is not set
CONFIG_UPDATE_STATE_CHOICE_BOOTLOADER=y
CONFIG_UPDATE_STATE_BOOTLOADER="ustate"

#
# Interfaces
#
# CONFIG_DOWNLOAD is not set
# CONFIG_SURICATTA is not set
# CONFIG_WEBSERVER is not set

#
# Security
#
# CONFIG_SSL_IMPL_NONE is not set
CONFIG_SSL_IMPL_OPENSSL=y
# CONFIG_SSL_IMPL_WOLFSSL is not set
# CONFIG_SSL_IMPL_MBEDTLS is not set
# CONFIG_HASH_VERIFY is not set
# CONFIG_SIGNED_IMAGES is not set
# CONFIG_ENCRYPTED_IMAGES is not set

#
# Compressors (zlib always on)
#
CONFIG_GUNZIP=y
# CONFIG_ZSTD is not set

#
# Parsers
#

#
# Parser Features
#
# CONFIG_LIBCONFIG is not set
CONFIG_PARSERROOT=""
# CONFIG_LUAEXTERNAL is not set
# CONFIG_SETSWDESCRIPTION is not set

#
# Handlers
#

#
# Image Handlers
#
# CONFIG_ARCHIVE is not set
# CONFIG_BOOTLOADERHANDLER is not set
# CONFIG_COPY is not set
# CONFIG_DELTA is not set
# CONFIG_DISKPART is not set
# CONFIG_DISKFORMAT_HANDLER is not set
# CONFIG_LUASCRIPTHANDLER is not set
# CONFIG_EMBEDDED_LUA_HANDLER is not set
# CONFIG_EMMC_HANDLER is not set
# CONFIG_RAW is not set
# CONFIG_RDIFFHANDLER is not set
# CONFIG_REMOTE_HANDLER is not set
# CONFIG_SHELLSCRIPTHANDLER is not set
# CONFIG_SWUFORWARDER_HANDLER is not set
# CONFIG_UCFWHANDLER is not set
# CONFIG_UNIQUEUUID is not set

#
# Containers
#

#
# Update containers
#
# CONFIG_DOCKER is not set

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật