Comments (16)
I am facing the same issue.
I have fitsio.h installed natively on the machine (/usr/include/) but it still throws the error
from xlibs.
@hqiu-nju @raghuttamh . Can you check the config.log file with "error" or upload it here? It maybe caused by other missing library.
from xlibs.
Hi @ypmen , I have attached the config.log to the ticket.
config.log
I have boost_log inside /home/myuser/somefolder/boost_1_82_0/
I even tried including that folder with LDFLAG="-L/home/myuser/somefolder/sofa/:/home/myuser/somefolder/boost_1_82_0/stage/lib/" CPPFLAG="-I/home/myuser/somefolder/sofa:/home/myuser/somefolder/boost_1_82_0/"
when using ./configure
from xlibs.
Hi @raghuttamh . I think this is the real error. Can you install libboost_log
"""
/usr/bin/ld: cannot find -lboost_log: No such file or directory
collect2: error: ld returned 1 exit status
"""
from xlibs.
Do you want me to install it natively? I have installed it inside a directory but I dont think I have an option to provide the address right?
from xlibs.
@raghuttamh . Can you try ./configure LDFLAGS=-I/path_to_include CPPFLAGS=-L/path_to_lib?
from xlibs.
No it does not work. It does not throw any errors for this action, but again, there is no change in config.log
I tried to provide the path to boost_log, instead of sofa, which clears that step, but, again, it would not be able to find sofa_libraries later
from xlibs.
@raghuttamh You need both flags. LDFLAGS="-I.. -I.. " and CPPFLAGS="-L.. -L.."
from xlibs.
So I've done this before with the following setup, and also I have the variable $BOOST_ROOT linked to /opt/homebrew/Cellar/boost/1.84.0_1/
when I try
./configure --prefix=/Users/h.qiu/software/XLibs/ LDFLAGS="-L/Users/h.qiu/software/sofa/lib/ -L/opt/homebrew/Cellar/boost/1.84.0_1/lib" CPPFLAGS="-I/Users/h.qiu/software/sofa/include/ -I/opt/homebrew/Cellar/boost/1.84.0_1/include"
I then get the cfitsio library not found that I was mentioning.
checking for boostlib >= 1.56 (105600)... yes
checking for ffgky in -lcfitsio... no
cfitsio library was not found!
from xlibs.
config.log
Here's my config.log, I think the error is
configure:17713: gcc -o conftest -g -O2 -I/Users/h.qiu/software/sofa/include/ -I/opt/homebrew/Cellar/boost/1.84.0_1/include -L/Users/h.qiu/software/sofa/lib/ -L/opt/homebrew/Cellar/boost/1.84.0_1/lib conftest.c -lcfitsio -lboost_program_options -lboost_log >&5
ld: library 'cfitsio' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:17713: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "XLibs"
| #define PACKAGE_TARNAME "xlibs"
| #define PACKAGE_VERSION "0.0"
| #define PACKAGE_STRING "XLibs 0.0"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "xlibs"
| #define VERSION "0.0"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_BOOST /**/
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply.
| The 'extern "C"' is for builds by C++ compilers;
| although this is not generally supported in C code supporting it here
| has little cost and some practical benefit (sr 110532). */
| #ifdef __cplusplus
| extern "C"
| #endif
| char ffgky (void);
| int
| main (void)
| {
| return ffgky ();
| ;
| return 0;
| }
configure:17725: result: no
from xlibs.
@hqiu-nju Can you also try the flags LDFLAGS="-I.. -I.. " and CPPFLAGS="-L.. -L.." to add the cfitsio path? or use apt install https://github.com/ypmen/PulsarX/blob/c9743da6489106999701561f16e848e6919c9371/Dockerfile#L30
from xlibs.
Ok, I think remaking cfitsio installation has worked this time.
what is this package afterwards?
checking for png_set_flush in -lpng... no
from xlibs.
@hqiu-nju libpng-dev You can check the Dockerfile https://github.com/ypmen/PulsarX/blob/c9743da6489106999701561f16e848e6919c9371/Dockerfile#L34
from xlibs.
Ok, I think the main reason is the libraries from homebrew are not linked to the mac terminal shell
from xlibs.
Ok, I think I have solved the dependencies with homebrew, however as I mentioned I'm using an ARM chip on mac, I have this following error with GCC, is there an ideal solution for this? rosetta?
checking for gcc __builtin_cpu_init function... no
configure: error: Need GCC to support X86 CPU features tests
from xlibs.
@hqiu-nju Can you try the pulsar docker image https://hub.docker.com/r/ypmen/pulsarx on Mac?
from xlibs.
Related Issues (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 xlibs.