Omniorb and Qt integration on Windows

szyk100 szyk100 at o2.pl
Thu Sep 10 18:52:16 BST 2015


Hi
Omniorb echo example run without problems (VS15 64bit).
I wonder if Omniorb and Qt is compatible on Windows. I try to compile examples from
https://github.com/liangqi/qt-omniorb
But I cant run this examples because I have got strange compiler error:
        cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -EHsc /Fddebug\eg1.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I. -I..\..\..\..\x-unix\omniORB\include -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\include\QtCore -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\include -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\include\QtGui -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\include\QtANGLE -Idebug -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\mkspecs\win32-msvc2015 -Fodebug\ @C:\Users\Komp\AppData\Local\Temp\nmD582.tmp
omniorbthread.cpp
C:\x-unix\omniORB\include\omniORB4/CORBA_sysdep_trad.h(545): fatal error C1189: #error:  "The byte order of this platform is unknown"
echo.cpp
C:\x-unix\omniORB\include\omniORB4/CORBA_sysdep_trad.h(545): fatal error C1189: #error:  "The byte order of this platform is unknown"
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
So the byte order is not set for x64 in configuration. I can fix it.
But another problem arises. It require pthread.h to compile under windows nt!!!
        cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -EHsc /Fddebug\eg1.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I. -I..\..\..\..\x-unix\omniORB\include -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\include\QtCore -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\include -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\include\QtGui -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\include\QtANGLE -Idebug -I..\..\..\..\x-unix\qt5.5.0\5.5\msvc2015_64\mkspecs\win32-msvc2015 -Fodebug\ @C:\Users\Komp\AppData\Local\Temp\nm56DA.tmp
omniorbthread.cpp
C:\x-unix\omniORB\include\omnithread/posix.h(39): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
echo.cpp
C:\x-unix\omniORB\include\omnithread/posix.h(39): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
It is strange as I have followed lines in omniorb/mk/win32.mk
# Use native win32 threads
ThreadSystem = NT
# Use pthread_nt, comment out ThreadSystem line above and uncomment the
# following 2 lines.
#ThreadSystem = NTPosix
#OMNITHREAD_CPPFLAGS= -D__POSIX_NT__
So I expect it use native NT threads.
Please tell me what do I should to do with that error. 
Or maybe you can confirm that Omniorb with Qt on Windows x64 is not compatible?
regards
Szyk Cech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20150910/907f8a75/attachment.html>


More information about the omniORB-list mailing list