Comments (8)
Right, since v2.0.0, pcre2 is a requirement.
You can find detailed build instructions on the website.
from boxes.
Since you're on Mac, you might also be interested to install via brew, or look at their boxes formula for additional inspiration on how to compile yourself.
from boxes.
I don't use brew. If the source doesn't compile, I don't use it. Even with libpcre2, this doesn't
LDFLAGS and CFLAGS are ignored by the Makefile:
printf "%s\n%s\n" $CFLAGS $LDFLAGS
-I/Users/USER/local/include
-L/Users/USER/local/lib
(zsh, both are exported)
make used ```gcc -I. -I../src -Wall -W -O -c -o parser.o parser.c````
After changing src/Makefile to use the environment CFLAGS, it still generated errors in parser.y.
For a 'just for fun' program, this isn't worth it. Thanks anyway.
from boxes.
It appears you are setting CFLAGS
and LDFLAGS
in your shell before calling make. This wouldn't work because they are set in the Makefile, too. We have CFLAGS_ADDTL
and LDFLAGS_ADDTL
for adding arguments to compiler and linker calls.
I don't have access to a Mac to try and reproduce your problem. On Linux, when you install libunistring-dev
and libpcre2-dev
, headers and libs are already placed where they are found by the default settings.
from boxes.
If your Makefiles used: $(eval CFLAGS := $(CFLAGS) -I. -Iregexp -Wall -W $(CFLAGS_ADDTL))
then it would use the user supplied value in addition to yours. There is probably even a better way.
You can't possibly know the include path a user has used for a separately installed library. Requiring them to edit the Makefile is poor method to fix it.
from boxes.
You can't possibly know the include path a user has used for a separately installed library. Requiring them to edit the Makefile is poor method to fix it.
It's actually not required to edit the Makefile. You can type something like this:
CFLAGS_ADDTL=-I/Users/USER/local/include LDFLAGS_ADDTL=-L/Users/USER/local/lib make
Let me know if stuff works for you now. We seem to have drifted somewhat from the original topic of runtime dependencies.
from boxes.
Neither of those are standard nor listed in any of the readme files ( that I searched anyway ). If it isn't documented and you're doing something non-standard, you can't expect people to set it properly or know they need to set it.
If you just used the standard vars properly, you wouldn't need some hacky method.
from boxes.
Neither of those are standard nor listed in any of the readme files
Good point! I added that information to the FAQ.
from boxes.
Related Issues (20)
- compilation option request (static binary) HOT 6
- Update project license to GPL-3 HOT 1
- Boxes missing on RedHat 8 and 9 HOT 8
- Tests failing on x86_64-unknown-linux-musl HOT 28
- Portage reports build QA issues HOT 1
- Build fails with clang 16 HOT 2
- Clang support? HOT 5
- Prepare for release of v2.1.0 HOT 2
- v2.1.0: fatal error: boxes.h: No such file or directory HOT 21
- v2.10: fatal error: parser.h: No such file or directory HOT 2
- Error building v2.1.0 under brew on macOS HOT 11
- Odd encoding error on clone and instant diff HOT 4
- Geany integration HOT 4
- How to align / center a box within the terminal window? HOT 7
- Allow blank boxes when specified via `-c " "` HOT 5
- shell-init: error HOT 4
- Update (Ubuntu) Packages to v2 HOT 14
- Question/Clarification on License (GPL-2 vs. GPL-2+) HOT 2
- Spacing for Unicode Block characters is off 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 boxes.