c++ - error building MXE on Linux -
good day
i having trouble building mxe on linux distro.
this required cross platform development qt, etc.
i have been following this tutorial, stuck on vtk package:
/opt/downloads/git/mxe $ make [build] vtk i686-w64-mingw32.static failed build package vtk target i686-w64-mingw32.static! ------------------------------------------------------------ -- configuring incomplete, errors occurred! see "/opt/downloads/git/mxe/tmp-vtk-i686-w64-mingw32.static/vtk/native_build/cmakefiles/cmakeoutput.log". makefile:603: recipe target 'build-only-vtk_i686-w64-mingw32.static' failed make[1]: *** [build-only-vtk_i686-w64-mingw32.static] error 1 make[1]: leaving directory '/opt/downloads/git/mxe' real 0m8.965s user 0m6.084s sys 0m1.008s ------------------------------------------------------------ [log] /opt/downloads/git/mxe/log/vtk_i686-w64-mingw32.static makefile:603: recipe target '/opt/downloads/git/mxe/usr/i686-w64-mingw32.static/installed/vtk' failed make: *** [/opt/downloads/git/mxe/usr/i686-w64-mingw32.static/installed/vtk] error 1
linux : ubuntu gnome 16.10
gcc gcc --version
gcc (ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005 copyright (c) 2016 free software foundation, inc. free software; see source copying conditions. there no warranty; not merchantability or fitness particular purpose.
cmake
cmake --version cmake version 3.5.2 cmake suite maintained , supported kitware (kitware.com/cmake).
the issue is:
going through logs, found issue in
/opt/downloads/git/mxe/tmp-vtk-i686-w64-mingw32.static/vtk/cmake/vtkcompilerextras.cmake
the code checking gcc version is:
# check if can use visibility selectively export symbols exec_program(${cmake_c_compiler} args --version output_variable _gcc_version_info) string (regex match "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") if(not _gcc_version) string (regex replace ".*\\(gcc\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version "${_gcc_version_info}") endif() # gcc visibility support, on default , in testing. check_cxx_compiler_flag(-fvisibility=hidden have_gcc_visibility) option(vtk_use_gcc_visibility "use gcc visibility support if available." on) mark_as_advanced(vtk_use_gcc_visibility) if(${_gcc_version} version_greater 4.2.0 , build_shared_libs , have_gcc_visibility , vtk_use_gcc_visibility , not mingw , not cygwin) # should set if gcc newer 4.2.0 set(vtk_abi_cxx_flags "-fvisibility=hidden -fvisibility-inlines-hidden") else() set(vtk_abi_cxx_flags "") endif()
any thoughts why happens?
Comments
Post a Comment