[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-ocrad] Re: Troubleshootings installing ocrad under Tiger
From: |
Antonio Diaz Diaz |
Subject: |
[Bug-ocrad] Re: Troubleshootings installing ocrad under Tiger |
Date: |
Tue, 14 Jun 2005 15:32:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.3) Gecko/20040913 |
address@hidden wrote:
I am trying to install ocrad on Tiger, but I have this :
There is not a special version of ocrad for Mac OS X.4 Tiger. Ocrad only
uses standard C++ plus some GNU extensions. It should compile on almost
any system with gcc.
It seems that your C++ headers have a problem with std::swap(). Try to
install the latest ocrad version (0.12), and if this doesn't work, try
replacing the function 'mirror_left_right' in 'bitmap.cc' with this one:
void mirror_left_right( std::vector< std::vector< bool > > & data ) throw()
{
const int height = data.size();
for( int row = 0; row < height; ++row )
{
std::vector< bool > & datarow = data[row];
for( int l = 0, r = datarow.size() - 1; l < r; ++l, --r )
{ bool b = datarow[l]; datarow[l] = datarow[r]; datarow[r] = b; }
}
}
Regards,
Antonio Diaz.