On 2017-10-04 18:12+0200 Alaric Senat wrote:
Hello,
I'm trying to compile plplot with mingw64 on linux and I've got a strange
issue since this morning.
Cmake is trying to include non-generated files
[....]
*if(NOT CMAKE_CROSSCOMPILING) add_executable(tai-utc-gen
${CMAKE_CURRENT_SOURCE_DIR}/tai-utc-gen.c) if(MATH_LIB)
target_link_libraries(tai-utc-gen ${MATH_LIB}) endif(MATH_LIB)
add_executable(deltaT-gen ${CMAKE_CURRENT_SOURCE_DIR}/deltaT-gen.c
${CMAKE_CURRENT_SOURCE_DIR}/dspline.c) export(TARGETS tai-utc-gen FILE
${CMAKE_CURRENT_BINARY_DIR}/tai-utc-gen.cmake ) export(TARGETS deltaT-gen
FILE ${CMAKE_CURRENT_BINARY_DIR}/deltaT-gen.cmake )else(NOT
CMAKE_CROSSCOMPILING) # Generated by initial non-cross build above.
include(${CMAKE_NATIVE_BINARY_DIR}/lib/qsastime/tai-utc-gen.cmake)
include(${CMAKE_NATIVE_BINARY_DIR}/lib/qsastime/deltaT-gen.cmake)endif(NOT
CMAKE_CROSSCOMPILING)*
So, I don't really understand how the files included in the else statement
are supposed to be generated when I'm cross-compiling. I tried to generate
them by removing the condition but of course the compilation of doesn't
pass in the makefile !
Sorry if my problem is a kind of weird or obvious to resolve and thank's a
lot for reading !
Hi Alaric:
Thanks for your interest in cross-compiling PLplot.
Note our cross-compilation did work back in 2009 (see
<https://sourceforge.net/p/plplot/wiki/Building_PLplot_with_a_cross-compiler/>),
but as far as I know there has been little testing of that capability
since. For example, I never did learn how to cross-compile just to
test that capability continues to work although that wiki item states
cross-compilation of PLplot should be straightforward on my (Linux)
platform.
So it is certainly possible some errors have crept in since 2009, but (with your
cooperation in reporting issues that you find) I will make every
effort to resolve those since cross-compilation is a PLplot capability
I would like to preserve. And once everything works for you, I would
appreciate your review of the above wiki item in (the likely) case we
need to update it.
So the first question for you is did you follow those wiki
instructions, which for example, tell you how to set up the
all-important CMAKE_NATIVE_BINARY_DIR variable which helps to access
selected results from your native build (as in the CMake logic above)
to be used in your subsequent cross-platform build.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general