Discussion Forums

Building ace_wrapper for 32 bit

No replies
khrm
Offline
Joined: 2011-03-20
Posts: 39

I have assumed that you have ACE_wrapper which is available through get_packages in ~/SonATA/packages/ACE_wrappers

There are many files which are saved in windows format which cause the errors related to  ^M.
Therefore, you will need to convert some files format. Use dos2unix. Install it
sudo zypper install dos2unix
or
sudo yum install dos2unix
or
sudo apt-get install dos2unix

And then start converting the files:
cd ~/SonATA/packages/ACE_wrappers
dos2unix *
cd aux_config
dos2unix *
cd ..
You will have to manually convert the ./configure file and ./bin/bootstarp file as dos2unix will skip them. Open it with vi ( you can change these files using gui editor like gedit also) and then
:set fileformat=unix
:wq

Now remove some old files which might cause linker errors ( as the new files that will be genrated will have slight different names):
rm lib/*
rm ace/*.so*

Now start building it.
.bin/bootstrap
mkdir objdir
cd objdir
../configure --disable-gperf --enable-ssl=no --prefix=$HOME/SonATA/packages/ACE_wrappers
make
make install
cd ..
cp lib/* ace/

Don't use the latest version of ace_wrapper as it is incompatible.