Comments (11)
I am not at all surprised - if you know how to get the gcc extensions working on a Mac that would be a great update.
from puzzlebox.
Which extension is that?
from puzzlebox.
Err - all the things that did not work for you... E.g. functions inside functions is a gcc special, and strdupa, and asprintf are extensions set with _GNU_SOURCE on a linux build.
Basically, no, it does not build on Mac.
And yes, if you know how to make such build on mac, that would be nice.
I gather it may be possible using homebrew, and some googling may help.
from puzzlebox.
Seems like the first issue I had, was that this has another version of indent, which messed up the source code rather than fix it, and then stumbled on those things you mentioned here. I guess I'll use a linux machine for this, then - worked well there.
from puzzlebox.
Ah, OK, indent did cause some of those, I see. I might remove that from make.
from puzzlebox.
maybe it will help.
https://www.macports.org/
http://www.newthinktank.com/2013/08/how-to-install-gcc/
from puzzlebox.
Quick-and-dirty-fix (works)
- brew install gcc
- edit Makefile and change cc to /usr/local/opt/gcc/bin/gcc-8
- Add attached header file apple-strdupa.h
- Include it from puzzlebox.c
Build! :)
apple-strdupa.h.txt
from puzzlebox.
I may have to try that, thanks.
from puzzlebox.
The code for strdupa() was snipped from https://code.woboq.org/userspace/glibc/string/string.h.html
from puzzlebox.
Could you add the apple header to the source, please?
from puzzlebox.
Do make a pull request with any suggested changes. As long as they don't break linux builds, I'm happy to include them.
from puzzlebox.
Related Issues (11)
- Building on windows, command line, etc (PEBKAC) HOT 42
- Initials Do Not Work
- Extra clearance on height of nub not changing HOT 2
- Difference in Initials depth
- Can't render anything with i activated and c below 21 HOT 5
- Overhang angle too flat HOT 2
- Text on the second and next sides is cropped HOT 2
- Brittle nubs HOT 2
- Running with `f` option enabled causes object OpenSCAD to throw error HOT 10
- Entering non ascii characters into text (S= field) produces corrupt Scad file
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 puzzlebox.