QFSM?

Ralf Habacker ralf.habacker at freenet.de
Tue Apr 27 16:50:53 CEST 2004


On Tuesday 27 April 2004 10:30, Thierry Poidras wrote:
> Hello ,
> did someone suceed to compile QFSM vith QT3 ?
> I have a problem with --auto-import.

We can't help you without some hints what you have run. 

I've got it running with the following configure line 

CXXFLAGS="-fdata-sections" 
LDFLAGS="-Wl,--enable-runtime-pseudo-reloc" ./configure --prefix=/opt/qt 
--with-qt-dir=/opt/qt/3.2 

and a replacement of  IOInfoBin::setSize() in src/IOInfoBin.cpp by the 
following code:

void IOInfoBin::setSize(int newin)
{
  int oldin = getLength();
  char *old = new char[oldin+1];
  int oldcount;
  char *pin;

  pin = getInfo();
  for (int i=0; i<=oldin; i++)
  {
    old[i] = pin[i];
  }

  pin = new char[newin+1];

  oldcount = oldin;
  for(int j=newin-1; j>=0; j--)
  {
    if (oldcount>0)
      pin[j] = old[oldcount-1];
    else
      pin[j]=0;

    oldcount--;
  }
  pin[newin]=10;

  setInfo(pin);

  delete [] pin;
  delete [] old;
}


Ralf 


> QFSM is a graphical tool for designing finite state machines.
>
> http://qfsm.sourceforge.net
>
> Thank you
> Thierry


More information about the kde-cygwin mailing list