<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.14.1">
  <TITLE>Message</TITLE>
</HEAD>
<BODY>
Hi Steve,<BR>
<BR>
yes I'm using GNU Make and the ACE_ROOT env variable is setted?<BR>
<BR>
But I can not perform make I don't even have Makefiles only Makefile.am files.<BR>
<BR>
Kind Regards.<BR>
<BR>
On Fri, 2007-06-15 at 08:48 -0400, Steve Huston wrote:
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">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></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&nbsp;</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">-Steve</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#000000">--</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Steve Huston, Riverace Corporation</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Would you like ACE to run great on your platform?</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">See <A HREF="http://www.riverace.com/sponsor.htm">http://www.riverace.com/sponsor.htm</A></FONT></FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <FONT SIZE="2"><FONT COLOR="#000000">-----Original Message-----</FONT></FONT><BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">From:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> ace-users-bounces@cse.wustl.edu [mailto:ace-users-bounces@cse.wustl.edu] </FONT></FONT><FONT COLOR="#000000"><B><FONT SIZE="2">On Behalf Of </FONT></B></FONT><FONT COLOR="#000000"><FONT SIZE="2">Jos&#233; Rui Sim&#245;es</FONT></FONT><BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">Sent:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Friday, June 15, 2007 5:58 AM</FONT></FONT><BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">To:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Thomas Lockhart</FONT></FONT><BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">Cc:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> tao-users@cse.wustl.edu; ace-users@cse.wustl.edu</FONT></FONT><BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">Subject:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Re: [ace-users] [installation] having problems building ACE/TAO forvxworks.</FONT></FONT><BR>
        <BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <FONT COLOR="#000000">Hi Tom,</FONT><BR>
        <BR>
        <FONT COLOR="#000000">I've followed every suggestion you make and adapted the config.h and platform_macros.GNU files.</FONT><BR>
        <BR>
        <FONT COLOR="#000000">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.</FONT><BR>
        <BR>
        <FONT COLOR="#000000">What did I do wrong?</FONT><BR>
        <BR>
        <FONT COLOR="#000000">Kind regards.</FONT><BR>
        <BR>
        <FONT COLOR="#000000">Jos&#233; Rui</FONT><BR>
        <BR>
        <BR>
        <FONT COLOR="#000000">On Tue, 2007-06-12 at 10:05 -0700, Thomas Lockhart wrote: </FONT>
        <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">
<TR>
<TD>
<FONT SIZE="2">plain text document attachment (platform_macros-vxworks.GNU)</FONT> 
</TD>
</TR>
</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),&quot;liborbsvcs&quot;)</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 &quot;no rule to make...&quot;</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%">
<TR>
<TD>
<H1>
<B><S><FONT SIZE="5"><FONT COLOR="#969696">_________________________</FONT></FONT></S></B><B><FONT SIZE="6"> </FONT></B>
</H1>
<B><FONT SIZE="4">Jos&#233; Rui Sim&#245;es</FONT></B> 
<H4>
<B><I><TT><FONT COLOR="#808080">Junior Engineer</FONT></TT></I></B><B> </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>
<BR>
</TD>
</TR>
</TABLE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<H1>
<B><S><FONT SIZE="5"><FONT COLOR="#969696">_________________________</FONT></FONT></S></B>
</H1>
<B><FONT SIZE="4">Jos&#233; Rui Sim&#245;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>
</TABLE>
</BODY>
</HTML>