MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
LinkBack Thread Tools Display Modes
Old 2006-10-19, 10:00   #1 (permalink)
Portal Member
 
Mars Warrior's Avatar
 
Join Date: Aug 2004
Location: Airy Crater, Mars
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts


Lightbulb How-to compile the Tv Server

For some reason I'm getting lots of emails regarding how to compile the Tv Server and the Tv Plugin so I guess many ppl want to test it

I compiled the SVN sources (solutions, using TV3 as the home map) in the following order (Release version):
1. TV3\TvLibrary\TvLibrary.sln
2. TV3\TVLibrary\DirectShowLib\Directshowlib.sln
3. TV3\TVLibrary\TvPlugin\TvPlugin.sln

This gives me:
1. TV3\TVLibrary\Setup\Release\Setup.exe and Setup.msi (the server part)
2. TV3\TVLibrary\TvPlugin\SetupPlugin\Release\SetupPl ugin.msi and Setup.exe

Then use the installation manual located in TV3\TVLibrary\doc to install both the server and the plugin.
Take note that the installation directory in the documentation differs from the setup. I used the installation directory as described in the manual...

I hope this helps some ppl, although I guess that within a week the nightly SVN builds will be available (just guessing, not planning ), so building this yourself will not be necessary anymore...

Have fun with it!
__________________
Earth - The Final Frontier
Mars Warrior is offline   Reply With Quote
Old 2006-10-19, 18:05   #2 (permalink)
Portal Tester
 
ASiDiE's Avatar
 
Join Date: Jan 2005
Location: USA
Age: 32
Posts: 888
Thanks: 6
Thanked 2 Times in 2 Posts

My System

Default

I have been trying to get this to work for the past week or so... (ask they guys in IRC). I did just as you said and compiled them in that order... on the last one (tvplugin.sln) VS comes up with hundreds of errors...

The type or namespace name 'MediaPortal' could not be found (are you missing a using directive or an assembly reference?) C:\MP Source\TV Engine3\TVLibrary\TvPlugin\TvPlugin\TVPriorities.c s

I know I could just wait for a couple of days.. but now that I have been trying to compile this for the past week.. I really want to DO IT! Here is what I am doing and here are my steps.

I open up the tvlibrary.sln and then go to properties.. I select release instead of debug and save. I then right click on the top where it says solution and click build. That builds just fine

I then close that one and open up directshowlib.sln. I select release and build that one. It compiles just fine.

I do the same exact steps on the third on.. and click build.. and about half wal through.. I get about 400 errors.

I have actually gotten the TV server to compile and I have installed that just fine. But for the life of me, I can't get the setup plugin to compile.

Any help on this would be great.
__________________
I SEE WHAT YOU DID THERE!
ASiDiE is offline   Reply With Quote
Old 2006-10-19, 21:11   #3 (permalink)
Portal Member
 
Mars Warrior's Avatar
 
Join Date: Aug 2004
Location: Airy Crater, Mars
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I just tried to compile everyting again using the latest SVN sources...

The TvPlugin indeed does not build anymore, but I'm not getting 400 errrors or more but only 2 errors:

1:
Error 8 'MediaPortal.GUI.Library.GUIWindow.Window' does not contain a definition for 'WINDOW_SETTINGS_TVENGINE' G:\AppData\Visual Studio Projects\Visual CSharp Projects\HTPC\TvEngine3Test\TVLibrary\TvPlugin\TvP lugin\TVHome.cs 424 63 TvPlugin

and 2:
Error 30 'MediaPortal.GUI.Library.GUIWindow.Window' does not contain a definition for 'WINDOW_SETTINGS_TVENGINE' G:\AppData\Visual Studio Projects\Visual CSharp Projects\HTPC\TvEngine3Test\TVLibrary\TvPlugin\TvP lugin\TvSetup.cs 20 32 TvPlugin

I guess frodo is working so hard to compensate his 5.000% overallocation that he forgot to check-in the modified Core.dll file (that one contains the definition in the GUIWindow.cs file: WINDOW_SETTINGS_TVENGINE=709,)...

So what you could do is getting the latest SVN version of MediaPortal, compile it and copy the Core.dll file over the one in TV3\TVLibrary\TvPlugin\TvPlugin\bin\Release !!
__________________
Earth - The Final Frontier
Mars Warrior is offline   Reply With Quote
Old 2006-10-19, 21:55   #4 (permalink)
Super Moderator
 
FlipGer's Avatar
 
Join Date: Apr 2004
Location: Leipzig, Germany
Age: 33
Posts: 2,077
Thanks: 13
Thanked 33 Times in 25 Posts

Country:

My System

Default

Hi,

