<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=339444612-15062007><FONT face=Arial color=#0000ff size=2>I'm 
guessing here, and may be totally off, but are you using GNU make? And do you 
have ACE_ROOT set to the path of the ACE_wrappers directory?</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=339444612-15062007><FONT face=Arial color=#0000ff 
size=2>-Steve</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Steve Huston, Riverace Corporation<BR>Would you like ACE 
to run great on your platform?<BR>See <A 
href="http://www.riverace.com/sponsor.htm">http://www.riverace.com/sponsor.htm</A><BR></FONT></P>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  ace-users-bounces@cse.wustl.edu [mailto:ace-users-bounces@cse.wustl.edu] <B>On 
  Behalf Of </B>José Rui Simões<BR><B>Sent:</B> Friday, June 15, 2007 5:58 
  AM<BR><B>To:</B> Thomas Lockhart<BR><B>Cc:</B> tao-users@cse.wustl.edu; 
  ace-users@cse.wustl.edu<BR><B>Subject:</B> Re: [ace-users] [installation] 
  having problems building ACE/TAO forvxworks.<BR><BR></FONT></DIV>Hi 
  Tom,<BR><BR>I've followed every suggestion you make and adapted the config.h 
  and platform_macros.GNU files.<BR><BR>Now when I follow the build instructions 
  for ACE when I reach the part of actually building ACE with make. It replies 
  that it doesn't have targets specified.<BR><BR>What did I do 
  wrong?<BR><BR>Kind regards.<BR><BR>José Rui<BR><BR><BR>On Tue, 2007-06-12 at 
  10:05 -0700, Thomas Lockhart wrote: 
  <BLOCKQUOTE TYPE="CITE"><PRE><FONT color=#000000>&gt; Could somebody please help  me with some more detailed </FONT>
<FONT color=#000000>&gt; instructions on how to build ACE/TAO for VxWorks?</FONT>

<FONT color=#000000>You did not give any details on what exactly failed. If you have further </FONT>
<FONT color=#000000>questions please be sure to do so. But here are some suggestions:</FONT>

<FONT color=#000000>Do not bother with the autoconf-based build, since that does not work </FONT>
<FONT color=#000000>for cross-compiling.</FONT>

<FONT color=#000000>You did a native build first to get gperf and tao_idl, right?</FONT>

<FONT color=#000000>I had decent luck building for VxWorks-6.3 and TAO-1.5.8 using the </FONT>
<FONT color=#000000>classic from-source build technique. The results are not yet tested.</FONT>

<FONT color=#000000>In previous versions of TAO I was able to assign TAO_IDL and other </FONT>
<FONT color=#000000>variables in my platform_macros.GNU to get the cross-compilation to </FONT>
<FONT color=#000000>work, but for 1.5.8 I seemed to need to actually create the soft links </FONT>
<FONT color=#000000>in $ACE_ROOT/bin/ from the native build to the VxWorks directory.</FONT>

<FONT color=#000000>I sourced $WIND_BASE/windriver.bash before compiling. That got the </FONT>
<FONT color=#000000>compilers in my path and defined a bunch of environment variables. In </FONT>
<FONT color=#000000>previous versions of VxWorks I defined these variables for myself.</FONT>

<FONT color=#000000>I turned off RTP in platform_macros.GNU since that configuration seemed </FONT>
<FONT color=#000000>to want a few definitions that did not exist. I understand that RTP is </FONT>
<FONT color=#000000>the configuration that was used by Johnny Willemsen when freshening the </FONT>
<FONT color=#000000>VxWorks support recently.</FONT>

<FONT color=#000000>Much more of ACE and TAO build for VxWorks than did in the days of </FONT>
<FONT color=#000000>TAO-1.2.1.</FONT>

