sultim-t / prboom-plus-rt

823 stars 49 forks source link

[linux] libRayTracedGL1.so build calls for static location: "Build/RelWithDebInfo" #64

Open arrowgent opened 2 years ago

arrowgent commented 2 years ago
Consolidate compiler generated dependencies of target prboom-plus
make[2]: *** No rule to make target '/home/build/prboom-RTX/RayTracedGL1-SpecularReprojection/Build/RelWithDebInfo/libRayTracedGL1.so', needed by 'prboom-plus'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:187: src/CMakeFiles/prboom-plus.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

build process:

RTGL1

mkdir build
cd build
cmake -DRG_WITH_NVIDIA_DLSS=OFF ..
cmake --build .

prboom-plus-rt

export RTGL1_SDK_PATH=/home/build/prboom-RTX/RayTracedGL1-SpecularReprojection

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

solution:

mv build Build
cd Build
mkdir RelWithDebInfo
cd RelWithDebInfo
ln -s ../libRayTracedGL1.so libRayTracedGL1.so

cmake --build .

[  5%] Built target rdatawad
[  6%] Built target prboomwad
[  7%] Linking CXX executable ../prboom-plus
[100%] Built target prboom-plus

try to avoid static folder like this, and "build" is fairly standard, lowercase. suggesting "RelWithDebInfo" is for ubuntu/debian/PPA builds avoid this static folder to be more linux distro agnostic. if you want to build a Debian .deb package then use a second cmake ruleset that --toggles this on/off