[QGIS-Developer] Build QGIS with MXE
Theuns Heydenrych
theunsheydenrych at gmail.com
Sun Oct 18 06:38:48 PDT 2020
HI
I have followed the instructions on how to build QGIS with MXE.
I have all the dependencies build via MXE
I have changed the ms-windows/mxe/build-mxe.sh file to point the the MXE
folder
I have also changed the TARGET value, to the one I used in the MXE
settings.mk file.
I have checked out the release-3_10 branch of the QGIS repo
When running the ms-windows/mxe/build-mxe.sh from within the QGIS folder I
get the following error, the error output us in the file attached.
Also attached I the modified_build-mxe.sh file.
In the error output it shows that it try to use the following for a C
compiler
"/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc"
and it fails with the error:
ccache: error: Could not find compiler "x86_64-w64-mingw32.shared-gcc" in
PATH
I executed the command
/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
in the same terminal and got the same result, "ccache: error: Could not
find compiler "x86_64-w64-mingw32.shared-gcc" in PATH".
I have checked the symbolic link
to /home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
and it looks fine, with executable rights and links to
/home/theuns/work/mxe/mxe/.ccache/bin/ccache
Please help, what can do to resolve this?
I am using Ubuntu 20.04.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20201018/c8f6f8d5/attachment.html>
-------------- next part --------------
== Using MXE wrapper: /home/theuns/work/mxe/mxe/usr/bin/x86_64-w64-mingw32.shared-cmake
- cmake version 3.17.3
- warnings for unused CMAKE_POLICY_DEFAULT variables can be ignored
== Using MXE toolchain: /home/theuns/work/mxe/mxe/usr/x86_64-w64-mingw32.shared/share/cmake/mxe-conf.cmake
== Using MXE runresult: /home/theuns/work/mxe/mxe/usr/share/cmake/modules/TryRunResults.cmake
loading initial cache file /home/theuns/work/mxe/mxe/usr/share/cmake/modules/TryRunResults.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
-- Check for working C compiler: /home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc - broken
CMake Error at /home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/theuns/work/mxe/QGIS/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_1f7ad/fast && /usr/bin/make -f CMakeFiles/cmTC_1f7ad.dir/build.make CMakeFiles/cmTC_1f7ad.dir/build
make[1]: Entering directory '/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1f7ad.dir/testCCompiler.c.obj
/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc -o CMakeFiles/cmTC_1f7ad.dir/testCCompiler.c.obj -c /home/theuns/work/mxe/QGIS/CMakeFiles/CMakeTmp/testCCompiler.c
ccache: error: Could not find compiler "x86_64-w64-mingw32.shared-gcc" in PATH
make[1]: *** [CMakeFiles/cmTC_1f7ad.dir/build.make:86: CMakeFiles/cmTC_1f7ad.dir/testCCompiler.c.obj] Error 1
make[1]: Leaving directory '/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeTmp'
make: *** [Makefile:141: cmTC_1f7ad/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:23 (PROJECT)
-- Configuring incomplete, errors occurred!
See also "/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeOutput.log".
See also "/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeError.log".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modified_buid-mxe.sh
Type: application/x-shellscript
Size: 3873 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20201018/c8f6f8d5/attachment.bin>
More information about the QGIS-Developer
mailing list