Ok, ensure that you are linking against strmiids.lib in "Microsoft DirectX SDK (November 2007)" directory

Laurent

Le 25/04/10 17:21, soufiane krify a écrit :

No, I have only "Microsoft DirectX SDK (November 2007)" directory
But I find this lib in Microsoft Platform SDK for Windows Server 2003 R2\lib

Soufiane


2010/4/25 Laurent Tarrisse <[email protected] <mailto:[email protected]>>

    Hello Soufiane

    Have you more than one directx SDK on your system  ?

    Seems you are linking against the wrong strmiids.lib ...

    Laurent

    Le 25/04/10 17:02, soufiane krify a écrit :
    Hi EveryBody

    I've been trying for two weeks now to get a successful build of
    qutecom.

    My build environmentis :

    - MSVC 2005 Express (command line, with IDE)
    - Boost 1.34.1 for vc2005 with:
       - unit test
       - thread
       - serialization (not the wide char variant)
       - program options
       - signals
       - date time
    - Microsoft Platform SDK for Windows Server 2003 R2
    - DirectX SDK August 2007
    - QT Opensource 4.6.2
    - Mercurial 1.51
    - CMAKE 2.6.0
    - QuteCom-2.2:
       - hg clone http://hg.qutecom.org/q

    First i execute "cmake -DCMAKE_BUILD_TYPE=Debug -G "NMake
    Makefiles" .." and at the end I had some errors link to target
    "webcam"


                    -- Configuring done
                    CMake Warning (dev) at
    owbuild/owbuild/OWCreateProjectBinary.cmake:67 (add_library):
Policy CMP0003 should be set before this line. Add code such as

                        if(COMMAND cmake_policy)
                          cmake_policy(SET CMP0003 NEW)
                        endif(COMMAND cmake_policy)

                      as early as possible but after the most recent
    call to
                      cmake_minimum_required or
    cmake_policy(VERSION).  This warning appears
                      because target "webcam" links to some libraries
    for which the linker must
                      search:

                        winmm, strmiids, comsuppw, Rpcrt4, comsupp,
    winmm, strmiids, comsuppw

                      and other libraries with known full path:

C:/qutecom-2.2/build/libs/owutil/thread/owthread.lib
                        C:/qutecom-2.2/build/libs/owutil/util/owutil.lib
                        C:/qutecom-2.2/build/libs/pixertool/pixertool.lib
C:/qutecom-2.2/build/libs/owutil/cutil/owcutil.lib C:/qutecom-2.2/build/libs/3rdparty/pthread/pthread.lib C:/qutecom-2.2/libs/3rdparty/ffmpeg/binary-lib/msvc/avcodec-51.lib

                      CMake is adding directories in the second list
    to the linker search path in
                      case they are needed to find libraries from the
    first list (for backwards
                      compatibility with CMake 2.4).  Set policy
    CMP0003 to OLD or NEW to enable
                      or disable this behavior explicitly.  Run
    "cmake --help-policy CMP0003" for
                      more information.
                    Call Stack (most recent call first):
                      libs/webcam/CMakeLists.txt:94
    (ow_create_project_binary)
                    This warning is for project developers.  Use
    -Wno-dev to suppress it.

                    -- Generating done
                    -- Build files have been written to:
    C:/qutecom-2.2/build

    After that when I eecute "nmake" i Had the following erros:

                    C:\Program Files\Microsoft Visual Studio
    8\VC\INCLUDE\cwchar(37) : warning C4995: 'wcscat' : le nom a été
    marqué comme #pragma deprecated
                    C:\Program Files\Microsoft Visual Studio
    8\VC\INCLUDE\cwchar(39) : warning C4995: 'wcscpy' : le nom a été
    marqué comme #pragma deprecated
                            cd C:\qutecom-2.2\build
                    Linking CXX shared library webcam.dll
                            cd C:\qutecom-2.2\build\libs\webcam
                            C:\CMake\bin\cmake.exe -E vs_link_dll
C:\PROGRA~1\MICROS~3\VC\bin\link.exe @CMakeFiles\webcam.dir\objects.rsp
    @C:\DOCUME~1\KRIFY~1.KRI\LOCALS~1\Temp\nm48E.tmp
                    Microsoft (R) Incremental Linker Version
    8.00.50727.42
                    Copyright (C) Microsoft Corporation.  All rights
    reserved.

                       CrÚation de la bibliothÞque webcam.lib et de
    l'objet webcam.exp
                    DirectXWebcamDriver.obj : error LNK2019: symbole
    externe non rÚsolu _IID_IUnknown rÚfÚrencÚ dans la fonction
    "public: virtual long __stdcall
    DirectXWebcamDriver::QueryInterface(struct _GUID const &,vo
                    id * *)"
    (?queryinterf...@directxwebcamdriver@@UAGJABU_GUID@@pa...@z)
                    DirectXWebcamDriver.obj : error LNK2019: symbole
    externe non rÚsolu _IID_IPropertyBag rÚfÚrencÚ dans la fonction
    "public: virtual class std::basic_string<char,struct
    std::char_traits<char>,class std::
                    allocator<char> > __thiscall
    DirectXWebcamDriver::getDefaultDevice(void)"
    
(?getdefaultdev...@directxwebcamdriver@@uae?av?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@XZ)
                    DirectXWebcamUtils.obj : error LNK2001: symbole
    externe non rÚsolu _IID_IPropertyBag
                    pixertool.lib(directx-pixertool.obj) : error
    LNK2019: symbole externe non rÚsolu _GUID_NULL rÚfÚrencÚ dans la
    fonction "struct _GUID __cdecl pix_directx_from_pix_osi(enum
    pixosi)" (?pix_directx_from_p
                    ix_osi@@YA?AU_GUID@@W4pixosi@@@Z)
                    webcam.dll : fatal error LNK1120: 3 externes non
    rÚsolus
                    LINK failed. with 1120
                    NMAKE : fatal error U1077:
    'C:\CMake\bin\cmake.exe' : code retour '0xffffffff'
                    Stop.
                    NMAKE : fatal error U1077: '"C:\Program
    Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : code retour
    '0x2'
                    Stop.
                    NMAKE : fatal error U1077: '"C:\Program
    Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : code retour
    '0x2'
                    Stop.


    Can any one help me to resolve this Problem, please ?

    Thanks



    _______________________________________________
    QuteCom-dev mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.qutecom.org/mailman/listinfo/qutecom-dev


    _______________________________________________
    QuteCom-dev mailing list
    [email protected] <mailto:[email protected]>
    http://lists.qutecom.org/mailman/listinfo/qutecom-dev



_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev

Reply via email to