sketchbooks99 / PRayGround

GPU ray tracing framework using NVIDIA OptiX 7 and 8
MIT License
40 stars 2 forks source link

[BUG] #9

Closed bipul-mohanto closed 2 years ago

bipul-mohanto commented 2 years ago

@sketchbooks99

Hi,

Thanks for the repository. I am using Ubuntu 22.04 LTS, OptiX 7.4, Driver version 515.65.01, CUDA 11.7, CLion as an IDE.

I find some errors with util.h file during compilation,

/home/highvive1/Desktop/PRayGround/prayground/core/util.h:188:56: error: expected primary-expression before ‘)’ token
  188 |         Message(MSG_WARNING, ss.str(), msg, __VA_ARGS__);       \
      |                                                        ^
/home/highvive1/Desktop/PRayGround/prayground/shape/trianglemesh.cpp:110:13: note: in expansion of macro ‘PG_LOG_WARN’
  110 |             PG_LOG_WARN("Two or more number of indices have been already set.");
      |             ^~~~~~~~~~~
/home/highvive1/Desktop/PRayGround/prayground/shape/trianglemesh.cpp: In member function ‘prayground::TriangleMesh::Data prayground::TriangleMesh::getData()’:
/home/highvive1/Desktop/PRayGround/prayground/core/util.h:180:55: error: expected primary-expression before ‘)’ token
  180 |         Message(MSG_NORMAL, ss.str(), msg, __VA_ARGS__);   

So, If I comment the PG_LOG/ PG_LOG_WARN in the program, it works fine. Very probably the __VA_ARGS__ is creating the problem. Could you please check?

sketchbooks99 commented 2 years ago

Hi @bipul-mohanto

Thank you for reporting the issue. It was due to slight difference between linux/windows environment 😞 I've fixed those errors, and pushed to master branch. But it was tested on WSL not pure linux, so please let me know if you face to other bugs.

bipul-mohanto commented 2 years ago

ありがとうございます。 It is all working fine now. I always admire your work and learning a lot from you. Few questions:

sketchbooks99 commented 2 years ago

@bipul-mohanto

I'm glad it works well.

bipul-mohanto commented 2 years ago

Thank you once again.

Screenshot from 2022-09-12 18-36-39

sketchbooks99 commented 2 years ago

Nice! I really enjoy and be glad to see your interesting work! I hope you will go well. And please let me know if you publish any papers or works. It will be big motivation to develop my library👍