mmp / pbrt-v4

Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
https://pbrt.org
Apache License 2.0
2.8k stars 429 forks source link

-- Unable to find -lprofiler #370

Closed disini closed 1 year ago

disini commented 1 year ago

Hi guys,

I try to compile the code on ubuntu 22.04.2, after some errors and warnings solved, it still have a tip like this. -- Unable to find -lprofiler does anyone know what the "-lprofiler" is ? I searched on bing and google and github ,etc., but nothing about this "-lprofiler" was found.

Thanks so much!

mmp commented 1 year ago

It's part of gperftools: https://gperftools.github.io/gperftools/cpuprofile.html. If it's found, then you can use that (IMHO fairly nice) profiler. pbrt links with it if it's found but it's no problem if it isn't; it should still all build and run fin without it. On ubuntu I believe that it's in libgoogle-perftools-dev.

disini commented 1 year ago

Thanks so much sir! I'll try it again!