tschoonj / xmimsim

Monte Carlo simulation of energy-dispersive X-ray fluorescence spectrometers
Other
32 stars 11 forks source link

build fail #45

Closed AndreWaehlisch closed 5 years ago

AndreWaehlisch commented 5 years ago

Hi, I am trying to compile xmimsim from source, but my make fails with the error below. It looks to me like it is not adapted to the newest xraylib version? I am using xraylib version 3.3.0 and I am using xmimsim 7.0 from http://lvserver.ugent.be/xmi-msim/xmimsim-7.0.tar.gz

Any advice would be appreciated.

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -pthread -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/.../include/xraylib -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fopenmp -DXMI_CATALOG=\"/usr/local/share/xmimsim/xmimsim_cat.xml\" -DXMI_XMSO2XMSI_XSLT=\"/usr/local/share/xmimsim/xmso2xmsi.xml\" -DXMI_XMSO2SVG_XSLT=\"/usr/local/share/xmimsim/xmso2svg.xml\" -DXMI_XMSO2SPE_XSLT=\"/usr/local/share/xmimsim/xmso2spe.xml\" -DXMI_XMSO2CSV_XSLT=\"/usr/local/share/xmimsim/xmso2csv.xml\" -DXMI_XMSO2HTM_XSLT=\"/usr/local/share/xmimsim/xmso2htm.xml\" -DXMI_XMSA2XMSO_XSLT=\"/usr/local/share/xmimsim/xmsa2xmso.xml\" -DXMIMSIM_HDF5_DEFAULT=\"/usr/local/share/xmimsim/xmimsimdata.h5\" -DXMI_OPENCL_CODE=\"/usr/local/share/xmimsim\" -DXMI_OPENCL_LIB=\"/usr/local/lib64/xmimsim\" -g -O2 -MT libxmimsim_la-xmi_xml.lo -MD -MP -MF .deps/libxmimsim_la-xmi_xml.Tpo -c xmi_xml.c  -fPIC -DPIC -o .libs/libxmimsim_la-xmi_xml.o
xmi_xml.c: In function ‘xmi_write_output_xml_body’:
xmi_xml.c:1395:12: error: too few arguments to function ‘AtomicNumberToSymbol’
   symbol = AtomicNumberToSymbol(output->brute_force_history[i].atomic_number);
            ^~~~~~~~~~~~~~~~~~~~
In file included from /.../include/xraylib/xraylib.h:56:0,
                 from ../include/xmi_aux.h:24,
                 from xmi_xml.c:20:
/.../include/xraylib/xraylib-parser.h:99:7: note: declared here
 char* AtomicNumberToSymbol(int Z, xrl_error **error);
       ^~~~~~~~~~~~~~~~~~~~
xmi_xml.c:1425:12: error: too few arguments to function ‘AtomicNumberToSymbol’
   symbol = AtomicNumberToSymbol(output->var_red_history[i].atomic_number);
            ^~~~~~~~~~~~~~~~~~~~
In file included from /.../include/xraylib/xraylib.h:56:0,
                 from ../include/xmi_aux.h:24,
                 from xmi_xml.c:20:
/.../include/xraylib/xraylib-parser.h:99:7: note: declared here
 char* AtomicNumberToSymbol(int Z, xrl_error **error);
       ^~~~~~~~~~~~~~~~~~~~
tschoonj commented 5 years ago

Hi André

These errors indicate that you are compiling against the master branch of xraylib (or the development release 3.99.0), but certainly not 3.3.0.

Perhaps PKG_CONFIG_PATH was not set correctly before you ran configure?

AndreWaehlisch commented 5 years ago

It seems you are absolutely right. I re-build xraylib from scratch, making sure it was v3.3.0, and the build succeed. Thank you very much.

tschoonj commented 5 years ago

No worries... let me know if you need anything else...

I hope to have a development version of XMI-MSIM to test for you on Linux soon... with Python support!