[prev in list] [next in list] [prev in thread] [next in thread] 

List:       omniorb-list
Subject:    Re: [omniORB] =?utf-8?q?Litle_patch_for_AMD64_on_Windows?=
From:       szyk100 via omniORB-list <omniorb-list () omniorb-support ! com>
Date:       2015-10-06 16:21:03
Message-ID: mailman.311.1444148462.1244.omniorb-list () omniorb-support ! com
[Download RAW message or body]

Received: from moh3-ve3.go2.pl ([193.17.41.87])
	by host2.apasphere.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72)
	(envelope-from <szyk100@o2.pl>) id 1ZjUz7-00006w-Lo
	for omniorb-list@omniorb-support.com; Tue, 06 Oct 2015 17:21:01 +0100
Received: from moh3-ve3.go2.pl (unknown [10.0.0.158])
	by moh3-ve3.go2.pl (Postfix) with ESMTP id 5C679B5A723
	for <omniorb-list@omniorb-support.com>;
	Tue,  6 Oct 2015 18:20:55 +0200 (CEST)
Received: from o2.pl (unknown [10.0.0.3])
	by moh3-ve3.go2.pl (Postfix) with SMTP
	for <omniorb-list@omniorb-support.com>;
	Tue,  6 Oct 2015 18:20:54 +0200 (CEST)
Subject: =?UTF-8?Q?Re:_Litle_patch_for_AMD64_on_Windows?From: =?UTF-8?Q?szyk100?= <szyk100@o2.pl>
To: omniorb-list@omniorb-support.com
In-Reply-To: <1444141717.9361.1.camel@home3.grisby.org>
References: <c3cb59c.1828832.5612cb8a.8d65c@o2.pl>
	<1444141717.9361.1.camel@home3.grisby.org>
Mime-Version: 1.0
Message-ID: <5c6c4098.5269ab5f.5613f4e6.44d2d@o2.pl>
Date: Tue, 06 Oct 2015 18:20:54 +0200
X-Originator: 178.36.198.76
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi
In my case (when I compile Qt examples) it include 
# include <omnithread/posix.h>
Apparently from last section named: 
// Everything else uses pthreads
But when I aeded _Win64 section with:
#  include <omnithread/nt.h>
It works fine.
But I am not expert in that field so maybe I did something wrongly.
I touched only one more definition (in sake of completnes):

--- ./CORBA_sysdep_trad.h.org	2014-01-17 16:27:56.000000000 +0100
+++ ./CORBA_sysdep_trad.h	2015-10-06 18:08:41.606228400 +0200
@@ -512,6 +512,9 @@
 //
 // Default flag values if not already overridden above
 //
+#ifndef _OMNIORB_HOST_BYTE_ORDER_
+#define _OMNIORB_HOST_BYTE_ORDER_ 1
+#endif
 
 #ifndef SIZEOF_BOOL
 #define SIZEOF_BOOL 1

To avoid this error:
#ifndef _OMNIORB_HOST_BYTE_ORDER_
# error "The byte order of this platform is unknown"
#endif


That is all what is required to compile OmniOrb + Qt examples. And they works fine now.


regards
Szyk Cech



Dnia 6 października 2015 16:28 Duncan Grisby <duncan@grisby.org> napisał(a):
> 
> > On Mon, 2015-10-05 at 21:12 +0200, szyk100 wrote:
> 
> > Hi I compiled succesfuly Omniorb and examples from
> > https://github.com/liangqi/qt-omniorb . Main problem I encontered was
> > that it is lack of _WIN64 clause in omnithread.h (__WIN32__ clause is
> > not suitable when I compile with VS2015 AMD64 mode). So I added that
> > clause and make litle patch which I attached to this email.
> 
> Why is the __WIN32__ define "not suitable"? Win32 is the name of the
> API, not the word size. 64 bit Windows platforms should define both
> __WIN32__ to identify the API, and _WIN64 to indicate that it is 64 bit.
> 
> Duncan.
> 
> 








_______________________________________________
omniORB-list mailing list
omniORB-list@omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic