Changeset 433

Show
Ignore:
Timestamp:
10/14/08 22:37:22 (1 year ago)
Author:
jdecq
Message:

changes for Gecko 1.9 on Windows
updating Readme

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/uploadr/MacUploadr.app/Contents/Resources/components/flGM.vcproj

    r302 r433  
    4343                                Name="VCCLCompilerTool" 
    4444                                Optimization="0" 
    45                                 AdditionalIncludeDirectories=""..\gecko-sdk.win\include";"..\..\..\..\..\GraphicsMagick-1.1.10\Magick++\lib";"..\..\..\..\..\GraphicsMagick-1.1.10";"..\..\..\..\..\exiv2-0.15\src"" 
     45                                AdditionalIncludeDirectories=""..\xulrunner-sdk\sdk\include";"..\..\..\..\..\GraphicsMagick-1.1.10\Magick++\lib";"..\..\..\..\..\GraphicsMagick-1.1.10";"..\..\..\..\..\exiv2-0.15\src"" 
    4646                                PreprocessorDefinitions="XP_WIN;XP_WIN32;NDEBUG;WIN32;_CONSOLE;_VISUALC_;NeedFunctionPrototypes;_MAGICKMOD_;_LIB;NEED_SOCKETS" 
    4747                                MinimalRebuild="true" 
     
    7070                                OutputFile="$(ProjectName).dll" 
    7171                                LinkIncremental="2" 
    72                                 AdditionalLibraryDirectories=""..\..\..\..\..\GraphicsMagick-1.1.10\VisualMagick\lib";"..\gecko-sdk.win\lib";"..\..\..\..\..\exiv2-0.15\msvc\exiv2lib\Release"" 
     72                                AdditionalLibraryDirectories=""..\..\..\..\..\GraphicsMagick-1.1.10\VisualMagick\lib";"..\xulrunner-sdk\sdk\lib";"..\..\..\..\..\exiv2-0.15\msvc\exiv2lib\Release"" 
    7373                                GenerateDebugInformation="true" 
    7474                                SubSystem="2" 
     
    127127                        <Tool 
    128128                                Name="VCCLCompilerTool" 
    129                                 AdditionalIncludeDirectories="&quot;..\gecko-sdk.win\include&quot;;&quot;..\..\..\..\..\GraphicsMagick-1.1.10\Magick++\lib&quot;;&quot;..\..\..\..\..\GraphicsMagick-1.1.10&quot;;&quot;..\..\..\..\..\exiv2-0.16\src&quot;;c:\msys\1.0\local\include\ffmpeg;c:\msys\1.0\local\include
     129                                AdditionalIncludeDirectories="&quot;..\xulrunner-sdk\sdk\include&quot;;&quot;..\..\..\..\GraphicsMagick-1.2.5\Magick++\lib&quot;;&quot;..\..\..\..\GraphicsMagick-1.2.5&quot;;&quot;..\..\..\..\exiv2-0.17.1\src&quot;;C:\msys\home\jdecq\ffmpeg;c:\msys\1.0\local\include;.\
    130130                                PreprocessorDefinitions="XP_WIN;XP_WIN32;NDEBUG;WIN32;_CONSOLE;_VISUALC_;NeedFunctionPrototypes;_MAGICKMOD_;_LIB;NEED_SOCKETS;XML_STATIC" 
    131131                                RuntimeLibrary="2" 
     132                                TreatWChar_tAsBuiltInType="false" 
    132133                                UsePrecompiledHeader="0" 
    133134                                WarningLevel="0" 
     
    148149                                Name="VCLinkerTool" 
    149150                                AdditionalOptions="/NODEFAULTLIB:libcmt.lib" 
    150                                 AdditionalDependencies="CORE_RL_Magick++_.lib CORE_RL_bzlib_.lib CORE_RL_coders_.lib CORE_RL_filters_.lib CORE_RL_jbig_.lib CORE_RL_jp2_.lib CORE_RL_jpeg_.lib CORE_RL_lcms_.lib CORE_RL_libxml_.lib CORE_RL_magick_.lib CORE_RL_png_.lib CORE_RL_tiff_.lib CORE_RL_ttf_.lib CORE_RL_wand_.lib CORE_RL_wmf_.lib CORE_RL_xlib_.lib CORE_RL_zlib_.lib X11.lib Xext.lib Ws2_32.lib nspr4.lib xpcom.lib xpcomglue_s.lib exiv2.lib libavutil.a libavcodec.a libavformat.a libz.a libgcc.a libmingwex.a" 
     151                                AdditionalDependencies="CORE_RL_Magick++_.lib CORE_RL_bzlib_.lib CORE_RL_coders_.lib CORE_RL_filters_.lib CORE_RL_jbig_.lib CORE_RL_jp2_.lib CORE_RL_jpeg_.lib CORE_RL_lcms_.lib CORE_RL_libxml_.lib CORE_RL_magick_.lib CORE_RL_png_.lib CORE_RL_tiff_.lib CORE_RL_ttf_.lib CORE_RL_wand_.lib CORE_RL_wmf_.lib CORE_RL_xlib_.lib CORE_RL_zlib_.lib X11.lib Xext.lib Ws2_32.lib nspr4.lib xpcom.lib xpcomglue_s.lib exiv2.lib libavutil.a libavcodec.a libavformat.a libz.a libgcc.a libswscale.a libmingwex.a" 
    151152                                OutputFile="$(ProjectName).dll" 
    152153                                LinkIncremental="1" 
    153                                 AdditionalLibraryDirectories="&quot;..\..\..\..\..\GraphicsMagick-1.1.10\VisualMagick\lib&quot;;&quot;..\gecko-sdk.win\lib&quot;;&quot;..\..\..\..\..\exiv2-0.16\msvc\exiv2lib\Release&quot;;c:\msys\1.0\local\lib;C:\msys\1.0\mingw\lib;c:\msys\1.0\mingw\lib\gcc\mingw32\3.4.5" 
     154                                AdditionalLibraryDirectories="&quot;..\..\..\..\..\GraphicsMagick-1.1.10\VisualMagick\lib&quot;;&quot;..\xulrunner-sdk\sdk\lib&quot;;&quot;..\..\..\..\exiv2-0.17.1\msvc\exiv2lib\Release&quot;;c:\msys\lib;c:\msys\1.0\local\lib;C:\msys\mingw\lib;&quot;C:\msys\mingw\lib\gcc\mingw32\4.2.1-sjlj&quot;;C:\msys\home\jdecq\ffmpeg\libavutil;C:\msys\home\jdecq\ffmpeg\libavcodec;C:\msys\home\jdecq\ffmpeg\libavformat;C:\msys\home\jdecq\ffmpeg\libswscale;&quot;C:\Program Files\Expat 2.0.1\Bin&quot;" 
     155                                ModuleDefinitionFile="" 
    154156                                GenerateDebugInformation="true" 
    155157                                SubSystem="2" 
     
    182184                        <Tool 
    183185                                Name="VCPostBuildEventTool" 
     186                                Description="clear out cache" 
     187                                CommandLine="&quot;C:\Documents and Settings\jdecq\Application Data\Flickr\Flickr Uploadr\Profiles\nqdgl4yz.default\clearcache.bat&quot;" 
    184188                        /> 
    185189                </Configuration> 
  • trunk/uploadr/MacUploadr.app/Contents/Resources/components/flKey.vcproj

    r179 r433  
    44        Version="8.00" 
    55        Name="key" 
    6         ProjectGUID="{575D254B-9B3B-4CBD-891E-22D3A870E4D9}" 
     6        ProjectGUID="{F53783EC-1288-478F-A730-8EA3F375A026}" 
    77        RootNamespace="flKey" 
    88        Keyword="Win32Proj" 
     
    4343                                Name="VCCLCompilerTool" 
    4444                                Optimization="0" 
    45                                 AdditionalIncludeDirectories="&quot;..\gecko-sdk.win\include&quot;" 
     45                                AdditionalIncludeDirectories="&quot;..\xulrunner-sdk\sdk\include&quot;" 
    4646                                PreprocessorDefinitions="XP_WIN;XP_WIN32;NDEBUG;WIN32;_CONSOLE;_VISUALC_;NeedFunctionPrototypes;_MAGICKMOD_;_LIB;NEED_SOCKETS" 
    4747                                MinimalRebuild="true" 
     
    7070                                OutputFile="$(ProjectName).dll" 
    7171                                LinkIncremental="2" 
    72                                 AdditionalLibraryDirectories="&quot;..\gecko-sdk.win\lib&quot;" 
     72                                AdditionalLibraryDirectories="&quot;..\xulrunner-sdk\sdk\lib&quot;" 
    7373                                GenerateDebugInformation="true" 
    7474                                SubSystem="2" 
     
    127127                        <Tool 
    128128                                Name="VCCLCompilerTool" 
    129                                 AdditionalIncludeDirectories="&quot;..\gecko-sdk.win\include&quot;" 
     129                                AdditionalIncludeDirectories="&quot;..\xulrunner-sdk\sdk\include&quot;" 
    130130                                PreprocessorDefinitions="XP_WIN;XP_WIN32;NDEBUG;WIN32;_CONSOLE;_VISUALC_;NeedFunctionPrototypes;_MAGICKMOD_;_LIB;NEED_SOCKETS" 
    131131                                RuntimeLibrary="2" 
     132                                TreatWChar_tAsBuiltInType="false" 
    132133                                UsePrecompiledHeader="0" 
    133134                                WarningLevel="3" 
     
    151152                                OutputFile="$(ProjectName).dll" 
    152153                                LinkIncremental="1" 
    153                                 AdditionalLibraryDirectories="&quot;..\gecko-sdk.win\lib&quot;" 
     154                                AdditionalLibraryDirectories="&quot;..\xulrunner-sdk\sdk\lib&quot;" 
    154155                                GenerateDebugInformation="true" 
    155156                                SubSystem="2" 
  • trunk/uploadr/README.windows

    r383 r433  
    6565Follow these steps to get MSYS working with Visual Studio: 
    6666 
    67 http://arrozcru.no-ip.org/ffmpeg_wiki/tiki-index.php?page=Fixing+msys 
     67http://ffmpeg.arrozcru.com/ffmpeg_wiki/tiki-index.php?page=Fixing+msys 
    6868 
    6969From the same download page, download the following packages: 
    7070 
    7171  From the MinGW Runtime section: 
    72       mingw-runtime-3.14.tar.gz 
     72      mingwrt-3.15-mingw32-dev.tar.gz 
    7373 
    7474  From the GNU Binutils section: 
     
    7676 
    7777  From the MinGW API for MS-Windows section: 
    78       w32api-3.11.tar.gz 
     78      w32api-3.11.tar.gz (because of http://archives.free.net.ph/message/20080910.160811.a4295713.en.html, not using 3.12 yet) 
    7979 
    8080  From the GCC Version 4 / Technology Preview: gcc-4.2.1-sjlj-2 section: 
     
    9090  gcc-sjlj.exe to gcc.exe 
    9191 
     92Make sure you have C:\msys\mingw\lib\crt2.o (comes from MinGW Runtime section) 
     93 
    9294Follow these instructions to make mingw work with msys: 
    9395 
    94 http://arrozcru.no-ip.org/ffmpeg_wiki/tiki-index.php?page=Integrating+MinGW+with+MSys 
     96http://ffmpeg.arrozcru.com/ffmpeg_wiki/tiki-index.php?page=Integrating+MinGW+with+MSys 
    9597 
    9698You probably already have an SVN client, but if not, you can grab the 
     
    137139 
    138140Place the SDK here: 
    139   UPLOADR/MacUploadr.app/Contents/Resources/gecko-sdk.win 
    140  
    141 These SDKs are from the Gecko 1.8 series and so are only safe to use 
     141  UPLOADR/MacUploadr.app/Contents/Resources/xulrunner-sdk 
     142 
     143These SDKs are from the Gecko 1.9 series and so are only safe to use 
    142144if the XPCOM components use only frozen interfaces.  Fortunately, 
    143145Uploadr currently falls into this category. 
     
    148150 
    149151Extract that and copy glib-1.2.dll and libIDL-0.6.dll from 
    150 wintools/buildtools/windows/bin/x86/ to your gecko-sdk.win/bin/ directory. 
     152wintools/buildtools/windows/bin/x86/ to your xulrunner-sdk/sdk/bin/ directory. 
    151153 
    152154 
     
    214216and adding "&" to make all of the catches happen by reference.  The 
    215217official builds are build with 1.1.10 and will soon move to 1.1.11. 
     218build 1.2.5 builds all the CORE_* projects fine 
    216219 
    217220You can verify that enough of it built correctly by checking in the  
     
    220223 
    221224Add the path to your GraphicsMagick build's VisualMagick\lib directory 
    222 to your library path.  Add the path to VisualMagick\include to your 
    223 include path. 
     225to your library path.  Add the path to VisualMagick\include (JDE ---  
     226GraphicsMagick-1.2.5 does not have an include dir, but C:\Source\UPLOADR\GraphicsMagick-1.2.5\magick maybe) 
     227to your include path. 
    224228 
    225229The magic.mgk, modules.mgk and delegates.mgk files must be in the root of 
     
    286290--- I'm dubious that we need to install anything extra here [CAL] 
    287291--- But i need to wait until i actually get gm.dll linking 
    288 --- Additionally add in dependencies like zlib: 
     292--- Additionally add in dependencies like zlib: (got it from zlib-1.2.3-MSYS-1.0.11-1.tar.bz2 from the MSYS supplementary tool download URL) 
    289293---   http://wiki.videolan.org/Win32CompileMSYS 
    290294 
     
    300304The lastest version of FFmpeg is kinda broken on windows and needs 
    301305to be built one library at a time,. This should do the trick: 
     306 --- JDE : Note = with trunk from 09/17/08, make just works 
     307BUT 
     308had to patch MinGW as described at http://ffmpeg.arrozcru.org/wiki/index.php?title=MSys_MinGW 
     309and commented out the #include <sys/select.h> 
    302310 
    303311  $ cd libswscale && make && cd .. 
     
    325333  UPLOADR/MacUploadr.app/Contents/Resources/components/*.vcproj 
    326334 
     335Modify project properties to use your paths to GraphicsMagick and exiv2-0.17.1 
     336 
    327337The two projects will generate gm.dll and key.dll. 
    328338