mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Problem cross compiling TOra


From: Adam Ward
Subject: [Mingw-cross-env-list] Problem cross compiling TOra
Date: Fri, 25 Sep 2015 20:34:28 +0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Hi,
I am trying to cross compile TOra [1] on debian jessie for use on 64 bit Windows. The error is at the end of this email, I am including my build environment to help troubleshoot.
Any insight is appreciated :)

I am using Docker to ensure a consistent environment, specifically a container by thewtex [2].
I built a container with the required packages as follows.
Some sources have moved since the base container was originally created, and the debian httpredir repository does not have all the required packages:

FROM thewtex/cross-compiler-windows-x64
MAINTAINER Caysho "address@hidden"
RUN cp /usr/src/mxe/src/libpng.mk /usr/src/mxe/src/libpng.mk.old && cp /etc/apt/sources.list /etc/apt/sources.list.old && sed 's/libpng16/libpng16\/older-releases/' /usr/src/mxe/src/libpng.mk.old > /usr/src/mxe/src/libpng.mk && sed 's/httpredir/ftp.au/' /etc/apt/sources.list.old > /etc/apt/sources.list && apt-get update && apt-get install -y nano libloki-dev subversion locate
WORKDIR /usr/src/mxe
RUN make boost
RUN make qt5
RUN make qscintilla2

Establish the build directory as per [3], part 1.1:
address@hidden:/usr/src/mxe# cd ~
address@hidden:~# git clone https://github.com/tora-tool/tora.git tora3
address@hidden:~# cd tora3/
address@hidden:~/tora3# mkdir DBUILD
address@hidden:~/tora3# cd DBUILD/

Run CMAKE:
address@hidden:~/tora3/DBUILD# cmake -DBOOST_ROOT=/usr/src/mxe/usr/x86_64-w64-mingw32.static/include -DORACLE_PATH_INCLUDES=/usr/include/oracle/11.2/client64 -DORACLE_PATH_LIB=/usr/lib/oracle/11.2/client64/lib -DCMAKE_TOOLCHAIN_FILE=/usr/src/mxe/usr/x86_64-w64-mingw32.static/share/cmake/mxe-conf.cmake -DLOKI_LIBRARY=/usr/include/loki -DLOKI_INCLUDE_DIR=/usr/include/loki -DCMAKE_SOURCE_DIR=../src -DQT5_BUILD=ON -DQt5Core_DIR=/usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Core -DQt5Gui_DIR=/usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Gui -DQt5Network_DIR=/usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Network -DQt5PrintSupport_DIR=/usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5PrintSupport -DQt5Sql_DIR=/usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Sql -DQt5Xml_DIR=/usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Xml -DCMAKE_BUILD_TYPE=Debug ..
-- Found Subversion: /usr/bin/svn (found version "1.8.10")
-- Found Git: /usr/bin/git (found version "2.1.4")
-- Boost version: 1.57.0
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-gcc -- Check for working C compiler: /usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-g++ -- Check for working CXX compiler: /usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- TOra 3.0.0alpha will be built to install into /usr/src/mxe/usr/x86_64-w64-mingw32.static
--
-- LIB_SUFFIX variable is not defined. It will be autodetected now.
-- You can set it manually with -DLIB_SUFFIX=<value> (64 for example)
-- CMAKE_SIZEOF_VOID_P=8
--  LIB_SUFFIX is set to '64'
--
-- non-debug build
-- Found LOKI: /usr/include/loki
-- Using external loki: headers=/usr/include/loki libs=/usr/include/loki
Qt Found OK
CMake Warning at cmake/modules/FindQScintilla.cmake:85 (MESSAGE):
  LIBPATH
"/usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/lib;/usr/lib/;/usr/local/lib"
Call Stack (most recent call first):
  CMakeLists.txt:232 (FIND_PACKAGE)


-- Found QScintilla2: /usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/libqscintilla2.a -- includes: /usr/src/mxe/usr/x86_64-w64-mingw32.static/qt5/include/Qsci
QScintilla2 Found OK
-- ORACLE_LIBRARY_CLNTSH
-- ORACLE_LIBRARY_OCCI
-- ORACLE_LIBRARY_XML
-- ORACLE_LIBRARY_OCIEI
-- Found Oracle:  (ORACLE_HOME='')
--     includes: ORACLE_INCLUDES-NOTFOUND
-- Found XML Oracle:
-- Oracle not found.
-- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
--    currently found includes: ORACLE_INCLUDES-NOTFOUND
-- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
--    currently found libs:
-- No Oracle OCI found. TOra will be build without Oracle support
-- Found PostgreSQL: /usr/src/mxe/usr/x86_64-w64-mingw32.static/include
-- PostgreSQL environment found: /usr/src/mxe/usr/x86_64-w64-mingw32.static/include /usr/src/mxe/usr/x86_64-w64-mingw32.static/lib/libpq.a
-- DB2 not found.
-- DB2: You can specify includes: -DDB2_PATH_INCLUDES=/opt/db2/V9.5/includes
--      currently found includes: DB2_INCLUDES-NOTFOUND
-- DB2: You can specify libs: -DDB2_PATH_LIB=/opt/db2/V9.5/lib64
--      currently found libs: DB2_LIBRARY_LIBDB2-NOTFOUND

--  No DB2 client libraries have been found.
--  TOra can be build without it - without DB2 support.
--  Specify -DDB2_PATH_INCLUDES=path
--      and -DDB2_PATH_LIB=path manually

-- Looking for Teradata...
-- Teradata Library libcliv2: TERADATA_LIBRARY_LIBCLIV2-NOTFOUND
-- Teradata Library libtdusr: TERADATA_LIBRARY_LIBTDUSR-NOTFOUND
-- Teradata Includes: TERADATA_INCLUDES-NOTFOUND
-- Teradata Libraries: TERADATA_LIBRARY_LIBCLIV2-NOTFOUND
-- Teradata found: NO
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Configuring done
WARNING: Target "tora" requests linking to directory "/usr/include/loki". Targets may link only to libraries. CMake is dropping the item.
-- Generating done
-- Build files have been written to: /root/tora3/DBUILD

Run make:
address@hidden:~/tora3/DBUILD# make MXE_TARGETS='x86_64-w64-mingw32.static'
Scanning dependencies of target revisiontag
-- Found Git: /usr/bin/git (found version "2.1.4")
[  0%] Built target revisiontag
Scanning dependencies of target windows_lib
[ 0%] Building CXX object src/windows/CMakeFiles/windows_lib.dir/dummy.cpp.obj
[  0%] Building RC object src/windows/CMakeFiles/windows_lib.dir/tora.rc.res
[  1%] Linking CXX static library libwindows_lib.a
/usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-ar: /machine:X86: No such file or directory src/windows/CMakeFiles/windows_lib.dir/build.make:113: recipe for target 'src/windows/libwindows_lib.a' failed
make[2]: *** [src/windows/libwindows_lib.a] Error 1
CMakeFiles/Makefile2:262: recipe for target 'src/windows/CMakeFiles/windows_lib.dir/all' failed
make[1]: *** [src/windows/CMakeFiles/windows_lib.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2


[1] https://github.com/tora-tool/tora.git
[2] https://hub.docker.com/r/thewtex/cross-compiler-windows-x64/~/dockerfile/
[3] https://github.com/tora-tool/tora/blob/master/README.CMAKE



reply via email to

[Prev in Thread] Current Thread [Next in Thread]