Comments (7)
As I can see for now, py++ needs a small tweak to forward the caster=castXML argument to pyplusplus .. but we find a way once pyplusplus works smooth with castXML gccxml-like output. (CastXML/pygccxml#19)
from gimli.
add support for castxml via cmake setting -DCASTER=castxml default is -DCaster=gccxml.
castxml is superbuild via cmake .. Not yet fully functional due to pending problem (CastXML/pygccxml#19)
from gimli.
👍
from gimli.
pygimli can now be build with castxml and gcc|clang
but:
tutorials/inversion/plot-1-polyfit.py brings strange results with castxml
and still works fine with gccxml.
I will dive into it, but we need some more unittests and or snippets that fail now with castxml
from gimli.
I have tried to compile with:
CC=clang CXX=clang++ cmake -DCASTER='castxml' -DPYVERSION=3.4.3 ../trunk
CMake output looks fine:
-- **********************************************************************
-- ************************* Dependencies found *************************
-- **********************************************************************
-- Triangle_LIBRARIES: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64/lib/libtriangle.a
-- UMFPACK_LIBRARIES: /lib64/libumfpack.so;/lib64/libcolamd.so;/lib64/libamd.so;/lib64/libsuitesparseconfig.so
-- CHOLMOD_LIBRARIES: /lib64/libcholmod.so;/lib64/libcamd.so;/lib64/libamd.so;/lib64/libcolamd.so;/lib64/libccolamd.so;/lib64/libsuitesparseconfig.so;/lib64/liblapack.so;/lib64/libblas.so;/lib64/libblas.so;/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/libgfortran.so;rt
-- PYTHON_EXECUTABLE: /usr/bin/python
-- PYTHON_LIBRARY: /lib64/libpython3.4m.so
-- Boost_PYTHON_LIBRARIES: /usr/lib64/libboost_python.so
-- GCCXML_EXECUTABLE:
-- CASTXML_EXECUTABLE: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64/bin/castxml
-- XML Caster: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64/bin/castxml
-- PYGCCXML: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64
-- PYPLUSPLUS: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64
-- PY_NUMPY: /usr/lib/python3.4/site-packages/numpy/
-- **********************************************************************
Yet pygimli fails with:
[100%] Built target gimli
Python version: 3.4
Python lib: /usr/lib/python3.4
['/home/fwagner/src/gimli/trunk/python', '/home/fwagner/.local/lib/python3.4/site-packages/rcs_latexdiff-1.0-py3.4.egg', '/home/fwagner/src/gimli/build/python', '/home/fwagner/Skripte/Python', '/home/fwagner/local/python', '/usr/lib/python34.zip', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-linux', '/usr/lib/python3.4/lib-dynload', '/home/fwagner/.local/lib/python3.4/site-packages', '/usr/lib/python3.4/site-packages', '/usr/lib/python3.4/site-packages/gtk-2.0', '../../../pygccxml', '../../../pyplusplus']
Install SRC: /home/fwagner/src/gimli/trunk/python/generate_pygimli_code.py
Execute from: /home/fwagner/src/gimli/build/python
caster_path=/home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64/bin/castxml
working_directory=../src
include_paths=['/usr/include', '/home/fwagner/src/gimli/trunk/src']
define_symbols=['PYGIMLI_GCCXML', 'HAVE_BOOST_THREAD_HPP']
indexing_suite_version=2
Traceback (most recent call last):
File "/home/fwagner/src/gimli/trunk/python/generate_pygimli_code.py", line 523, in <module>
generate(defined_symbols, options.extraIncludes)
File "/home/fwagner/src/gimli/trunk/python/generate_pygimli_code.py", line 246, in generate
caster=caster
TypeError: __init__() got an unexpected keyword argument 'caster'
🎂 🎁
from gimli.
I think you need to update pygccxml and pyplusplus.
try:
make rebuild_thirdparty
Quoting Florian Wagner [email protected]:
I have tried to compile with:
CC=clang CXX=clang++ cmake -DCASTER='castxml' -DPYVERSION=3.4.3 ../trunk
CMake output looks fine:
-- ********************************************************************** -- ************************* Dependencies found ************************* -- ********************************************************************** -- Triangle_LIBRARIES: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64/lib/libtriangle.a -- UMFPACK_LIBRARIES: /lib64/libumfpack.so;/lib64/libcolamd.so;/lib64/libamd.so;/lib64/libsuitesparseconfig.so -- CHOLMOD_LIBRARIES: /lib64/libcholmod.so;/lib64/libcamd.so;/lib64/libamd.so;/lib64/libcolamd.so;/lib64/libccolamd.so;/lib64/libsuitesparseconfig.so;/lib64/liblapack.so;/lib64/libblas.so;/lib64/libblas.so;/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.4/libgfortran.so;rt -- PYTHON_EXECUTABLE: /usr/bin/python -- PYTHON_LIBRARY: /lib64/libpython3.4m.so -- Boost_PYTHON_LIBRARIES: /usr/lib64/libboost_python.so -- GCCXML_EXECUTABLE: -- CASTXML_EXECUTABLE: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64/bin/castxml -- XML Caster: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64/bin/castxml -- PYGCCXML: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64 -- PYPLUSPLUS: /home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64 -- PY_NUMPY: /usr/lib/python3.4/site-packages/numpy/ -- **********************************************************************
Yet pygimli fails with:
[100%] Built target gimli Python version: 3.4 Python lib: /usr/lib/python3.4 ['/home/fwagner/src/gimli/trunk/python', '/home/fwagner/.local/lib/python3.4/site-packages/rcs_latexdiff-1.0-py3.4.egg', '/home/fwagner/src/gimli/build/python', '/home/fwagner/Skripte/Python', '/home/fwagner/local/python', '/usr/lib/python34.zip', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-linux', '/usr/lib/python3.4/lib-dynload', '/home/fwagner/.local/lib/python3.4/site-packages', '/usr/lib/python3.4/site-packages', '/usr/lib/python3.4/site-packages/gtk-2.0', '../../../pygccxml', '../../../pyplusplus'] Install SRC: /home/fwagner/src/gimli/trunk/python/generate_pygimli_code.py Execute from: /home/fwagner/src/gimli/build/python caster_path=/home/fwagner/src/gimli/thirdParty/dist-Clang-3.6.1-64/bin/castxml working_directory=../src include_paths=['/usr/include', '/home/fwagner/src/gimli/trunk/src'] define_symbols=['PYGIMLI_GCCXML', 'HAVE_BOOST_THREAD_HPP'] indexing_suite_version=2 Traceback (most recent call last): File "/home/fwagner/src/gimli/trunk/python/generate_pygimli_code.py", line 523, in <module> generate(defined_symbols, options.extraIncludes) File "/home/fwagner/src/gimli/trunk/python/generate_pygimli_code.py", line 246, in generate caster=caster TypeError: __init__() got an unexpected keyword argument 'caster'
🎂 🎁
Reply to this email directly or view it on GitHub:
#6 (comment)
from gimli.
Ah, I did that, but I had a system-wide pygccxml version lying around... Compiles now. Is there a minimal version of pygccxml that is needed? Than we can incorporate something like:
pygccxml_minversion = "vX.X"
if caster == "castxml" and pygccxml.__version__ < pygccxml_minversion:
raise Error("pygccxml is too old for castxml, please try 'make rebuild_thirdparty'")
Looks like pygimli compiles a bit faster now, is that right?
from gimli.
Related Issues (20)
- Trying to generate multiple randomized synthetic datasets and getting error HOT 4
- How to implement inhomogeneous Dirichlet boundary conditions? HOT 4
- Filter data points before visualizing the pseudosection HOT 2
- Exporting ERT data to RES2DINV format HOT 2
- cross-hole forward question HOT 12
- createworld 3D model layering HOT 4
- Challenges with ERT field data import - question HOT 10
- Simulate called with wrong resistivity array. HOT 9
- Problem Export Model ERT Inversion HOT 4
- Extended Model for Resistivity in Pygimli HOT 5
- ERTManager invert is zeroing the z (terrain) data in the input data container - issue HOT 4
- Removing columns for ERT data HOT 2
- Issue on importing the Res2dinv export module HOT 8
- question: How can we get the constraint matrix 'C' in inversion and which the inverse subproblem is used? HOT 5
- Reference of zWeight HOT 6
- Trying to generate synthetic data with custom mesh HOT 3
- Questions regarding the Res2dInv export format HOT 1
- Issue in the TDEM LCI Inversion HOT 2
- Create a 3D layer model HOT 9
- Problem with showing markers HOT 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 gimli.