Changeset 1209

Show
Ignore:
Timestamp:
05/08/08 10:57:16 (4 days ago)
Author:
patrick
Message:

Fixed linker errors with the Collada loader on Windows.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/fcptr_stable_jun07/SConstruct

    r1203 r1209  
    507507    header = "NVPerfSDK.h", required = False) 
    508508 
     509collada_lib_prefix = "" 
     510if "win32" == platform: 
     511    collada_lib_prefix = "lib" 
    509512optional_libs_options["collada"] = OpenSG.ColladaOption.ColladaOption( 
    510513    "collada", "Location of the collada dom library", library = 
    511     ["collada_dae"
    512      "collada_LIBXMLPlugin"
    513      "collada_STLDatabase"
    514      "collada_dom"
    515      "collada_stdErrPlugin"
    516      "collada_dae"], 
     514    ["%scollada_dae" % collada_lib_prefix
     515     "%scollada_LIBXMLPlugin" % collada_lib_prefix
     516     "%scollada_STLDatabase" % collada_lib_prefix
     517     "%scollada_dom" % collada_lib_prefix
     518     "%scollada_stdErrPlugin" % collada_lib_prefix
     519     "%scollada_dae" % collada_lib_prefix], 
    517520    header = "dae/daeIntegrationObject.h", required = False) 
    518521 
     522xml2_lib = ["xml2"] 
     523if "win32" == platform: 
     524    # Link against the static versions of libiconv and libxml2 on Windows. 
     525    xml2_lib = ["iconv_a", "libxml2_a"] 
    519526optional_libs_options["xml2"] = sca_opts.StandardPackageOption( 
    520     "xml2", "Location of the xml2 library", library = "xml2"
     527    "xml2", "Location of the xml2 library", library = xml2_lib
    521528    required = False) 
    522529 
  • branches/fcptr_stable_jun07/Source/System/FileIO/Collada/build.info

    r1203 r1209  
    1515         
    1616        libs.extend(collada_option.library) 
    17         libs.extend([xml2_option.library]
     17        libs.extend(xml2_option.library 
    1818 
    1919        if collada_option.incDir: 
     
    2323            libpath.append(collada_option.libDir) 
    2424 
     25        if xml2_option.incDir: 
     26            cpppath.append(xml2_option.incDir) 
     27 
     28        if xml2_option.libDir: 
     29            libpath.append(xml2_option.libDir) 
     30