KDEWIN32 library

Alexander Neundorf neundorf at kde.org
Mon Feb 13 19:10:53 CET 2006


Hi,

On Monday 13 February 2006 16:38, Paulo Jorge Guedes wrote:
> Hi,
>
> Currently I have some time and I would like to test kdelibs on Windows.
> I have cygwin and I'm using the last cmake post on kde-core mailing
> list.
> I'm trying with cmake as it seems scons progress is currently a little
> slow.
>
> This is my first contact with the cmake build system so I'm starting
> from zero and appreciate any possible help :)
>
> Right now I'm having this error:
> "Could not find KDEWIN32 library"
>
> Complete output:
>
> -- This is a SVN repository
> -- Using Buildname: Win32-c++
> WARNING: This project requires version: 2.3.3 of cmake.
> You are running version: 2.33

The output format is not ideal, it should read
"You are running version: 2.3.3"
Which leads to the question why it warns at all.
cmCMakeMinimumRequired.cxx contains the following code:

float version = float(m_Makefile->GetMajorVersion());
version += (float(m_Makefile->GetMinorVersion()) * (float).1);
version += (float(m_Makefile->GetPatchVersion()) * (float).01);

// gives 2.33 as seen in the output

float reqVersion = 0;
int major=0;
int minor=0;
int patch=0;

int res=sscanf(args[1].c_str(), "%d.%d.%d", &major, &minor, &patch);
if (res==3)
   reqVersion=float(major)+0.1*float(minor)+0.01*float(patch);
else if (res==2)
   reqVersion=float(major)+0.1*float(minor);

// args[1] is "2.3.3" as can be seen in the output, 
// so it should also produce 2.33

if(reqVersion > version)
{

// we shouldn't get here, because both should be 2.33, 
// maybe a rounding problem ?

  cmOStringStream str;
  str << "WARNING: This project requires version: " << args[1].c_str() << " of 
cmake.\n"<< "You are running version: " << version;     
  cmSystemTools::Message(str.str().c_str());
}

> -- Found Qt-Version 4.0.1
> -- Building kdelibs...
> CYGWIN

Where does this output come from ? Do you run this actually under cygwin or 
msvc ?
If you run this under cygwin, it should fail with the error:
"Support for Cygwin not yet implemented, please edit FindKDE4.cmake to enable 
it"

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list