Dolphin, the GameCube and Wii emulator - Forums

Full Version: How To: compile Dolphin with Intel C++ Composer XE on Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
I got so close, I got the whole thing to compile finally, I reinstalled a few things and it fixed the last 2 failed in my build, but now when I try and run my build I get an error. (picture attached) Something about Mismatch between the program and the library build
(09-11-2011, 08:50 PM)jennifermr1976 Wrote: [ -> ]I got so close, I got the whole thing to compile finally, I reinstalled a few things and it fixed the last 2 failed in my build, but now when I try and run my build I get an error. (picture attached) Something about Mismatch between the program and the library build

you got to switch all your projects to compile icc instead of vs compiler.

dreznovk

Thanks for the tutorial but i have some problems here.

With the code i just downloaded, i success compiling Dolphin with VS C++ (32 and 64-bit) and ICC 32-bit, but with ICC 64-bit i got these errors:

Core
Quote:1>------ Build started: Project: Core, Configuration: Release x64 ------
1>Build started 10/2/2011 2:17:40 PM.
1>InitializeBuildStatus:
1> Touching "x64\Release\Core.unsuccessfulbuild".
1>MessageBuildingWithCompiler:
1> Building with Intel® C++ Compiler XE 12.1
1>ClCompile:
1> ***** ClCompile (X64 - Intel C++)
1> All outputs are up-to-date.
1> HW.cpp
1> ActionReplay.cpp
1> Memmap.cpp
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 12.1\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.1.targets(211,5): error : backend signals
1>
1>icl : error #10298: problem during post processing of parallel object compilation

1> VolumeHandler.cpp
1> ARDecrypt.cpp
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 12.1\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.1.targets(211,5): error : backend signals
1>
1>icl : error #10298: problem during post processing of parallel object compilation

1>
1>Build FAILED.
1>
1>Time Elapsed 00:01:02.04
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

DiscIO
Quote:1>------ Rebuild All started: Project: DiscIO, Configuration: Release x64 ------
1>Build started 10/2/2011 2:19:57 PM.
1>_PrepareForClean:
1> Deleting file "x64\Release\DiscIO.lastbuildstate".
1>InitializeBuildStatus:
1> Touching "x64\Release\DiscIO.unsuccessfulbuild".
1>MessageBuildingWithCompiler:
1> Building with Intel® C++ Compiler XE 12.1
1>ClCompile:
1> ***** ClCompile (X64 - Intel C++)
1> stdafx.cpp
1> BannerLoader.cpp
1> FileMonitor.cpp
1> BannerLoaderGC.cpp
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 12.1\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.1.targets(211,5): error : backend signals
1>
1> WiiWad.cpp
1> Filesystem.cpp
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 12.1\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.1.targets(211,5): error : backend signals
1>
1>icl : error #10298: problem during post processing of parallel object compilation
1>icl : error #10298: problem during post processing of parallel object compilation

1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:04.54
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I'm using Window 7, Visual Studio 2010 Ultimate and ICC 2011 update 6, i did set the path correctly.
Any help would be appreciated.




Turn off multi-processor compilation. Its either set in the general tab or get rid of the /MP in the command line tab. I do it for all the projects unless you feel like finding the offending project.

dreznovk

(10-02-2011, 09:59 PM)lamedude Wrote: [ -> ]Turn off multi-processor compilation. Its either set in the general tab or get rid of the /MP in the command line tab. I do it for all the projects unless you feel like finding the offending project.
Still not working

After messing with settings a bit, 'not using precompiled headers' in Core and DiskIO project fix this problem but the build is buggy and freeze a lot. I'm guessing the header (StdAfx.h) causes the error but i don't know how to deal with it.

So again, any help would be appreciated.
(10-03-2011, 02:12 AM)dreznovk Wrote: [ -> ]
(10-02-2011, 09:59 PM)lamedude Wrote: [ -> ]Turn off multi-processor compilation. Its either set in the general tab or get rid of the /MP in the command line tab. I do it for all the projects unless you feel like finding the offending project.
Still not working

After messing with settings a bit, 'not using precompiled headers' in Core and DiskIO project fix this problem but the build is buggy and freeze a lot. I'm guessing the header (StdAfx.h) causes the error but i don't know how to deal with it.

So again, any help would be appreciated.

icc path should be included in the first place instead of vs2010 path. the first lookup will be used for the reference.

cexikitin

Got the same error as lamedude. Did what he recommended and the build works fine. I have my includes set up properly, but is there something else I should do so that It can compile with the headers on?
Err I meant dreznovk


Actually after further investiation my error is at:
Mircosoft.cpp.x64.Intel C++ Compiler XE 12.1.targets
<ICL Condition="'%(ClCompile.PrecompiledHeader)' != 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true' and '%(ClCompile.UseMSVC)'!='true'"

