[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] Problem cross compiling TOra
From: |
Adam Ward |
Subject: |
Re: [Mingw-cross-env-list] Problem cross compiling TOra |
Date: |
Fri, 2 Oct 2015 20:23:04 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 01/10/15 14:06, Tony Theodore wrote:
On 1 Oct 2015, at 15:14, Tony Theodore <address@hidden> wrote:
Install the appropriate client under `<path to mxe>/usr/<target>` and it should
be found.
That works for finding the client, this should get you past the configuration
and well into the build:
export MXE_DIR=/usr/src/mxe
export MXE_TARGET=i686-w64-mingw32.shared
export ORACLE_HOME=$MXE_DIR/usr/$MXE_TARGET/instantclient_12_1
$MXE_TARGET-cmake \
-DBOOST_ROOT=$MXE_DIR/usr/$MXE_TARGET/include/ \
-DQT5_BUILD=ON \
-DENABLE_PGSQL=ON \
-DENABLE_DB2=OFF \
-DENABLE_TERADATA=OFF \
-DWANT_INTERNAL_LOKI=ON \
-DWANT_INTERNAL_QSCINTILLA=OFF \
-DORACLE_OCI_VERSION=12C \
<path to tora source>
The `-DORACLE_OCI_VERSION` skips the need for a runtime check (no need for
wine).
Cheers,
Tony
Getting close :)
I changed
i686-w64-mingw32.shared
to
x86_64-w64-mingw32.shared
Put the Oracle Instant Client for Windows 64bit into the ORACLE_HOME and
it finds the libraries.
The build gets over half way, but fails with the following:
/home/toradev/tora/src/core/utils.cpp: In static member function 'static
HINSTANCE__* Utils::toLibrary::loadLibrary(const QFileInfo&)':
/home/toradev/tora/src/core/utils.cpp:1100:74: warning: passing NULL to
non-pointer argument 3 of 'HINSTANCE__* LoadLibraryExA(LPCSTR, HANDLE,
DWORD)' [-Wconversion-null]
handle = LoadLibraryEx( libpath.toStdString().c_str(), NULL,
NULL);
^
/home/toradev/tora/src/core/utils.cpp: In static member function 'static
void* Utils::toLibrary::lookupSymbol(HINSTANCE__* const&, const char*)':
/home/toradev/tora/src/core/utils.cpp:1229:31: error: invalid conversion
from 'FARPROC {aka long long int (*)()}' to 'void*' [-fpermissive]
return GetProcAddress (handle, symbol);
^
src/CMakeFiles/tora.dir/build.make:7137: recipe for target
'src/CMakeFiles/tora.dir/core/utils.cpp.obj' failed
make[2]: *** [src/CMakeFiles/tora.dir/core/utils.cpp.obj] Error 1
CMakeFiles/Makefile2:347: recipe for target
'src/CMakeFiles/tora.dir/all' failed
make[1]: *** [src/CMakeFiles/tora.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2