need help building from cvs on WinXP

  • Tobias Stoerkle

    Tobias Stoerkle - 2009-04-02


    I tried to build lprof from cvs on Windows XP as described in README.Win32 . But cmake fails with this output:

    C:\developer\lprof-build>cmake -G "Visual Studio 9 2008" -DCMAKE_INCLUDE_PATH=%Z
    IR%\lib;%TIFFDIR%;%JPEGDIR%;%USBDIR%\lib\msvc -DTIFF_NAMES=libtiff -DZLIB_NAMES=
    zdll ..\lprof
    -- Check for working C compiler: C:/Programme/Microsoft Visual Studio 9.0/VC/bin
    -- Check for working C compiler: C:/Programme/Microsoft Visual Studio 9.0/VC/bin
    /cl.exe -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: C:/Programme/Microsoft Visual Studio 9.0/VC/b
    -- Check for working CXX compiler: C:/Programme/Microsoft Visual Studio 9.0/VC/b
    in/cl.exe -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check if the system is big endian
    -- Searching 16 bit integer
    -- Looking for sys/types.h
    -- Looking for sys/types.h - found
    -- Looking for stdint.h
    -- Looking for stdint.h - not found
    -- Looking for stddef.h
    -- Looking for stddef.h - found
    -- Check size of unsigned short
    -- Check size of unsigned short - done
    -- Using unsigned short
    -- Check if the system is big endian - little endian
    -- Looking for Q_WS_X11
    -- Looking for Q_WS_X11 - not found.
    -- Looking for Q_WS_WIN
    -- Looking for Q_WS_WIN - found
    -- Looking for Q_WS_QWS
    -- Looking for Q_WS_QWS - not found.
    -- Looking for Q_WS_MAC
    -- Looking for Q_WS_MAC - not found.
    -- Found Qt-Version 4.4.3
    -- Found ZLIB: C:/developer/zlib123-dll/lib/zdll.lib
    -- Could NOT find PNG  (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
    CMake Error at C:/Programme/CMake 2.6/share/cmake-2.6/Modules/FindPackageHandleS
    tandardArgs.cmake:57 (MESSAGE):
      Could NOT find TIFF (missing: TIFF_LIBRARY)
    Call Stack (most recent call first):
      C:/Programme/CMake 2.6/share/cmake-2.6/Modules/FindTIFF.cmake:18 (FIND_PACKAGE
      CMakeLists.txt:85 (FIND_PACKAGE)

    -- Configuring incomplete, errors occurred!

    Can you help me please?
    The Readme says nothing about PNG. Zlib is not mentioned too, but I found this version : . This is my libtiff : The include Path was set accordingly to your example but it isn't recognized.


    • Craig Ringer

      Craig Ringer - 2009-04-02

      Building lprof (or, in fact, most software) on win32 isn't trivial.

      For one thing, I haven't tested the cmake win32 build for *ages* and am unsure if it even gets tested anymore.

      You do not need libpng. It's telling you it can't find it, but that doesn't matter.

      You *do* require libtiff. Not just the libtiff sources, but a compiled libtiff library.

      On win32 you must compile most library dependencies. lprof won't compile libtiff for you; you must do that yourself in order for lprof's CMake code to then detect it. lprof will NOT be able to use libtiff sources, it requires the compiled libraries.

      At present I do not have a Windows machine configured with dev tools, nor do I really have the time to look into this. Sorry. Hopefully someone else is keeping an eye on it...

    • Tobias Stoerkle

      Tobias Stoerkle - 2009-04-03

      thank you for your fast reply.
      You are right, it is really not "Plug and Play". But I will try it.

      I found compiled zlib, libtiff and libjpeg at:

      now cmake doesnt fail and the project can be opened with VC9, but there are still 2 errors:

      lprof.qrc needs changes :
      this part has to be changed

         12         <file alias="lprof_de.qm">translations/lprof_de.qm</file>
         13         <file alias="lprof_fr.qm">translations/lprof_fr.qm</file>
         14         <file alias="lprof_no.qm">translations/lprof_no.qm</file>
         15         <file alias="lprof_ru.qm">translations/lprof_ru.qm</file>

      into this ( I don't know if any other modifications are necessary or if this is correct)

              <file alias="lprof_de.ts">translations/lprof_de.ts</file>
              <file alias="lprof_fr.ts">translations/lprof_fr.ts</file>
              <file alias="lprof_no.ts">translations/lprof_no.ts</file>
              <file alias="lprof_ru.ts">translations/lprof_ru.ts</file>

      ..\lprof\src\lprofqt\config.cpp has 2 typo's at line 368+369 (too many ")" )
      this is the corrected part:

      # ifdef __WIN32__
                  // hide the user configuration directory
              QString home_path = dir->homeDirPath() + lprofBaseDir;
              files = QString::fromLocal8Bit("attrib +h \&quot;") +
                      dir->convertSeparators(home_path) + QString::fromLocal8Bit("\&quot;");
      # endif /* __WIN32__ */

      and now it is compiling....
      after some modifications to the directory structure it is starting.
      functional testing will follow later...


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks