thliebig / fparser Goto Github PK
View Code? Open in Web Editor NEWFunction Parser for C++, Fork from http://warp.povusers.org/FunctionParser/
Function Parser for C++, Fork from http://warp.povusers.org/FunctionParser/
On macOS, running a build of openEMS installed to a custom location will fail. The RPATH for the custom location is not set correctly, only system directories are searched, as a result, fparser cannot be found.
gentoo@users-iMac-Pro ~/code/openEMS-Project/fparser $ ~/opt/bin/openEMS
dyld[90539]: Library not loaded: libfparser.4.dylib
Referenced from: <1DD80732-F311-3B6A-B169-99DB48DE349B> /Users/gentoo/opt/bin/openEMS
Reason: tried: 'libfparser.4.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibfparser.4.dylib' (no such file), 'libfparser.4.dylib' (no such file), '/usr/local/lib/libfparser.4.dylib' (no such file), '/usr/lib/libfparser.4.dylib' (no such file, not in dyld cache), '/Users/gentoo/code/openEMS-Project/fparser/libfparser.4.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/gentoo/code/openEMS-Project/fparser/libfparser.4.dylib' (no such file), '/Users/gentoo/code/openEMS-Project/fparser/libfparser.4.dylib' (no such file), '/usr/local/lib/libfparser.4.dylib' (no such file), '/usr/lib/libfparser.4.dylib' (no such file, not in dyld cache)
Abort trap: 6
Curiously, only fparser is affected, other libraries such as CSXCAD is not.
After some investigation, I found the root cause is that the "install name" of libfparser
does not contain a full path, but CSXCAD's "install name" is an absolute path. Thus, CSXCAD can be found correctly using the absolute install path, but libfparser
cannot. After CSXCAD and openEMS are built, this incomplete install name will propagate upwards, so all binaries will have a wrong search path for libfparser
.
gentoo@users-iMac-Pro ~/code/openEMS-Project/CSXCAD/build $ otool -D ~/opt/lib/libCSXCAD.dylib
/Users/gentoo/opt/lib/libCSXCAD.dylib:
/Users/gentoo/opt/lib/libCSXCAD.0.dylib
gentoo@users-iMac-Pro ~/code/openEMS-Project/CSXCAD/build $ otool -D ~/opt/lib/libfparser.4.5.1.dylib
/Users/gentoo/opt/lib/libfparser.4.5.1.dylib:
libfparser.4.dylib
I'll submit a Pull Request to fix this problem.
Your logical operators are & and |
Which is not usual, this can be easily modified
by hacking the code, but you really should put usual operators.
Apart from that, your lib is for me the best solution for c++
math and boolean expression parser !!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.