Difference between revisions of "Compiling ScummVM/Visual Studio/Compiling Libraries"

Jump to navigation Jump to search
m
Text replacement - "</source>" to "</syntaxhighlight>"
(→‎Special Instructions for Libraries: Add libtheora instructions.)
m (Text replacement - "</source>" to "</syntaxhighlight>")
(One intermediate revision by the same user not shown)
Line 17: Line 17:
We used the following patch when compiling SDL 1.2, which is required for x64 support. The patch was gladly taken from the SDL mailing list.
We used the following patch when compiling SDL 1.2, which is required for x64 support. The patch was gladly taken from the SDL mailing list.


<source lang="diff">
<syntaxhighlight lang="diff">
--- src/video/windx5/SDL_dx5video.c Tue Oct 13 00:07:16 2009
--- src/video/windx5/SDL_dx5video.c Tue Oct 13 00:07:16 2009
+++ src/video/windx5/SDL_dx5video.c Tue Nov 03 21:14:38 2009
+++ src/video/windx5/SDL_dx5video.c Tue Nov 03 21:14:38 2009
Line 56: Line 56:
   
   
  /* Initialization/Query functions */
  /* Initialization/Query functions */
</source>
</syntaxhighlight>


After adding a new x64 configuration option in the project files, you may also need to remove "/MACHINE:I386" as additional linker command in Project->Properties, Configuration Properties->Linker->Command Line.
After adding a new x64 configuration option in the project files, you may also need to remove "/MACHINE:I386" as additional linker command in Project->Properties, Configuration Properties->Linker->Command Line.
Line 92: Line 92:
You will also need to apply the following patch to mad.h:
You will also need to apply the following patch to mad.h:


<source lang="diff">
<syntaxhighlight lang="diff">
--- mad.h Tue Nov 03 18:29:06 2009
--- mad.h Tue Nov 03 18:29:06 2009
+++ mad.h Tue Nov 03 18:29:14 2009
+++ mad.h Tue Nov 03 18:29:14 2009
Line 104: Line 104:
  # define FPM_INTEL
  # define FPM_INTEL
+#endif
+#endif
</source>
</syntaxhighlight>


=== FLAC ===
=== FLAC ===
Line 114: Line 114:
We used the following patch when compiling libfaad to adjust for changes in the MSVC runtime:
We used the following patch when compiling libfaad to adjust for changes in the MSVC runtime:


<source lang="diff">
<syntaxhighlight lang="diff">
diff -ru '--exclude=*vcx*' '--exclude=*sln*' sources.orig/faad2-2.7/libfaad/common.h sources/faad2-2.7/libfaad/common.h
diff -ru '--exclude=*vcx*' '--exclude=*sln*' sources.orig/faad2-2.7/libfaad/common.h sources/faad2-2.7/libfaad/common.h
--- sources.orig/faad2-2.7/libfaad/common.h 2009-02-05 01:51:03.000000000 +0100
--- sources.orig/faad2-2.7/libfaad/common.h 2009-02-05 01:51:03.000000000 +0100
Line 183: Line 183:
  static void sbr_header(bitfile *ld, sbr_info *sbr);
  static void sbr_header(bitfile *ld, sbr_info *sbr);


</source>
</syntaxhighlight>


'''Note for x64:''' When you want to build a x64 library for libfaad you will need to create your own x64 config for it. You can do so by easy conversion of the existing libfaad solution files for x86.
'''Note for x64:''' When you want to build a x64 library for libfaad you will need to create your own x64 config for it. You can do so by easy conversion of the existing libfaad solution files for x86.
TrustedUser
2,147

edits

Navigation menu