Open stephenlindauer opened 1 year ago
Forgot to include system info.
$ buck --version
buck version 9c7c421e49f4d92d67321f18c6d1cd90974c77c4
$ uname -a
Linux jetsonnano 4.9.253-tegra #1 SMP PREEMPT Sat Feb 19 08:59:22 PST 2022 aarch64 aarch64 aarch64 GNU/Linux
I'm trying to build Nvidia's jetson multimedia api samples with Buck so I can integrate into a project but wanted to test things out first. I built the BUCK file (below) from their Rules.mk file and I believe everything is the same.
Linking fails though with hundreds of
undefined reference
errors to the libraries I'm trying to link to. Looking at thelinker.argsfile
, it shows:and I notice all the libraries are before all the .o files. If I move the libraries to the end and manually run
g++
with these args, it builds successfully. Is there a param I'm setting wrong or not setting in my buck file that can fix this?