Home Forums Games202-高质量实时渲染 关于作业2开头编译的困惑

Viewing 3 reply threads
  • Author
    Posts
    • #8260 Score: 0
      I_love_graphics
      Participant

      想问一下作业2那个编译和运行是什么意思啊,怎么生成nori.exe呢?

    • #8261 Score: 0
      tk100p
      Participant

      很怪,刚想问这个问题。我在linux下面试着能编译过,在windows下面就有这样的错误
      prt\src\prt.cpp(219): error C4716: “<lambda_9ed74708f63acbd4deb1a7dc36ea3ac3>::operator()”: 必须返回一个值

      • #8262 Score: 4
        YunHsiao
        Participant
        19 pts

        MSVC 对于代码中的中文字符支持有问题(应该是会吞换行符),需要启用 utf-8 编译选项:

        在 prt/CMakeLists.txt 112 行添加:
        target_compile_options(nori PUBLIC /utf-8) # MSVC unicode support

        This post has received 4 votes up.
        • This reply was modified 3 years, 5 months ago by YunHsiao.
        • This reply was modified 3 years, 5 months ago by YunHsiao.
      • #8268 Score: 0
        I_love_graphics
        Participant

        巧了 我也遇到这个问题

    • #8381 Score: 0
      imbaaa
      Participant

      我在MinGW64平台编译始终有Generating dwaLookups.h不通过的报错 在运行dwalookup时发生段错误

    • #8422 Score: 0
      ydh
      Participant

      我用的是win10 + visual studio 2019,结合框架网站的教程编译的,很简单https://wjakob.github.io/nori/#guidelines,但是没有在debug下编译成功,有一个库链接不上去。

Viewing 3 reply threads
  • You must be logged in to reply to this topic.