Change font size
It is currently Tue Jun 18, 2013 8:22 pm

Forum rules


Image
Keep the training material related in some way to OSGrid and OpenSIM or tools that you would use externally to opensim such as image editors and database tools etc... but ultimately the material presented benefits OpenSIM and OSGrid.



Post a new topicPost a reply Page 1 of 2   [ 11 posts ]
Go to page 1, 2  Next
Author Message
 Post subject: How Do I Compile a Viewer?
PostPosted: Mon May 28, 2012 7:38 pm 
I am not a developer or programmer, so I don't know all the bits and pieces I need to have installed. Can anyone point me to a step by step how-to I can read over? All I've found so far is the one at the SL Wiki, http://wiki.secondlife.com/wiki/Viewer_2_Microsoft_Windows_Builds and what works for SL doesn't always work for OpenSim.

Here's the viewer I'm curious to compile: https://bitbucket.org/VoodooSam/voodoo-3/downloads
I'm active with both AuroraSim and OpenSim and this could be a good cross-over viewer for me


Top
  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Mon May 28, 2012 8:57 pm 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 360
Location: Australia
Hey Sarge,
I have only compiled Imprudence (various versions) so this may work for you, especially if you combine both tutorials and extract what info you need for your version.
You need quite a few dependencies, some of them listed here

CMake 2.6.2 or greater. Add CMake to your system PATH.
ActivePython 2.5 or 2.6.
Cygwin. Make sure patchutils, flex, and bison are included under "devel". DON'T add cygwin to your PATH.
Microsoft DirectX SDK November 2008. Install x86 Headers and Libs.
Windows SDK 6.1. The only required portion is Developer Tools > Windows x86 Headers and Libraries. On Windows 7 64 bit, you'll also need the 32 bit development tools (otherwise rc.exe isn't found).
Quicktime SDK 7.3 or greater. Must be installed to your Program Files directory on C:\.

Imprudence compiles most reliably on Visual Studio 2005 (the free Express edition works with a couple of extra steps)
Instructions are found here: http://wiki.kokuaviewer.org/wiki/Imprudence:Compiling/1.4/Windows

Read the instructions carefully, its all there and it works if done correctly, common problems and solutions are listed at the bottom of the page, and the folks at irc:freenode #imprudence are quite helpfull.
A suggestion, compile Imprudence first to make sure everything goes ok, you will probably have problems but they can be solved, but if you try to compile Voodoo and have issues the Imp guys may not be able to help, because the Voodoo is an aurora client. Once you have ironed out all the problems, and know Imprudence compiles properly, then try to compile Voodoo.
Good luck
Cam


Top
 Profile  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Mon May 28, 2012 10:08 pm 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 360
Location: Australia
One tip,

make sure the folder with the viewer code is not burred too deep in the directory, and that any file path names do not have any spaces in them.
this is bad
Code:
C:\Documents and Settings\Administrator\My Documents\Downloads\Code\Imprudence viewer\Imprudence-source-1.4.0-beta-1

create a folder in C drive called dev
this is good
Code:
C:\dev\Imprudence-source-1.4.0-beta-1

there is apparently a limit on the length of the file path, and spaces are always a problem.


Top
 Profile  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Tue May 29, 2012 7:30 pm 
Yes, I have all that installed.

Now what?

What files gets loaded into what applications in what order?


Top
  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Tue May 29, 2012 11:35 pm 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 360
Location: Australia
Sarge,
I will help you as much as I can but I hesitate to write a full tutorial because there are quite a few variables.

I will assume that you are compiling Imprudence 1.4.0-beta-1 on Visual C++ 2005 Express Edition,

If you havent already done so, Configure VC++ Express by going to Tools > Options > Projects and Solutions > VC++ Directories and adding the following paths to the top of the matching list (upper right dropdown). The ones listed here are default installations; use your local versions:

Executable files:
C:\Program Files\CMake 2.6\bin
C:\Python26
C:\cygwin\bin (add this to the bottom of the list!)
Include files:
C:\Program Files\Microsoft DirectX SDK (November 2008)\Include
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
Library files:
C:\Program Files\Microsoft DirectX SDK (November 2008)\Lib\x86
C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib
..........................................................

Create the build file:
Open up Visual Studio 2005 Command Prompt and type:
Code:
cd C:\dev\Imprudence-source-1.4.0-beta-1\linden\indra
python develop.py -G VC80 configure -DPACKAGE:BOOL=ON

This will generate the build files in a folder called build-vc80 in the linden/indra folder.
CMake will die when it gets to VStool. Don't worry, this is expected due to differences between the regular and Express version. your solution file has already been created.

