KhronosGroup / NNEF-Tools

The NNEF Tools repository contains tools to generate and consume NNEF documents
https://www.khronos.org/nnef
222 stars 57 forks source link

cannot build c++ parser #113

Closed jianshitansuantong233 closed 4 years ago

jianshitansuantong233 commented 4 years ago

After following the steps specified in README, I find no Makefile in the build directory, therefore I cannot run make command to build the c++ parser library. A screenshot of contents of the build directory is shown below. Untitled

gyenesvi commented 4 years ago

Unfortunately I do no know too much about cmake, but the commands in the readme run fine on my computer. Are you saying that the cmake .. command run from the build folder executed properly but did not generate the makefile? I tried it now, and it generates a Makefile for me in the build folder, and then the make command also runs properly, generating the lib file..

jianshitansuantong233 commented 4 years ago

Did you try it out on a Windows machine or Linux one?

gyenesvi commented 4 years ago

On Mac now, but it worked on Linux too. Did not try on Windows.

jianshitansuantong233 commented 4 years ago

Ok, I did it on Windows, so I guess maybe that's the issue. Does the python parser do the same thing as c++ parser? If it is, then I will use that one and this missing Makefile wouldn't be an issue.

gyenesvi commented 4 years ago

Yes, the Python parser does the same thing (it is actually a wrapper around the C++ parser). When you install the Python package, it does compile the C++ code, although without using cmake.