Coder Social home page Coder Social logo

pcre2 about boxes HOT 8 CLOSED

rwmitchell avatar rwmitchell commented on June 3, 2024
pcre2

from boxes.

Comments (8)

tsjensen avatar tsjensen commented on June 3, 2024

Right, since v2.0.0, pcre2 is a requirement.
You can find detailed build instructions on the website.

from boxes.

tsjensen avatar tsjensen commented on June 3, 2024

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.

rwmitchell avatar rwmitchell commented on June 3, 2024

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.

tsjensen avatar tsjensen commented on June 3, 2024

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.

rwmitchell avatar rwmitchell commented on June 3, 2024

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.

tsjensen avatar tsjensen commented on June 3, 2024

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.

rwmitchell avatar rwmitchell commented on June 3, 2024

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.

tsjensen avatar tsjensen commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.