[omniORB] EXT : OmniEvent with Win10 64bits

Mauron, Beat (CH - MSS) Beat.Mauron at ch.meggitt.com
Fri Feb 10 11:18:19 GMT 2017


Hello,

I found that my problem was in the config.mk file (see below). Instead of directly changing OSVERSION__=4,
I put the line with OSVERSION__=5 in comment and add a new one with OSVERSION__=4.
The problem was due to the backslash at end of the commented line....


--------   BAD ------
# The IDL compiler doesn't write code that uses config.h, so we have to compile
# the generated files with a couple of extra options:
#EXTRA_IDL_CXXFLAGS = -D__WIN32__ -D__x86__=1 -D__OSVERSION__=5 \
EXTRA_IDL_CXXFLAGS = -D__WIN32__ -D__x86__=1 -D__OSVERSION__=4 \
                     -D_WIN32_WINNT=0x0400 -D__NT__ -D_COS_LIBRARY
-------


--------   OK ------
# The IDL compiler doesn't write code that uses config.h, so we have to compile
# the generated files with a couple of extra options:
#EXTRA_IDL_CXXFLAGS = -D__WIN32__ -D__x86__=1 -D__OSVERSION__=5
EXTRA_IDL_CXXFLAGS = -D__WIN32__ -D__x86__=1 -D__OSVERSION__=4 \
                     -D_WIN32_WINNT=0x0400 -D__NT__ -D_COS_LIBRARY
-------

Regards
Béat

From: Obermaier, Stephen J [US] (TS) [mailto:stephen.obermaier at ngc.com]
Sent: jeudi 9 février 2017 15:22
To: Mauron, Beat (CH - MSS)
Subject: Re: EXT :[omniORB] OmniEvent with Win10 64bits


The byte order thing tells me you don't have the correct preprocessor definitions set to define the target platform.



__WIN32__;__x86__;_WIN32_WINNT=0x0500;__NT__;__OSVERSION__=4





________________________________
From: Mauron, Beat (CH - MSS) via omniORB-list <omniorb-list at omniorb-support.com<mailto:omniorb-list at omniorb-support.com>>
Sent: Thursday, February 9, 2017 5:28 AM
To: omniorb-list at omniorb-support.com<mailto:omniorb-list at omniorb-support.com>
Subject: EXT :[omniORB] OmniEvent with Win10 64bits

Good morning,

We are currently using omniORB and omniEvent in applications compiled with MSVC++ 2005 on machine running winXP.
Now we are going to move on win10 64bits, using MSVC++ 2015.
Following the instructions listed in README.FIRST.TXT and README.WIN32.TXT, I have been able to compile omniORB-4.2.1. on this new environment.
Now I am trying to compile omniEvent (also following README.TXT instructions) but I got this message:  (I also attached the config files)

C:\udevqt\addon\omniEvents-2_6_2>make
make -C idl all
make[1]: Entering directory `C:/udevqt/addon/omniEvents-2_6_2/idl'
omniidl -bcxx   -Wba -Wbh='.hh' -Wbs='.cc' -Wbd='DynSK.cc' -WbBOA -Wbuse_quotes -I'C:\udevqt\addon\omniORB-4.2.1\idl'\COS 'C:\udevqt\addon\omniORB-4.2.1\idl'/COS/CosLifeCycle.idl
omniidl -bcxx   -Wba -Wbh='.hh' -Wbs='.cc' -Wbd='DynSK.cc' -WbBOA -Wbuse_quotes -I'C:\udevqt\addon\omniORB-4.2.1\idl'\COS 'C:\udevqt\addon\omniORB-4.2.1\idl'/COS/CosEventComm.idl
omniidl -bcxx   -Wba -Wbh='.hh' -Wbs='.cc' -Wbd='DynSK.cc' -WbBOA -Wbuse_quotes -I'C:\udevqt\addon\omniORB-4.2.1\idl'\COS 'C:\udevqt\addon\omniORB-4.2.1\idl'/COS/CosEventChannelAdmin.idl
omniidl -bcxx   -Wba -Wbh='.hh' -Wbs='.cc' -Wbd='DynSK.cc' -WbBOA -Wbuse_quotes -I'C:\udevqt\addon\omniORB-4.2.1\idl'\COS 'C:\udevqt\addon\omniORB-4.2.1\idl'/COS/CosTypedEventComm.idl
omniidl -bcxx   -Wba -Wbh='.hh' -Wbs='.cc' -Wbd='DynSK.cc' -WbBOA -Wbuse_quotes -I'C:\udevqt\addon\omniORB-4.2.1\idl'\COS 'C:\udevqt\addon\omniORB-4.2.1\idl'/COS/CosTypedEventChannelAdmin.idl
omniidl -bcxx   -Wba -Wbh='.hh' -Wbs='.cc' -Wbd='DynSK.cc' -WbBOA -Wbuse_quotes -I'C:\udevqt\addon\omniORB-4.2.1\idl'\COS FT.idl
omniidl -bcxx   -Wba -Wbh='.hh' -Wbs='.cc' -Wbd='DynSK.cc' -WbBOA -Wbuse_quotes -I'C:\udevqt\addon\omniORB-4.2.1\idl'\COS omniEvents.idl
omniidl -bcxx   -Wba -Wbh='.hh' -Wbs='.cc' -Wbd='DynSK.cc' -WbBOA -Wbuse_quotes -I'C:\udevqt\addon\omniORB-4.2.1\idl'\COS EventChannelAdmin.idl
cl -nologo -c -TP -IC:\\udevqt\\addon\\omniORB-4.2.1\\include   -DHAVE_CONFIG_H  -I../idl -I../src -DENABLE_CLIENT_IR_SUPPORT=1 -DOMNIEVENTS_REAL_TIME_PUSH=1 -EHsc -MD -GR -D_CRT_SECURE_NO_DEPRECATE -I.  FT.cc
FT.cc
C:\udevqt\addon\omniORB-4.2.1\include\omniORB4/CORBA_sysdep_trad.h(545): fatal error C1189: #error:  "The byte order of this platform is unknown"
make[1]: *** [FT.obj] Error 2
make[1]: Leaving directory `C:/udevqt/addon/omniEvents-2_6_2/idl'
make: *** [all] Error 2


Do you have an idea about the way to solve this issue ?

Many thanks
Béat Mauron


________________________________
This e-mail may contain confidential information and/or copyright material. This e-mail is intended for the use of the addressee only. Any unauthorized use may be unlawful. If you receive this e-mail by mistake, please advise the sender immediately by using the reply facility in your e-mail software. Information contained in and/or attached to this document may be subject to Export Control Regulations of the European Community, USA or other countries. Each recipient of this document is responsible to ensure that usage and/or transfer of any information contained in this document complies with all relevant Export Control regulations. If you are in any doubt about the Export Control restrictions that apply to this information, please contact the sender immediately.

Be aware that the contents of this e-mail may be monitored to ensure compliance with the Meggitt IT User policy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20170210/12475e10/attachment-0001.html>


More information about the omniORB-list mailing list