Sunday, October 14, 2018

Building ACE TAO OpenDDS from repositories

These are the instructions to actually build ACE (Adaptive Communication Environment),  TAO (The ACE Orb), and OpenDDS (implementation of Data Distribution System) from the repositories.

Clone the repositories from git hub:


git clone https://github.com/objectcomputing/OCITAO.git

git clone https://github.com/objectcomputing/OpenDDS.git

git clone https://github.com/objectcomputing/MPC.git


Set the environment variables


export ACE_ROOT=/projects/OCITAO/ACE
export TAO_ROOT=/projects/OCITAO/TAO
export MPC_ROOT=/projects/MPC
export DDS_ROOT=/projects/OpenDDS

export LD_LIBRARY_PATH=$ACE_ROOT/lib:$TAO_ROOT/lib:$LD_LIBRARY_PATH
export PATH=$ACE_ROOT/bin:$TAO_ROOT/bin:$PATH

Setup ACE TAO definition files:

echo "#include \"ace/config-linux.h\"" > OCITAO/ACE/ace/config.h

cat OCITAO/ACE/ace/config.h
#include "ace/config-linux.h"

echo "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" > OCITAO/ACE/include/makeinclude/platform_macros.GNU

cat OCITAO/ACE/include/makeinclude/platform_macros.GNU
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU


Generate the ACE and TAO Makefiles

cd $TAO_ROOT
perl $ACE_ROOT/bin/mwc.pl -type gnuace TAO_ACE.mwc

Build ACE and TAO


make
make depend

Generate the OpenDDS Makefiles


cd $DDS_ROOT
perl $ACE_ROOT/bin/mwc.pl -type gnuace DDS.mwc

Build OpenDDS

make
make depend





Wednesday, September 4, 2013

__xpg_basename is not a member of

If the c++ code gets the error that  '__xpg_basename' is not a member of 'namespace or class' check for use of libgen.h

The file libgen.h has a #define basename __xpg_basename   that will replace all occurrences of basename including those of other classes.

It may be possible to reorder includes to avoid the error. Make libgen.h be included last.

Monday, February 13, 2012

steps taken from vmware server 2.0 dropping vms under load

Notes from vmware server 2.0 dropping vms under load


Here are the steps that I have taken:
1 - Create the directory /usr/lib/vmware/lib/libc.so.6
2 - Grab /lib/libc-2.5.so and copy it to /usr/lib/vmware/lib/libc.so.6 the version that I retrieved came from glibc-2.5-34 I got mine from a backup. If you do not have a backup version follow instructions 3a to 3e. I explain on how to get this library from the CentOS repository.
3a - mkdir /tmp/glibc-2.5.34
3b - cd /tmp/glibc-2.5.34
3c - wget http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.i686.rpm
3d - rpm2cpio glibc-2.5-34.i686.rpm | cpio –ivd
3e - Grab /tmp/glibc-2.5.34/lib/libc-2.5.so and copy it to /usr/lib/vmware/lib/libc.so.6
4 - Rename the file libc-2.5.so within /usr/lib/vmware/lib/libc.so.6 to libc.so.6
5 - Open /usr/sbin/vmware-hostd and add /usr/lib/vmware/lib/libc.so.6 to the LD_LIBRARY_PATH. I just added:
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH
before the last line.
6 - Restart your VMware service and your Virtual Machine(s)



rpm -Uvh --oldpackage http://mirror.centos.org/centos/5.3/os/x86_64/CentOS/glibc-2.5-34.x86_64.rpm

Thursday, February 9, 2012

reference tools on nix

ldd lists the libraries the executable uses

nm lists the references

Tuesday, January 24, 2012

view pf rules

To view the rules being used by pf

pfctl -g -s rules

from http://www.thedeepsky.com/howto/newbie_pf_guide.php

Tuesday, September 27, 2011

get the protocol (http) back in firefox 7 location bar

To get the protocol (http https ftp) to appear in the location bar of firefox 7

open the config by typing "about:config" in the location bar
Click the Ill be careful i promise button.

search for browser.urlbar.trimURLs
set to false

The protocols should now be visible again.

Monday, September 26, 2011

remember tao_root

When generating the workspace using mwc (Make Project Creator) and you get the error

ERROR: Unable to locate parent: tao_versioning_idl_defaults

be sure to set your TAO_ROOT variable to the TAO location.

Thursday, September 8, 2011

see the defines in gcc g++

touch test.h
g++/gcc -E -dM test.h

Friday, September 2, 2011

single shell line for

for fle in `find . -name '*vs8*' | grep -v '.svn'`; do \
export newfle=`echo $fle | sed -e "s/vs8/vs10/g"`; \
if [ ! -f "$newfle" ] ; then \
cp "$fle" "$newfle"; \
else \
echo "$newfle" already exists; \
fi \
done



note the semicolons and export(to use the variable name)

pass define to make

make CPPFLAG+=-Ddefine_name=value

Tuesday, November 16, 2010

locating commands in linux

which (tracks through $PATH)
alias (shows aliases)
declare -F (shows bash functions)


bash function reminder came from
http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2007-04/msg00957.html

Monday, July 26, 2010

command line vmware

The vmrun command is used to run from the command line.

For running on linux with vmserver 2

vmrun -T server -h https://localhost:8333/sdk -u Username \
-p "PasswordWithSpecialCharsEscaped" list

vmrun -T server -h https://localhost:8333/sdk -u Username \
-p "PasswordWithSpecialCharsEscaped" start "Exact vmware name of vmx"

Exact vmware name of the vmx : "[standard] Name/Name.vmx"
Watch out for extra spaces or other white space.

Thursday, July 15, 2010

solaris 10 fault manager

fmadm is the fault manager - requires root to work

Thursday, June 17, 2010

Java i2c c2i adapters

What is I2CAdapter?

I2CAdapter and C2IAdapters are for traversing between compiled and interpreted java byte code.

Monday, June 7, 2010

windows persistent static routes

route -p add "dest.ip.addr" mask "netmask" "gateway"

-p to make the routing persistent

"dest.ip.addr" - like 172.18.0.0
"netmask" - netmask like 255.255.255.0
"gateway" - like 192.168.244.1

The persistent routes are stored in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes

Thursday, January 14, 2010

virtual pc 2007 sp1 dvd limitations

The dvd drive presented by virtual pc 2007 does not have a drive region. This can result in encrypted dvds not playing correctly in linux. The issue is the dvd decrypting library needs the region code to actually decode the dvd.

Monday, December 21, 2009

guides for slimming down xp

guides for slimming down windows space:

http://www.neowin.net/forum/index.php?showtopic=80511

http://forums.macrumors.com/showthread.php?t=192199

http://www.windowsbbs.com/windows-xp/54287-no-room-defrag.html

Wednesday, September 23, 2009

Cleaning up old device drivers

In a cmd window:
SET DEVMGR_SHOW_NONPRESENT_DEVICES=1
devmgmt.msc

then set
View -> Show Hidden Devices

Watch out because not all hidden devices are actually not present.


From:
http://www.howtogeek.com/howto/windows-vista/remove-old-drivers-after-upgrading-to-new-hardware/

Monday, August 24, 2009

perl read from standard in

$var = 

or
@vars =
foreach (@vars) {
}


from http://www.linuxtopia.org/Perl_Programming/pickingUpPerl_Input2.html

Tuesday, August 18, 2009

clean up old installers

Use MsiZap from ms visual studio with the G option to clean up orphaned installer patches.

From comments on http://blogs.msdn.com/heaths/archive/2007/01/17/the-patch-cache-and-freeing-space.aspx