aras-p / hlsl2glslfork

HLSL to GLSL language translator based on ATI's HLSL2GLSL. Used in Unity.
Other
558 stars 143 forks source link

Can't build on Ubuntu 15.10 #69

Open Victoralm opened 9 years ago

Victoralm commented 9 years ago

Need some help please, I'm getting this error message while trying to build with "cmake . && make":

[  3%] Executing Bison on hlslang.y
/bin/sh: 1: bison: not found
CMakeFiles/hlsl2glsl.dir/build.make:59: recipe for target 'hlslang/MachineIndependent/hlslang_tab.cpp' failed
make[2]: *** [hlslang/MachineIndependent/hlslang_tab.cpp] Error 127
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/hlsl2glsl.dir/all' failed
make[1]: *** [CMakeFiles/hlsl2glsl.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2
vk2gpu commented 9 years ago

Have you got bison installed?

-----Original Message----- From: "Victoralm" notifications@github.com Sent: ‎20/‎11/‎2015 15:17 To: "aras-p/hlsl2glslfork" hlsl2glslfork@noreply.github.com Subject: [hlsl2glslfork] Can't build on Ubuntu 15.10 (#69)

Need some help please, I'm getting this error message while trying to build with "cmake . && make": [ 3%] Executing Bison on hlslang.y /bin/sh: 1: bison: not found CMakeFiles/hlsl2glsl.dir/build.make:59: recipe for target 'hlslang/MachineIndependent/hlslang_tab.cpp' failed make[2]: * [hlslang/MachineIndependent/hlslang_tab.cpp] Error 127 CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/hlsl2glsl.dir/all' failed make[1]: * [CMakeFiles/hlsl2glsl.dir/all] Error 2 Makefile:75: recipe for target 'all' failed make: *\ [all] Error 2 — Reply to this email directly or view it on GitHub.

darrellenns commented 3 years ago

Same missing hlslang_tab.hpp error for me on Arch Linux. Bison is installed and there is no bison error.

[  2%] Executing Bison on hlslang.y
hlslang.y:99.1-12: warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’ [-Wdeprecated]
   99 | %pure-parser
      | ^~~~~~~~~~~~
      | %define api.pure
hlslang.y: warning: fix-its can be applied.  Rerun with option '--update'. [-Wother]
[  5%] Executing flex on hlslang.l
Scanning dependencies of target hlsl2glsl
[  8%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslCommon.cpp.o
[ 11%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslFunction.cpp.o
[ 14%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslOutput.cpp.o
[ 17%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslStruct.cpp.o
[ 20%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/glslSymbol.cpp.o
[ 23%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/hlslCrossCompiler.cpp.o
[ 26%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/hlslLinker.cpp.o
[ 29%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/hlslSupportLib.cpp.o
[ 32%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/propagateMutable.cpp.o
[ 35%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/GLSLCodeGen/typeSamplers.cpp.o
[ 38%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/HLSL2GLSL.cpp.o
[ 41%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/InfoSink.cpp.o
[ 44%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/Initialize.cpp.o
[ 47%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/Intermediate.cpp.o
[ 50%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/intermOut.cpp.o
[ 52%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/IntermTraverse.cpp.o
[ 55%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/ParseHelper.cpp.o
[ 58%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/PoolAlloc.cpp.o
[ 61%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/RemoveTree.cpp.o
[ 64%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/SymbolTable.cpp.o
[ 67%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/ConstantFolding.cpp.o
[ 70%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/mojoshader_common.cpp.o
[ 73%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/mojoshader_lexer.cpp.o
[ 76%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/mojoshader_preprocessor.cpp.o
[ 79%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/mojoshader.cpp.o
[ 82%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/preprocessor/sourceloc.cpp.o
[ 85%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/OSDependent/Linux/ossource.cpp.o
[ 88%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/Gen_hlslang.cpp.o
[ 91%] Building CXX object CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/hlslang_tab.cpp.o
hlslang_tab.cpp:143:10: fatal error: hlslang_tab.hpp: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/hlsl2glsl.dir/build.make:461: CMakeFiles/hlsl2glsl.dir/hlslang/MachineIndependent/hlslang_tab.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:124: CMakeFiles/hlsl2glsl.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
derekslinz commented 7 months ago

I removed mv hlslang_tab.hpp hlslang_tab.h this command and was able to compile.