ASiDiE: Latest DX SDK installed?
http://msdn.microsoft.com/directx/sdk/

Flip.
FlipGer is offline   Reply With Quote
Old 2006-10-20, 05:58   #5 (permalink)
Portal Member
 
Join Date: Oct 2006
Location: Melbourne
Age: 46
Posts: 81
Thanks: 3
Thanked 0 Times in 0 Posts

Country:

My System

Default

I had a similar issue.. Double check the references on the TVplugin make sure their pointing where the actual references are.. in particular check the CORE reference.
GagReflex is online now   Reply With Quote
Old 2006-10-20, 07:32   #6 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Also try rebuilding the solution. It is often caused however by GagReflex's description though.

Sam
samuel337 is offline   Reply With Quote
Old 2006-10-21, 15:00   #7 (permalink)
Portal Member
 
Join Date: Jul 2005
Posts: 176
Thanks: 4
Thanked 3 Times in 3 Posts


Default

Quote:
Originally Posted by ASiDiE View Post
I have been trying to get this to work for the past week or so... (ask they guys in IRC). I did just as you said and compiled them in that order... on the last one (tvplugin.sln) VS comes up with hundreds of errors...

The type or namespace name 'MediaPortal' could not be found (are you missing a using directive or an assembly reference?) C:\MP Source\TV Engine3\TVLibrary\TvPlugin\TvPlugin\TVPriorities.c s

I know I could just wait for a couple of days.. but now that I have been trying to compile this for the past week.. I really want to DO IT! Here is what I am doing and here are my steps.

I open up the tvlibrary.sln and then go to properties.. I select release instead of debug and save. I then right click on the top where it says solution and click build. That builds just fine

I then close that one and open up directshowlib.sln. I select release and build that one. It compiles just fine.

I do the same exact steps on the third on.. and click build.. and about half wal through.. I get about 400 errors.

I have actually gotten the TV server to compile and I have installed that just fine. But for the life of me, I can't get the setup plugin to compile.

Any help on this would be great.
I had the same problem, but was related to the references of the mediaportal.

Asidie, try to compile mediaportal itself first, that wil create the DLL in the right place.

Now all three are compiling without errors, still some warning (i don't know this is ok) But the real problem is, that i can not find the setups for installing the server and/or plugin??????

Does somebody know where to look?

EDIT: Nevermind! This was one of those moments you have to think before you speak. First ask google then ask others at the forum.

Last edited by j1nx; 2006-10-21 at 18:12.
j1nx is offline   Reply With Quote
Old 2006-10-24, 08:47   #8 (permalink)
Portal Member
 
midju's Avatar
 
Join Date: Aug 2006
Posts: 47
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

How did you get the setup files?
midju is offline   Reply With Quote
Old 2006-10-24, 08:57   #9 (permalink)
Portal Member
 
Mars Warrior's Avatar
 
Join Date: Aug 2004
Location: Airy Crater, Mars
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by midju View Post
How did you get the setup files?
Look at the homepage. You can download the TvServer there!!!!!!!!!!!
__________________
Earth - The Final Frontier
Mars Warrior is offline   Reply With Quote
Old 2007-04-25, 22:51   #10 (permalink)
Portal Member
 
Join Date: Jan 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Question

I am a fairly new to programming, especially C#. I have done some VB and SQL in the past but mainly developing MS Access applications. I am currently teaching myself C#.

I am trying to run the debug on the TV server, just to try and understand what goes on more. (Not that I'd understand too much anyway! ) I am using Visual Studio 2005.

I have tried following the instructions left by Mars Warrior to compile the TV server.

I have all the source code in one directory (TVE3). I have also put the media portal source code in this directory as well.

I have compiled media portal first and I can run in debug mode no problems. But I am having the same problems posted by ASiDiE when trying to compile the TVPlugin. (i.e. 567 errors when trying to compile.)

I have tried reading through the forum but so far I've not been able to solve this. (Not a good start I know! )

Would someone be kind enough to help me get started please?

Thanks
Red
__________________
DVB-C card Technotrend C1500 budget with BDA 10.4.4.17
Windows XP Pro SP2
Epox 4G4AE Motherboard
Intel P4 2.4Ghz
Intel 845G Chipset
ATI Radeon HD 2400 Pro (AGP)
1GB RAM
rede96 is offline   Reply With Quote
Reply

Bookmarks

Tags
compile, howto, server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
More Observations about the TV Server Marky Mark General Talk 0 2007-01-13 21:04
Help with TVServer and client rick78 Get Support 8 2006-12-12 18:48
SQL Server Config staigerpaip General Talk 10 2006-11-09 15:36
tv server Niclas001 Get Support 2 2006-11-05 14:03


All times are GMT +1. The time now is 10:10.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress