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

cradfire

is there a way to compile sse4 optimized without Intel C++ Composer?
I tried MinGW once but it didn't work.
(02-15-2011, 01:04 PM)boogerlad Wrote: [ -> ]virtualbox.
(02-15-2011, 11:18 PM)ryancollins Wrote: [ -> ]I also use virtualbox it is awesome Exclamation
Trying it. So far it seems like a good program, although it has some bugs.

(02-17-2011, 07:16 PM)cradfire Wrote: [ -> ]is there a way to compile sse4 optimized without Intel C++ Composer?
Yep, that's why I changed the name from How to compile with SSE to how to compile with ICC XE.
According to the Official Windows Build:
"If you want to compile with hand coded SSSE3 and SSE4 optimization code, add _M_SSE=0x402 to the macro definition. You can add the macro definition from 'VideoCommon' -> Right click -> 'Property' -> 'C/C++' -> 'Preprocessor' -> 'Preprocessor Definition'. Don't forget to add separators ';' between the macro definitions."

I've never tried it that way, but apparently that's how you would do it.
NOTE: It's not the same as using ICC XE to automatically make SSE code!

XCSampson

Hi, I have been trying to compile some x64 builds, I keep running into the error no matter what build I am trying to compile. "Error 529 error #2277: invalid definition of __m128; use #include "xmmintrin.h" instead C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmmintrin.h Line 56 Column 1 Dolphin".

Furthermore, regardless of what settings I alter(SSE optimizations etc) I receive the same error. Same with when I don't change any settings. I am relatively new at this stuff; just wanted to give a shot at this. I have followed the tutorial and have all SDK's etc installed. I appreciate the support from all members in this thread in advancing the optimization of the Dolphin builds, they have greatly increased performance on my laptop. If things were to compile without errors my goal is to create SSE4.1 optimized builds.

Thanks in advance! Especially to Lectrode for writing the tutorial!

EDIT: I can compile 32bit builds successfully. The problem with the 64 bit builds persists.

64 bit errors:
error MSB6001: Invalid command line switch for "icl.exe". Parameter "path" cannot have zero length. 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 Line 204 Column 6 Project wxAdv28

error #2277: invalid definition of __m128; use #include "xmmintrin.h" instead C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmmintrin.h Line 56 Column 1 Project Common


error #10298: problem during post processing of parallel object compilation C:\Desktop\Checkout\7226\Source\Core\Common\icl Project Common
(03-17-2011, 03:04 PM)XCSampson Wrote: [ -> ]Hi, I have been trying to compile some x64 builds, I keep running into the error no matter what build I am trying to compile. "Error 529 error #2277: invalid definition of __m128; use #include "xmmintrin.h" instead C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmmintrin.h Line 56 Column 1 Dolphin".

Furthermore, regardless of what settings I alter(SSE optimizations etc) I receive the same error. Same with when I don't change any settings. I am relatively new at this stuff; just wanted to give a shot at this. I have followed the tutorial and have all SDK's etc installed. I appreciate the support from all members in this thread in advancing the optimization of the Dolphin builds, they have greatly increased performance on my laptop. If things were to compile without errors my goal is to create SSE4.1 optimized builds.

Thanks in advance! Especially to Lectrode for writing the tutorial!

EDIT: I can compile 32bit builds successfully. The problem with the 64 bit builds persists.

64 bit errors:
error MSB6001: Invalid command line switch for "icl.exe". Parameter "path" cannot have zero length. 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 Line 204 Column 6 Project wxAdv28

error #2277: invalid definition of __m128; use #include "xmmintrin.h" instead C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmmintrin.h Line 56 Column 1 Project Common


error #10298: problem during post processing of parallel object compilation C:\Desktop\Checkout\7226\Source\Core\Common\icl Project Common

set vc++ include directories beginning with $(ICInstallDir)\compiler\include\; and vc++ library directories beginning with $(ICInstallDir)\compiler\lib\ia32\; (for 32bits) and $(ICInstallDir)\compiler\lib\intel64\; (for 64bits).

this should solve your problem. the problem is because your environment never setup correctly.
hey, lectrode. i have them compiled with icc without problem except dx11. they are able to run games.
(04-12-2011, 12:45 AM)lannyboy Wrote: [ -> ]hey, lectrode. i have them compiled with icc without problem except dx11. they are able to run games.
Thx for the info. I'll try out the command line switches (/Qstd=c++0x /D "nullptr=0") once I have time. Should be within a day or so.
Edited Tutorial to include Lannyboy's fixes. If I got anything wrong please let me know.
Thanks again for those! Smile

I will have latest revision compiled as soon as I can Smile
Got this damn errors, i probably fcked up somewhere, any tips?

Error 1 error MSB6006: "cmd.exe" exited with code 9009. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6 SVNRevGen
Error 2 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Kompilacijeee\Majmunski delfin\Externals\zlib\TRACKER zlib
Error 3 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Kompilacijeee\Majmunski delfin\Externals\wxWidgets\build\msw\TRACKER wxBase28
Error 4 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Kompilacijeee\Majmunski delfin\Externals\wxWidgets\build\msw\TRACKER wxCore28
Error 5 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Kompilacijeee\Majmunski delfin\Externals\SOIL\TRACKER SOIL
(04-17-2011, 09:29 AM)vlakipn Wrote: [ -> ]Got this damn errors, i probably fcked up somewhere, any tips?

Error 1 error MSB6006: "cmd.exe" exited with code 9009. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6 SVNRevGen
Error 2 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Kompilacijeee\Majmunski delfin\Externals\zlib\TRACKER zlib
Error 3 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Kompilacijeee\Majmunski delfin\Externals\wxWidgets\build\msw\TRACKER wxBase28
Error 4 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Kompilacijeee\Majmunski delfin\Externals\wxWidgets\build\msw\TRACKER wxCore28
Error 5 error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. C:\Kompilacijeee\Majmunski delfin\Externals\SOIL\TRACKER SOIL

1) go to your property manager

2) open dolphin project

3) expand release | win32 (for x86) or release | x64 for (x64)

4) right click to microsoft.cpp.win32.user (for x86) or microsoft.cpp.x64.user (for x64), then select properties.

5) expand common properties -> vc++ directories

6) [color=#FF0000]always begin with[/color] (don't put these paths at the end of the line, icc will read to vc++ libraries and headers)

x86:
vc++ executable directories: $(ICInstallDir)bin\ia32;
vc++ include directories: $(ICInstallDir)compiler\include;
vc++ reference directories: $(ICInstallDir)compiler\lib\ia32;

x64
vc++ executable directories: $(ICInstallDir)bin\ia32_Intel64;
vc++ include directories: $(ICInstallDir)compiler\include;
vc++ reference directories: $(ICInstallDir)compiler\lib\Intel64;

7) once done. press ok button.

8) right click to it and press save microsoft.cpp.win32.user (for x86) or save microsoft.cpp.x64.user (for x64).

=end=
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