diazona / interp2d Goto Github PK
View Code? Open in Web Editor NEWA 2D interpolation library compatible with GSL.
License: Other
A 2D interpolation library compatible with GSL.
License: Other
Hi, after using make it seems that it's trying to link to gsl, but not gslcblas:
Linking C executable interp2dtest
//usr/local/lib/libgsl.so: undefined reference to cblas_dasum' //usr/local/lib/libgsl.so: undefined reference to
cblas_sger'
//usr/local/lib/libgsl.so: undefined reference to cblas_cdotc_sub' //usr/local/lib/libgsl.so: undefined reference to
cblas_icamax'
[...]
Adding gslcblas to target_link_libraries in CMakeLists.txt solved it for me.
Is there a specific reason why only a static library is built but not shared library?
Hello,
Run "interp2dtest" (compiled with with gcc 4.4.5) under valgrind and no issues found.
As an aside, as a complete newbie to Cmake I've found a little bit tricky to tell it where my gsl includes & libs are. A few words on this in the readme file would be helpful.
Regards.
hello,
i've just read through the GSL 2.1 manual: https://www.gnu.org/software/gsl/manual/html_node/2D-Introduction-to-Interpolation.html#g_t2D-Introduction-to-Interpolation
where it says that one needs two equally spaced grids x and y to use the functions for 2D interpolation. Is that true? thanks.
The cmake installation of interp2d on my Mac completed only partially. The static library was built successfully, but the linking of the interp2dtest
failed:
[ 71%] Built target interp2d_static
[ 85%] Linking C executable interp2dtest
ld: library not found for -lgsl
collect2: error: ld returned 1 exit status
make[2]: *** [interp2dtest] Error 1
make[1]: *** [CMakeFiles/interp2dtest.dir/all] Error 2
make: *** [all] Error 2
The CMakeCache.txt
contains all the necessary entries for gsl:
GSL_CFLAGS:INTERNAL=-I/opt/local/include
GSL_FOUND:INTERNAL=1
GSL_INCLUDEDIR:INTERNAL=/opt/local/include
GSL_INCLUDE_DIRS:INTERNAL=/opt/local/include
GSL_LDFLAGS:INTERNAL=-L/opt/local/lib;-lgsl;-lgslcblas;-lm
GSL_LIBDIR:INTERNAL=/opt/local/lib
GSL_LIBRARIES:INTERNAL=gsl;gslcblas;m
GSL_LIBRARY_DIRS:INTERNAL=/opt/local/lib
I wonder whether this info didn't trickle down into the link command for interp2dtest
.
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.