Comments (4)
I've had reports that some Linux distributions ship with a version of yacc/bison where the %expect statement is not supported. The mailing list has a number of Linux users lingering, they might give better response to this.
from openscad.
Hi kintel,
I just found a solution but do not know if it's the right one.
I replaced the yacc by the bison parser in Makefile and work.
Steps to build the OpenSCAD successfully:
git clone --depth=1 git://github.com/openscad/openscad.git
cd openscad
qmake
cp Makefile Makefile.org
nano -w Makefile <-- Replace the yacc parser by the bison (find the line 338).
make
Comparing the original Makefile, with the new Makefile:
diff -u Makefile.org Makefile
--- Makefile.org 2011-01-28 23:10:50.000000000 +0000
+++ Makefile 2011-01-28 23:11:18.000000000 +0000
@@ -335,7 +335,7 @@
compiler_yacc_decl_clean:
-$(DEL_FILE) parser_yacc.h
parser_yacc.h: src/parser.y
-
yacc -d -p parser -b parser src/parser.y
-
bison -d -p parser -b parser src/parser.y rm -f parser_yacc.h parser_yacc.cpp mv -f parser.tab.h parser_yacc.h mv -f parser.tab.c parser_yacc.cpp
Thanks for your help.
Henrique Dias
from openscad.
I think the fix will be to use bison explicitly everywhere.
from openscad.
This should be fixed by know (updated build system)
from openscad.
Related Issues (20)
- Does not see user color schemes (Mac OS 13.6.4) HOT 2
- Intersection not working, creating union instead HOT 5
- preview does not show diffrence() correctly HOT 1
- roof_ss.cc sans me HOT 1
- `$variable` assignment no longer seems to work. HOT 13
- really weird issue that might involve floats HOT 1
- Linear_extrude with 3d vector as height yields inapropriate result HOT 3
- let color() work in rendering mode too and allow to export colored STL files. HOT 1
- Save and restore GUI window state more reliably
- Splat 2D/3D functions HOT 7
- Document vector swizzling HOT 1
- Setting to do full Renders in place of Preview on AutoReload HOT 4
- path_extrudes() not loved by Manifold (or even CGAL, maybe...) HOT 10
- Add / change Metadata for 3mf export HOT 9
- Sadly, we can't add .scad files to the issues in the openSCAD repository HOT 9
- Wikibooks search fails to find minkowski HOT 15
- HEAD Build issues on Gentoo with EXPERIMENTAL=OFF HOT 15
- OpenScad will not load on Mac HOT 2
- cmake aborts with no quickhull/QuickHull.cpp HOT 1
- Calculation of number of sides based on $fs is slightly incorrect HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openscad.