Compiling Ember from source¶
- Compiling Ember from source
- Requirements
- Preparation
- Downloading EMM Source Code from GoogleCode
- Compile the source code with VB Express
Requirements¶
Microsoft .NET Framework 3.5 (http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en)
TortoiseSVN (http://tortoisesvn.net/downloads)
Microsoft Visual Basic/Express (http://www.microsoft.com/express/Downloads/#2008-Visual-Basic)
Preparation¶
1. Download and install each above listed tool.
Downloading EMM Source Code from GoogleCode¶
1. Create a folder anywhere you wish on your PC and name it Ember Media Manager Source
2. Right click on "Ember Media Manager Source" folder you just created and click on SVN Checkout
This will open TortoiseSVN which you will use to download the source code from GoogleCode (SVN)
3. Copy and paste the following URL into "URL of repository box" field: http://embermediamanager.googlecode.com/svn/
Leave everything else default.
4. Hit OK, then the source code will be downloaded
Once the download finished you should see the source revision is at xxxx on the bottom line of the window.
That's it! You have the source now, let's compile it.
Compile the source code with VB Express¶
1. Open up "Ember Media Manager Source" folder you just checked out.
2. Open the "Ember Media Manager.sln" file with VB Express
You will get a notification here, that the free VB Express doesn't support solution folders. This is not a problem, you can still compile Ember without this. Just click on OK.
3. Go to "Build" menu and choose "Configuration Manager"
4. Change "Active Solution Configuration" to "Release" and "Active Solution Platform" accordingly to the platform you use
Then click on "Close".
Optional: Shortcut for Steps 5 and 6
Copy the following code and save it as name.bat (name it whatever you want) in your "Ember Media Manager Source" directory
Run the .bat file by double-clicking it, select your build platform, and it will copy everything for you.
Once finished, skip to Step 7 in this guide.
*Note* The path to your "Ember Media Manager Source" directory can be optionally changed by editing "SET svnroot=" (line 8) to your choice
::This copies all of the files necessary to build EMM with VS Basic Express according to ::http://www.embermm.com/projects/embermm/wiki/Compiling_Ember_from_Source @ECHO off cls ECHO Prep for EMM Build ECHO Place this file in the root of the EMM source code ECHO (same folder as file "Ember Media Manager - ALL.sln") SET svnroot=%CD% ECHO Working Directory is %svnroot% :start ECHO. ECHO 1. x86 Build ECHO 2. x64 Build ECHO. SET choice= SET /p choice=Enter selection: if not '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='1' GOTO x86 if '%choice%'=='2' GOTO x64 ECHO "%choice%" is not valid please try again ECHO. GOTO start :x64 ECHO. ECHO x64 Build Prep... ECHO. XCOPY "%svnroot%\Release Files\Langs" "%svnroot%\Build\x64\Release\Langs\" /E /Y XCOPY "%svnroot%\Release Files\Images" "%svnroot%\Build\x64\Release\Images\" /E /Y XCOPY "%svnroot%\Release Files\Themes" "%svnroot%\Build\x64\Release\Themes\" /E /Y XCOPY "%svnroot%\Release Files\x64" "%svnroot%\Build\x64\Release\" /E /Y XCOPY "%svnroot%\Build\x64\Release\ICSharpCode.SharpZipLib.dll" "%svnroot%\Build\x64\Release\Modules" /Y GOTO END :x86 ECHO. ECHO x86 Build Pre... ECHO. XCOPY "%svnroot%\Release Files\Langs" "%svnroot%\Build\x86\Release\Langs\" /E /Y XCOPY "%svnroot%\Release Files\Images" "%svnroot%\Build\x86\Release\Images\" /E /Y XCOPY "%svnroot%\Release Files\Themes" "%svnroot%\Build\x86\Release\Themes\" /E /Y XCOPY "%svnroot%\Release Files\x86" "%svnroot%\Build\x86\Release\" /E /Y XCOPY "%svnroot%\Build\x86\Release\ICSharpCode.SharpZipLib.dll" "%svnroot%\Build\x86\Release\Modules" /Y GOTO END :END XCOPY "%svnroot%\trunk\SubWCRev64.exe" "%svnroot%" /Y XCOPY "%svnroot%\trunk\SubWCRev.exe" "%svnroot%" /Y pause
5. Now switch back into Windows Explorer and open "Release Files"
From here copy the Images, Langs and Themes folder to "Ember Media Manager Source/Ember Media Manager/bin/x86/Release" folder
6. From the same above "Release Files" folder you have to copy over also the full content of the "x86" or "x64" (accordingly to the platfor you use) folder (ICSharpCode.SharpZipLib.dll; System.Data.SQLite.dll files along with the Bin folder) to the same "Ember Media Manager Source/Ember Media Manager/bin/x86/Release" above.
After copying everything, that folder should look like this:
Now you have to copy the "ICSharpCode.SharpZipLib.dll" into the "Modules" folder as well.
7. Switch back to VB Express
Click on "Build" menu, then on "Build Solution".
VB Express then compile Ember from source. If you did everything correctly, then you should see a "Build Succeeded" message in the bottem left corner:
You may receive a bunch of errors related to SetupManager, but you can disregard those. If you got the "Build Succeeded", you are fine.
8. Now you can find your bleeding edge version of Ember Media Manager in either "Ember Media Manager Source/Build/x86/Release" or "Ember Media Manager Source/Build/x64/Release" according to your platform.
Just copy over the the folder to anywhere (You can use it from here as well of course) and you are ready to start Ember.