MengXiao92
MengXiao92
你好,直接build nv_small是成功的,但是在build nv_small_256是遇到了一个错误,我修改tree.make PROJECTS := nv_small_256 执行命令:./tools/bin/tmake -build ready_for_test 出现错误: make: *** [vcs_build] Error 255 Died at ./tools/bin/tmake line 254. [TMAKE]: DONE 在outdir下,查看log $ cat nv_small_256.verif_trace_player.log Parsing library file '/home/mengxiao/NVDLA/hw-nv_small1/outdir/nv_small_256/vmod/vlibs/NV_DW02_tree.v'...

在stbiw文件夹下新建cpp,定义宏STB_IMAGE_WRITE_IMPLEMENTATION,从而保证实现的stbiw库中包含stbi_write_png() 的实现, 在库文件中的CMakeLists.txt中add_librarary,同时将当前路径作为stbiw的头文件的搜索路径,这样引用这个它的CMake就可以自动添加这个路径。