<FONT color=#000000>I patch ACE and TAO to get singletons to work with multiple loadable </FONT>
<FONT color=#000000>modules; the VxWorks loader does not respect weakly-defined objects and </FONT>
<FONT color=#000000>will create multiple instances of singletons if they are referenced </FONT>
<FONT color=#000000>across modules. The patches involve using RTTI to register singletons in </FONT>
<FONT color=#000000>a non-templated manager object.</FONT>

<FONT color=#000000>I've enclosed my platform_macros.GNU and config.h files; be sure to vet </FONT>
<FONT color=#000000>them for your environment.</FONT>

<FONT color=#000000>hth</FONT>

<FONT color=#000000>                           - Tom</FONT>

</PRE>
    <TABLE cellSpacing=0 cellPadding=0 border=1>
      <TBODY>
      <TR>
        <TD><FONT size=2>plain text document attachment 
          (platform_macros-vxworks.GNU)</FONT> </TD></TR></TBODY></TABLE><PRE><FONT color=#000000># platform_macros.GNU</FONT>
<FONT color=#000000># For VxWorks environment</FONT>
<FONT color=#000000># Updated for Tornado 2.2.x and TAO 1.3.x</FONT>
<FONT color=#000000># Thomas Lockhart Caltech/JPL</FONT>

<FONT color=#000000>ACE_COMPONENTS= FOR_TAO</FONT>
<FONT color=#000000>#minimum_corba=1</FONT>
<FONT color=#000000>#rt_corba= 1</FONT>
<FONT color=#000000>rtp= 0</FONT>
<FONT color=#000000>ami= 0</FONT>
<FONT color=#000000>ami_poller= 0</FONT>
<FONT color=#000000>ami_callback= 0</FONT>
<FONT color=#000000>#corba_messaging= 0</FONT>
<FONT color=#000000>templates= implicit</FONT>
<FONT color=#000000>rtti= 1</FONT>
<FONT color=#000000>#exceptions= 0</FONT>
<FONT color=#000000>interface_repo= 1</FONT>
<FONT color=#000000>inline= 1</FONT>
<FONT color=#000000>debug= 0</FONT>
<FONT color=#000000>shared_libs= 1</FONT>
<FONT color=#000000>shared_libs_only= 1</FONT>
<FONT color=#000000>static_libs= </FONT>

<FONT color=#000000>#ifeq ($(LIBNAME),"liborbsvcs")</FONT>
<FONT color=#000000>#  LIBS=</FONT>
<FONT color=#000000>#endif</FONT>

<FONT color=#000000># Disable shared libraries from the link step.</FONT>
<FONT color=#000000># Otherwise, we'll try to link to libACE.so, but the linker is looking for libACE.a.</FONT>
<FONT color=#000000>#ACE_SHLIB=</FONT>

<FONT color=#000000># TAO_IDL must be a full-path pointer to a built IDL compiler.</FONT>
<FONT color=#000000># Otherwise, rules which list this as a prerequisite (and there are some)</FONT>
<FONT color=#000000># will fail with "no rule to make..."</FONT>
<FONT color=#000000># One might think that setting PATH should be enough, but nooooooo....</FONT>
<FONT color=#000000>TAO_IDL= /proj/ace/release/$(HOSTARCH)/bin/tao_idl</FONT>

<FONT color=#000000># NOTE THAT ALL TAO_IDLFLAGS PARAMETERS ARE OVERRIDDEN IN THE RTC</FONT>
<FONT color=#000000># MAKEFILE.ENV SO THESE PARAMETERS NEED TO BE UPDATED THERE ALSO</FONT>

<FONT color=#000000># All support files are going into a stable installation, so generate angle</FONT>
<FONT color=#000000># brackets on #includes when possible</FONT>
<FONT color=#000000>TAO_IDLFLAGS+= -in</FONT>

<FONT color=#000000># Enable exception macro arguments since tao_idl may have been</FONT>
<FONT color=#000000># compiled with exceptions enabled for the host platform.</FONT>
<FONT color=#000000># Note that this could be enabled always, since the exception macros</FONT>
<FONT color=#000000># support native exceptions also.</FONT>
<FONT color=#000000>#ifneq ($(exceptions),1)</FONT>
<FONT color=#000000>#  TAO_IDLFLAGS+= -Ge 1</FONT>
<FONT color=#000000>#endif</FONT>