After develop.py has completed, from within VCE2005, go to File...Open...Project/Solution and navigate to Linden/Indra/build-vc80 ... and select Imprudence.sln, the project should open in Studio, and populate the directory/explorer.
The default StartUp Project should be "imprudence-bin" (you can tell because it's bold). If not, make it so by right clicking "imprudence-bin" and selecting "Set As StartUp Project".

Right click imprudence-bin again and select properties. Under Configuration Properties > Debugging, set the Working Directory to "..\build-vc80\newview"

There will be three build options: Release, Debug, and RelWithDebInfo. They recommend building Release.

This will take some time, in some cases hours the first time, (have some lunch, go for a walk) watch the results output, you will know when it is finished.
Most of the time there will be warnings, but that doesnt matter unless it generates errors.
If there were no errors then a Package containing the Imprudence.exe and Imprudence_setup.exe will be created in \linden\indra\build-vc80\newview\release.
The .exe should run from there, and the setup.exe can be distributed.
If there were errors, then we take it on from there, I have had and solved issues with Boost and "application configuration is incorrect".

Please post back when you get to this stage and let us know how it went.
(sorry if I have left out any steps, this is not a complete guide, I accept no responsibility if your machine begins to delete the contents of your refrigerator, or anything else.)
Regards
Cam


Top
 Profile  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Wed May 30, 2012 9:42 am 
Cam Chevalier wrote:
Sarge,
I will help you as much as I can but I hesitate to write a full tutorial because there are quite a few variables.

I will assume that you are compiling Imprudence 1.4.0-beta-1 on Visual C++ 2005 Express Edition,

If you havent already done so, Configure VC++ Express by going to Tools > Options > Projects and Solutions > VC++ Directories and adding the following paths to the top of the matching list (upper right dropdown). The ones listed here are default installations; use your local versions:

Executable files:
C:\Program Files\CMake 2.6\bin
C:\Python26
C:\cygwin\bin (add this to the bottom of the list!)
Include files:
C:\Program Files\Microsoft DirectX SDK (November 2008)\Include
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
Library files:
C:\Program Files\Microsoft DirectX SDK (November 2008)\Lib\x86
C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib
..........................................................

Create the build file:
Open up Visual Studio 2005 Command Prompt and type:
Code:
cd C:\dev\Imprudence-source-1.4.0-beta-1\linden\indra
python develop.py -G VC80 configure -DPACKAGE:BOOL=ON

This will generate the build files in a folder called build-vc80 in the linden/indra folder.
CMake will die when it gets to VStool. Don't worry, this is expected due to differences between the regular and Express version. your solution file has already been created.

After develop.py has completed, from within VCE2005, go to File...Open...Project/Solution and navigate to Linden/Indra/build-vc80 ... and select Imprudence.sln, the project should open in Studio, and populate the directory/explorer.
The default StartUp Project should be "imprudence-bin" (you can tell because it's bold). If not, make it so by right clicking "imprudence-bin" and selecting "Set As StartUp Project".

Right click imprudence-bin again and select properties. Under Configuration Properties > Debugging, set the Working Directory to "..\build-vc80\newview"

There will be three build options: Release, Debug, and RelWithDebInfo. They recommend building Release.

This will take some time, in some cases hours the first time, (have some lunch, go for a walk) watch the results output, you will know when it is finished.
Most of the time there will be warnings, but that doesnt matter unless it generates errors.
If there were no errors then a Package containing the Imprudence.exe and Imprudence_setup.exe will be created in \linden\indra\build-vc80\newview\release.
The .exe should run from there, and the setup.exe can be distributed.
If there were errors, then we take it on from there, I have had and solved issues with Boost and "application configuration is incorrect".

Please post back when you get to this stage and let us know how it went.
(sorry if I have left out any steps, this is not a complete guide, I accept no responsibility if your machine begins to delete the contents of your refrigerator, or anything else.)
Regards
Cam

Thank you very much, Cam, that is pretty much what I was looking for. :D I'm on my morning coffee, but will give this a go later today and will post back.

I'm using C++ Visual Express 2010, but I am confident of making whatever minor changes are necessary. I have everything installed as listed from the SL wiki page, except the Windows SDK for Win7. And I'm not going to worry about it, given what you've listed.

Sarge


Top
  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Thu May 31, 2012 5:01 am 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 360
Location: Australia
If you are going to compile on VS2010 then a whole different approach is required, look at this under "Compiling Imprudence "
http://wiki.kokuaviewer.org/wiki/Imprudence:Compiling/1.4/Windows recommends building with VS2005 or VS2008 and has this listed for VS2010

Quote:
Visual Studio 2010
Currently under development! See Nicky Perian's repo on GitHub.
For build instructions; See Nicky Perian's User Page

which getting Nicky's source from github and following these instructions
http://wiki.kokuaviewer.org/wiki/User:N ... structions


Top
 Profile  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Mon Jun 04, 2012 9:27 pm 
extremely frustrated due to the fact that the posted instructions assume a certain level of knowledge. instructions say to load the project but nothing about where to find or file extension(s) and so on

I will either figure this out or I will discover the flight characteristics of a PC from the 2nd floor


Top
  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Tue Jun 05, 2012 2:15 am 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 360
Location: Australia
Unfortunately there is not enough time for your computer to reach terminal velocity from the second floor.

Please be aware that compiling on VS2010 is very experimental, and that you have to download a special source code, and that Nicky Perian is one of the few people (that I know of) who will be able to help.

Although Nicky is very knowledgeable and also very helpful if you can contact him, you are effectively limiting your sources of support by using VS2010.

I recommend that you download a free version of VS2005 Express for C++ and cut your teeth on that, there is plenty of help in the Imprudence forums, and on the #Imprudence IRC channel, and I have done it a few times so I can offer some help.

Please be specific when asking for help, I went thru the same frustration the first time, it's true a certain level of knowledge is required when compiling the viewer because it is quite a complex application, and probably shouldnt be attempted by a novice, but if you have some experience then I say go for it.

The solution file has extension .sln the file you're looking for is "Imprudence.sln" and if you were compiling in VS2005 then it will be found in Linden/Indra/build-vc80, if you have 2 versions of Visual studio installed, then it will automatically load in the latest one if you double click it, to workaround this, open VS2005 and open project from within VS2005.

If you continue to use VS2010 then I am sorry but I will not be able to offer much help.


Top
 Profile  
 
 Post subject: Re: How Do I Compile a Viewer?
PostPosted: Tue Jun 05, 2012 10:40 am 
Thanks :-)

I'm not actually a novice but my skills date back to QBasic. And I'm still as curious and self-learning as ever, which is why I am pursuing this.

I'll get the 2005 version soon and will pick things up from there


Top
  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 2   [ 11 posts ]
Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net