--- a/src/obs-ndi.cpp	1970-01-01 03:00:01.000000000 +0300
+++ b/src/obs-ndi.cpp	2024-08-04 03:58:33.271766959 +0300
@@ -229,10 +229,7 @@
 	if (!path.isEmpty()) {
 		locations << path;
 	}
-#if defined(__linux__) || defined(__APPLE__)
-	locations << "/usr/lib";
-	locations << "/usr/local/lib";
-#endif
+	locations << "@NDI@/lib";
 	for (QString location : locations) {
 		path = QDir::cleanPath(
 			QDir(location).absoluteFilePath(NDILIB_LIBRARY_NAME));
