Trying to build & use freeRDP on rhel / alma linux for a project

Hi Folks,

I am trying to build the freeRDP binary & libraries and use that for my project

Seems when i build and install the freeRDP binary
It is installed
[g_user@localhost gordp]$ which freerdp-proxy
/usr/local/bin/freerdp-proxy
and libraries are in /lib/x86-64-linux-gnu

But when i am trying to use that to build another package, it fails to recognize where the freerdp libraries are.

So my question is, what is the default directory where the binaries and libraries should be stored in order for rhel/alma linux to be able to get that working normally.

here is the output for alma linux

[g_user@localhost freerdp]$ ldd freerdp-proxy
	linux-vdso.so.1 (0x00007ffce8fea000)
	libfreerdp-server-proxy3.so.3 => /home/g_user/project/build/almalinux-8.5-x86_64/freerdp/server/proxy/libfreerdp-server-proxy3.so.3 (0x00007fae86838000)
	libfreerdp-server3.so.3 => /home/g_user/project/build/almalinux-8.5-x86_64/freerdp/server/common/libfreerdp-server3.so.3 (0x00007fae865c6000)
	libfreerdp-client3.so.3 => /home/g_user/project/build/almalinux-8.5-x86_64/freerdp/client/common/libfreerdp-client3.so.3 (0x00007fae862b4000)
	libfreerdp3.so.3 => /home/g_user/project/build/almalinux-8.5-x86_64/freerdp/libfreerdp/libfreerdp3.so.3 (0x00007fae85d55000)
	libwinpr3.so.3 => /home/g_user/project/build/almalinux-8.5-x86_64/freerdp/winpr/libwinpr/libwinpr3.so.3 (0x00007fae85a06000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fae85641000)
	libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007fae853ad000)
	libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007fae84ec4000)
	libz.so.1 => /lib64/libz.so.1 (0x00007fae84cad000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fae84a8d000)
	libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007fae84872000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fae86a81000)
	librt.so.1 => /lib64/librt.so.1 (0x00007fae8466a000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fae842e8000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007fae840e4000)
	libudev.so.1 => /lib64/libudev.so.1 (0x00007fae83e4d000)
	libmount.so.1 => /lib64/libmount.so.1 (0x00007fae83bf3000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fae839db000)
	libblkid.so.1 => /lib64/libblkid.so.1 (0x00007fae83788000)
	libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fae83580000)
	libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fae83356000)
	libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007fae830d2000)

here is the output for ubuntu linux

ldd freerdp-proxy
	linux-vdso.so.1 (0x00007ffe153e7000)
	libfreerdp-server-proxy3.so.3 => /home/g_user/project/build/ubuntu-20.04-x86_64/freerdp/server/proxy/libfreerdp-server-proxy3.so.3 (0x00007fd0ba6e6000)
	libfreerdp3.so.3 => /home/g_user/project/build/ubuntu-20.04-x86_64/freerdp/libfreerdp/libfreerdp3.so.3 (0x00007fd0ba369000)
	libwinpr3.so.3 => /home/g_user/project/build/ubuntu-20.04-x86_64/freerdp/winpr/libwinpr/libwinpr3.so.3 (0x00007fd0ba20d000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd0ba00b000)
	libfreerdp-client3.so.3 => /home/g_user/project/build/ubuntu-20.04-x86_64/freerdp/client/common/libfreerdp-client3.so.3 (0x00007fd0b9eee000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd0b9ed2000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd0b9eaf000)
	libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fd0b9e1c000)
	libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fd0b9b46000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fd0ba73a000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd0b99f5000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd0b99ef000)
	libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007fd0b99d3000)
	libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fd0b99a6000)

Any help would be appreciated