Code:
<!-- Intel C++ Compiler - Rest of the sources -->
    <ICL Condition="'%(ClCompile.PrecompiledHeader)' != 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true' and '%(ClCompile.UseMSVC)'!='true'"
      BuildingInIDE                      ="$(BuildingInsideVisualStudio)"
      Sources                            ="@(ClCompile)"
      ICInstallDir                       ="$(ICInstallDir)"
      ICVSOptions                        ="$(ICVSOptions)"

      AdditionalIncludeDirectories       ="%(ClCompile.AdditionalIncludeDirectories)"
      AdditionalOptions                  ="%(ClCompile.AdditionalOptions)"
      AssemblerListingLocation           ="%(ClCompile.AssemblerListingLocation)"
      AssemblerOutput                    ="%(ClCompile.AssemblerOutput)"
      BasicRuntimeChecks                 ="%(ClCompile.BasicRuntimeChecks)"
      BrowseInformation                  ="%(ClCompile.BrowseInformation)"
      BrowseInformationFile              ="%(ClCompile.BrowseInformationFile)"
      BufferSecurityCheck                ="%(ClCompile.BufferSecurityCheck)"
      CompileAs                          ="%(ClCompile.CompileAs)"
      DebugInformationFormat             ="%(ClCompile.DebugInformationFormat)"
      DisableLanguageExtensions          ="%(ClCompile.DisableLanguageExtensions)"
      DisableSpecificWarnings            ="%(ClCompile.DisableSpecificWarnings)"
      EnableEnhancedInstructionSet       ="%(ClCompile.EnableEnhancedInstructionSet)"
      EnableFiberSafeOptimizations       ="%(ClCompile.EnableFiberSafeOptimizations)"
      ExceptionHandling                  ="%(ClCompile.ExceptionHandling)"
      ExcludedInputPaths                 ="$(ExcludePath)"
      FavorSizeOrSpeed                   ="%(ClCompile.FavorSizeOrSpeed)"
      FloatingPointExceptions            ="%(ClCompile.FloatingPointExceptions)"
      FloatingPointModel                 ="%(ClCompile.FloatingPointModel)"
      ForceConformanceInForLoopScope     ="%(ClCompile.ForceConformanceInForLoopScope)"
      ForcedIncludeFiles                 ="%(ClCompile.ForcedIncludeFiles)"
      FunctionLevelLinking               ="%(ClCompile.FunctionLevelLinking)"
      IgnoreStandardIncludePath          ="%(ClCompile.IgnoreStandardIncludePath)"
      InlineFunctionExpansion            ="%(ClCompile.InlineFunctionExpansion)"
      IntrinsicFunctions                 ="%(ClCompile.IntrinsicFunctions)"
      MultiProcessorCompilation          ="%(ClCompile.MultiProcessorCompilation)"
      ObjectFileName                     ="%(ClCompile.ObjectFileName)"
      OmitDefaultLibName                 ="%(ClCompile.OmitDefaultLibName)"
      Optimization                       ="%(ClCompile.Optimization)"
      PrecompiledHeader                  ="%(ClCompile.PrecompiledHeader)"
      PrecompiledHeaderFile              ="%(ClCompile.PrecompiledHeaderFile)"
      PrecompiledHeaderOutputFile        ="%(ClCompile.PrecompiledHeaderOutputFile)"
      PreprocessKeepComments             ="%(ClCompile.PreprocessKeepComments)"
      PreprocessorDefinitions            ="%(ClCompile.PreprocessorDefinitions)"
      PreprocessSuppressLineNumbers      ="%(ClCompile.PreprocessSuppressLineNumbers)"
      PreprocessToFile                   ="%(ClCompile.PreprocessToFile)"
      ProcessorNumber                    ="%(ClCompile.ProcessorNumber)"
      ProgramDataBaseFileName            ="%(ClCompile.ProgramDataBaseFileName)"
      RuntimeLibrary                     ="%(ClCompile.RuntimeLibrary)"
      RuntimeTypeInfo                    ="%(ClCompile.RuntimeTypeInfo)"
      ShowIncludes                       ="%(ClCompile.ShowIncludes)"
      SmallerTypeCheck                   ="%(ClCompile.SmallerTypeCheck)"
      StringPooling                      ="%(ClCompile.StringPooling)"
      StructMemberAlignment              ="%(ClCompile.StructMemberAlignment)"
      SuppressStartupBanner              ="%(ClCompile.SuppressStartupBanner)"
      TreatWarningAsError                ="%(ClCompile.TreatWarningAsError)"
      TreatWChar_tAsBuiltInType          ="%(ClCompile.TreatWChar_tAsBuiltInType)"
      UndefineAllPreprocessorDefinitions ="%(ClCompile.UndefineAllPreprocessorDefinitions)"
      UndefinePreprocessorDefinitions    ="%(ClCompile.UndefinePreprocessorDefinitions)"
      UseFullPaths                       ="%(ClCompile.UseFullPaths)"
      WarningLevel                       ="%(ClCompile.WarningLevel)"
      
      EnableParallelDebugChecks          ="%(ClCompile.EnableParallelDebugChecks)"
      EnableExpandedLineNumberInfo       ="%(ClCompile.EnableExpandedLineNumberInfo)"
      InterproceduralOptimization        ="%(ClCompile.InterproceduralOptimization)"
      OptimizeForWindowsApplication      ="%(ClCompile.OptimizeForWindowsApplication)"
      FlushDenormalResultsToZero         ="%(ClCompile.FlushDenormalResultsToZero)"
      LoopUnrolling                      ="%(ClCompile.LoopUnrolling)"
      Parallelization                    ="%(ClCompile.Parallelization)"
      UseIntelOptimizedHeaders           ="%(ClCompile.UseIntelOptimizedHeaders)"
      ProfileGuidedOptimization          ="$(ProfileGuidedOptimization)"
      CodeCoverageOperations             ="$(CodeCoverage)"
      IclProfileDirectory                ="%(ClCompile.IclProfileDirectory)"
      UnmaskFloatingPointExceptions      ="%(ClCompile.UnmaskFloatingPointExceptions)"
      FloatingPointExpressionEvaluation  ="%(ClCompile.FloatingPointExpressionEvaluation)"
      GenerateAlternateCodePaths         ="%(ClCompile.GenerateAlternateCodePaths)"
      UseProcessorExtensions             ="%(ClCompile.UseProcessorExtensions)"
      C99Support                         ="%(ClCompile.C99Support)"
      Cpp0xSupport                       ="%(ClCompile.Cpp0xSupport)"
      RecognizeRestrictKeyword           ="%(ClCompile.RecognizeRestrictKeyword)"
      ErrorLimit                         ="%(ClCompile.ErrorLimit)"
      DisableSpecificDiagnostics         ="%(ClCompile.DisableSpecificDiagnostics)"
      EmitDiagnosticsToFile              ="%(ClCompile.EmitDiagnosticsToFile)"
      DiagnosticsFile                    ="%(ClCompile.DiagnosticsFile)"
      VectorizerDiagnosticLevel          ="%(ClCompile.VectorizerDiagnosticLevel)"
      OptimizationDiagnosticLevel        ="%(ClCompile.OptimizationDiagnosticLevel)"
      EmitOptimizationDiagnosticsToFile  ="%(ClCompile.EmitOptimizationDiagnosticsToFile)"
      OptimizationDiagnosticsFile        ="%(ClCompile.OptimizationDiagnosticsFile)"
      OptimizationDiagnosticPhase        ="%(ClCompile.OptimizationDiagnosticPhase)"
      OptimizationDiagnosticRoutine      ="%(ClCompile.OptimizationDiagnosticRoutine)"
      LevelOfStaticAnalysis              ="%(ClCompile.LevelOfStaticAnalysis)"
      SCResultsDirectory                 ="%(ClCompile.SCResultsDirectory)"
      AnalyzeIncludeFiles                ="%(ClCompile.AnalyzeIncludeFiles)"
      EnableMatrixMultiplyLibraryCall    ="%(ClCompile.EnableMatrixMultiplyLibraryCall)"
      DisableCilkKeywords                ="%(ClCompile.DisableCilkKeywords)"
      DisableIntelLangExtensions         ="%(ClCompile.DisableIntelLangExtensions)"
      OpenMP                             ="%(ClCompile.OpenMP)"
      DisableFunctionSplitting           ="%(ClCompile.DisableFunctionSplitting)"
      EnableGapAnalysis                  ="%(ClCompile.EnableGapAnalysis)"
      EmitGAPDiagnosticsToFile           ="%(ClCompile.EmitGAPDiagnosticsToFile)"
      GAPDiagnosticsFile                 ="%(ClCompile.GAPDiagnosticsFile)"
      GAPCodeSelectionOptions            ="%(ClCompile.GAPCodeSelectionOptions)"
      IclGAPProjOptions                  ="$(GAPProjOptions)"
      IclGAPFileOptions                  ="$(GAPFileOptions)"

      TrackerLogDirectory                ="%(ClCompile.TrackerLogDirectory)"
      TLogReadFiles                      ="@(CLTLogReadFiles)"
      TLogWriteFiles                     ="@(CLTLogWriteFiles)"
      ToolExe                            ="$(CLToolExe)"
      ToolPath                           ="$(CLToolPath)"
      TrackFileAccess                    ="$(TrackFileAccess)"
      MinimalRebuildFromTracking         ="%(ClCompile.MinimalRebuildFromTracking)"
      ToolArchitecture                   ="$(CLToolArchitecture)"
      TrackerFrameworkPath               ="$(CLTrackerFrameworkPath)"
      TrackerSdkPath                     ="$(CLTrackerSdkPath)"
    >
    </ICL>
My Google-fu tells me its a compiler problem. Here's a workaround.
On core,configuration properties,set platform toolset to vc100 (ICC12.0 might work if you it have it installed).
[Image: dolphinicc.png]

cexikitin

Setting both to use v100 vs intel worked.

Setting it to use 12.0 did not, gave:

Error 3 error : Could not expand ICInstallDir variable. PlatformToolset may be set to an invalid version number. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 12.0\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.0.targets 43 6 DiscIO
updated tutorial with lannyboy's fix Smile
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25