<FONT color=#000000># Disable tie classes to shrink libraries</FONT>
<FONT color=#000000>TAO_IDLFLAGS+= -Sc</FONT>

<FONT color=#000000># Enable AMI and OBV interfaces</FONT>
<FONT color=#000000>ifeq ($(ami),1)</FONT>
<FONT color=#000000>  TAO_IDLFLAGS+= -GC -Gv</FONT>
<FONT color=#000000>  IDLFLAGS+= -GC -Gv</FONT>
<FONT color=#000000>endif</FONT>

<FONT color=#000000># TAO currently calls everything with gcc-2.96 VxWorks 5.4.2.</FONT>
<FONT color=#000000># Override with the correct value for Tornado 2.2.1.</FONT>
<FONT color=#000000>#VXWORKS_VERSION_FLAG= -DACE_VXWORKS=0x551</FONT>

<FONT color=#000000>include $(ACE_ROOT)/include/makeinclude/platform_vxworks6.3.GNU</FONT>

<FONT color=#000000># Get the right version of gperf</FONT>
<FONT color=#000000>TAO_IDLFLAGS+= -g /proj/ace/release/$(HOSTARCH)/bin/gperf</FONT>

<FONT color=#000000># VxWorks does not respect weakly-defined objects.</FONT>
<FONT color=#000000># Enable the workaround from Rich Johnson.</FONT>
<FONT color=#000000>CPPFLAGS+= -DACE_HAS_BROKEN_WEAK_OBJECTS</FONT>

<FONT color=#000000># TornadoII supports multicast,</FONT>
<FONT color=#000000># but this is not turned on by default in ACE</FONT>
<FONT color=#000000>#CPPFLAGS+= -DACE_HAS_IP_MULTICAST=1</FONT>

<FONT color=#000000># Need static data member templates for the SingletonMap workaround.</FONT>
<FONT color=#000000># Should move to config-vxworks5.x.h when SingletonMap is added to the tree.</FONT>
<FONT color=#000000>#CPPFLAGS+= -UACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES</FONT>

<FONT color=#000000># Remove RCS info from source code. Saves some room...</FONT>
<FONT color=#000000>CPPFLAGS+= -DACE_USE_RCSID=0</FONT>

<FONT color=#000000># Enable patch to use sortable time in log output</FONT>
<FONT color=#000000>CPPFLAGS+= -DACE_USE_ISO8601_TIME</FONT>

<FONT color=#000000># Set optimization to O1 to allow exceptions under Tornado II 2.0 compiler</FONT>
<FONT color=#000000>#OCFLAGS+= -O0</FONT>
</PRE></BLOCKQUOTE>
  <TABLE cellSpacing=0 cellPadding=0 width="100%">
    <TBODY>
    <TR>
      <TD>
        <H1><B><S><FONT size=5><FONT 
        color=#969696>_________________________</FONT></FONT></S></B> 
        </H1><B><FONT size=4>José Rui Simões</FONT></B> 
        <H4><B><I><TT><FONT color=#808080>Junior Engineer</FONT></TT></I></B> 
        </H4><BR><B><FONT size=4><FONT color=#dc0000>Critical Software, 
        SA</FONT></FONT></B><BR><FONT color=#808080>Parque Industrial de 
        Taveiro, Lote 48</FONT><BR><FONT color=#808080>3045-504 Coimbra, 
        Portugal</FONT><BR><FONT color=#808080>Tel:+351.239 989 100 Fax:+351.239 
        989 119</FONT><BR><A 
        href="http://www.criticalsoftware.com/">http://www.criticalsoftware.com</A><BR><A 
        href="mailto:jose-r-simoes%40criticalsoftware.com">jose-r-simoes@criticalsoftware.com</A><BR><BR><BR></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>