PDA

View Full Version : Building Jive for Windows on VC++ Express



Triode
2007-05-05, 04:55
Quick note to say that Jive can be built using the free microsoft build tools for windows. I've put togther a brief wiki on this:

http://wiki.slimdevices.com/index.cgi?BuildingJiveOnVCExpress

Note it does take a reasonable time to download the SDKs.

Paul_B
2007-05-05, 05:09
Does a pre-compiled version exist? From what I have read during th last week it will only work against SS 7.0?

mherger
2007-05-05, 05:15
> Does a pre-compiled version exist?

Not yet, but it is planned.

> From what I have read during th last
> week it will only work against SS 7.0?

Correct. It's using a new interface which does not exist in 6.5.2.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

Paul_B
2007-05-05, 08:42
Thanks for the clarification Michael

sbjaerum
2007-05-08, 12:29
Quick note to say that Jive can be built using the free microsoft build tools for windows. I've put togther a brief wiki on this:

http://wiki.slimdevices.com/index.cgi?BuildingJiveOnVCExpress

Note it does take a reasonable time to download the SDKs.

I followed the instructions on the wiki and was successful in building the debug version. In order to build the release version, I had to do the following changes to luaprofiler.vcproj:

Index: jive/src/pkg/luaprofiler-2.0/VisualC/luaprofiler.vcproj
================================================== =================
--- jive/src/pkg/luaprofiler-2.0/VisualC/luaprofiler.vcproj (revision 36)
+++ jive/src/pkg/luaprofiler-2.0/VisualC/luaprofiler.vcproj (working copy)
@@ -81,8 +81,9 @@
</Configuration>
<Configuration
Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
- ConfigurationType="1"
+ ConfigurationType="2"
>
<Tool
Name="VCPreBuildEventTool"
@@ -101,6 +102,9 @@
/>
<Tool
Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=".;&quot;..\..\lua-5.1.1\src&quot;"
+ PreprocessorDefinitions="WIN32;;LUAPROFILER_API=__declspec(dllexport);_DEBU G;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_N O_DEPRECATE"
+ RuntimeLibrary="2"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -113,6 +117,7 @@
/>
<Tool
Name="VCLinkerTool"
+ OutputFile="$(OutDir)\profiler.dll"
/>
<Tool
Name="VCALinkTool"

rtitmuss
2007-05-08, 13:06
I had to do the following changes to luaprofiler.vcproj:

Could you post the patch as an attachment, I am having some trouble applying it when copying it from the post.

Thanks,
Richard

sbjaerum
2007-05-08, 13:42
Could you post the patch as an attachment, I am having some trouble applying it when copying it from the post.

Thanks,
Richard

Here it comes.

sbjaerum
2007-05-09, 10:46
I put together a simple bat file that does the required file copying on Windows. It should be run from the jive\src\pkg directory.

Ross L
2007-06-07, 17:20
Maybe theres a step missing from:

http://wiki.slimdevices.com/index.cgi?BuildingJiveOnVCExpress

Where do you acquire Jive.sln?

dean
2007-06-08, 11:06
src/pkg/Jive.sln


On Jun 7, 2007, at 5:20 PM, Ross L wrote:

>
> Maybe theres a step missing from:
>
> http://wiki.slimdevices.com/index.cgi?BuildingJiveOnVCExpress
>
> Where do you acquire Jive.sln?
>
>
> --
> Ross L
>
> Ross Levine - Slim Devices Quality Assurance
> ----------------------------------------------------------------------
> --
> Ross L's Profile: http://forums.slimdevices.com/member.php?userid=4416
> View this thread: http://forums.slimdevices.com/showthread.php?t=35017
>
>

Patros
2007-09-18, 11:44
Is anyone actively developing jive under Visual C++ express? Doesn't look like the .sln file has been updated in quite some time.

rtitmuss
2007-09-18, 12:49
Not actively as far as I know, but I do test Jive compiles ok occasionally. That said I made a change last week that I think will break building on Visual C.

The unix build now automatically generates jive/src/version.h, for example:

/* This file is automatically generated */
#define JIVE_VERSION "1 r486M"

The "1" comes from the jive.version file in the pkg folder, and the "r486M" is the SVN revision number from "svnversion". I am not sure that the equivalent SVN command is for Windows, but we'll need to work that out.

Cheers,
Richard

Patros
2007-09-18, 13:09
Yes, the version.h is one error. I'm also getting a link error in lfs on Microsoft.obj (doesn't seem to be in the psdk or directX sdk), an include error in luaprofiler on lua.h and a bunch of errors on the Version.rc files in SDL_image and _ttf.

If there aren't any active windows developers, it probably makes more sense to scrounge up an unbuntu machine to work on.

Thanks,

Pat

dean
2007-09-18, 13:18
We do want to keep the Windows version working, so feedback about
what's broken and any patches would be most welcome.

The long-term plan is to replace SoftSqueeze with a Jive-based player/
controller and have that available for all our supported platforms,
including windows.

-dean

On Sep 18, 2007, at 1:09 PM, Patros wrote:

>
> Yes, the version.h is one error. I'm also getting a link error in
> lfs on
> Microsoft.obj (doesn't seem to be in the psdk or directX sdk), an
> include error in luaprofiler on lua.h and a bunch of errors on the
> Version.rc files in SDL_image and _ttf.
>
> If there aren't any active windows developers, it probably makes more
> sense to scrounge up an unbuntu machine to work on.
>
> Thanks,
>
> Pat
>
>
> --
> Patros
> ----------------------------------------------------------------------
> --
> Patros's Profile: http://forums.slimdevices.com/member.php?
> userid=13219
> View this thread: http://forums.slimdevices.com/showthread.php?t=35017
>
>

rtitmuss
2007-09-18, 13:23
Hmm, ok it was working a couple of weeks ago. It would help to have a first volunteer to be an active windows developer ;).

I have just checked in a work around for the version.h file. Jive now compiles and runs fine for me in Visual Studio 2005. If your still having problems compiling it must be due to VC++ Express.

kdf
2007-09-18, 14:14
Hmm, ok it was working a couple of weeks ago. It would help to have a first volunteer to be an active windows developer ;).


as active as I have been with jive on other oses, all I need is VC and I'd be happy build on windows as well. :)

-kdf

Triode
2007-09-18, 14:52
Debug version just built for me on VC++ Express. I did have problems with the release target before, so suspect the changes earlier on in this thread may be needed.

Edit: Confirmed - release version has probles with luaprofiler, but otherwise builds - so the patch above probably fixes it, but I've not tried.

Patros
2007-09-19, 08:55
Yup, all seems to be working now. Thanks

kdf
2007-09-20, 21:44
VC Express didn't seem to be able to find ddraw.h, until I added this for the includes:
C:\Program Files\Microsoft DirectX SDK (April 2007)\Include

After that, failure to find dxdiag.lib, which is solved by adding the following to libraries:
C:\Program Files\Microsoft DirectX SDK (April 2007)\Lib\x86

this allowed the debug build to work. for a release build, I had to use the profile patch given previously, with one additonal change:

OutputDirectory="$(SolutionDir)$(ConfigurationName )"

is actually:
OutputDirectory="$(SolutionDir)$(ConfigurationName)"

The extra space was causing a undefined variable error. It now reports success, but there is no jive.exe in the release folder. Only the support files.

-kdf