How to get the newest Irrlicht Version from SVN?

A forum to store posts deemed exceptionally wise and useful
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

How to get the newest Irrlicht Version from SVN?

Post by Halan »

Can someone explain me that?

ive no experiences with SVN and dont really know where to start...
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

1. grab svn for your OS here:
http://subversion.tigris.org/
2. Make sure paths are set properly to run SVN anywhere in your system from a command or a shell window (in case you got linux).
3. Open a command line (run CMD in windows or open a shell in linux), CD (change directory) to where you want the checkout to be placed. UPDATE: if you're using Codeblocks as IDE, it expects irrlicht to be in C:\irrlicht in windows, in Linux simply checkout to /home/youraccount/irrlicht.
4.To checkout the trunk version Type:

Code: Select all

svn co https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk irrlicht 
5.Wait for it to download
6.Compile and be happy
7.Buy milk, cookies, bread, oh no! that's my market shopping list :wink:

IMPORTANT EDIT:
To get a specific branch (i.e. 1.6) , try this instead:

Code: Select all

svn co https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/branches/releases/1.6 irrlicht
Last edited by afecelis on Mon Nov 02, 2009 4:20 am, edited 10 times in total.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

thanks everything works fine

but you should hurry stores close soon :lol:
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

hehehe, It's only 11:30 am here so I think I'll buy them in the afternoon. Right now the sun is impossible! :wink:
dawasw
Posts: 357
Joined: Tue Aug 10, 2004 4:39 pm
Location: Poland

Post by dawasw »

Do you know a shop where I can buy a Weasel ?
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

dawasw wrote:Do you know a shop where I can buy a Weasel ?
the donut shop has a box of a dozen of them
The Bard sRc

Blog | Twitter
dawasw
Posts: 357
Joined: Tue Aug 10, 2004 4:39 pm
Location: Poland

Post by dawasw »

Omg thats great I'll have to visit Salt Lake in future.
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

dawasw wrote:Omg thats great I'll have to visit Salt Lake in future.
not the donut shop here, that donut shop's in Albuquerque;)
The Bard sRc

Blog | Twitter
dawasw
Posts: 357
Joined: Tue Aug 10, 2004 4:39 pm
Location: Poland

Post by dawasw »

Oh its a song =]

Too bad they don't make donuts in shape of Weasels that would be cool =]

But actually I asked where I can buy a real one animal :P
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Providing patch files with SVN

Post by hybrid »

If you want to provide new features or bug fixes for Irrlicht it's best to do those changes against the latest SVN code. To do this implement and test them based on the SVN code. Don't forget to update the SVN on a regularly basis.
Finally, make a SVN-Diff which generates the patch file to be used by others (and also the developers team to integrate them into the core, if applicable). If your SVN GUI does not support such a method (or you don't use a GUI at all) you can issue 'svn diff >newfile.patch' from the command line, probably best from the source directory. And please choose a useful name instead of newfile :wink:
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

Found this site while googling:

http://ftp.ncnu.edu.tw/MsDownload/directx/

It contains all the directx SDKs from v5 to latest. The one of interest is of course dx8 sdk if you don't have a copy anywhere (it's needed to build the irrlicht).
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post by sgt_pinky »

Great find Lug. Thanks.
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
lug
Posts: 79
Joined: Tue May 02, 2006 5:15 am
Contact:

Post by lug »

sgt_pinky wrote:Great find Lug. Thanks.
It looks like the site is down for me. But to get the build to compile past the dx8 stuff (note this is using the "source/Irrlicht/Irrlicht8.0.sln" build with VS2005 with irrlicht SVN revision 276):

1. add in the include path to your directx 9 sdk (I have the october 2006) to the project properties's c/c++->general->additional include directories.

2. add in the library path to directx 9 sdk from number one to the project properties's Linker->General->additional library directories.

3. copy the following 8 files from the "DX81SDK_FULL.exe" (there's no need to install the 8.1 SDK; this is a zip archive so look for the "DXSDK\include" folder inside the archive) to the directx 9 sdk include folder:

d3dx8mesh.h
d3dx8.h
d3dx8tex.h
d3dx8shape.h
d3dx8math.h
d3dx8math.inl
d3dx8effect.h
d3dx8core.h

4. copy the following file from the "DX81SDK_FULL.exe" (look for the "DXSDK\lib" folder inside the archive) to the directx 9 sdk lib folder (lib/x86):

d3dx8.lib

5. remove "SColor.cpp" from the solution explorer (irrlicht->gui impl).

6. now build and it should get past the dx8 errors and build the irrlicht.lib file.

Update:

Hmmm...well, if I build for debug I get the following linker error:

fatal error LNK1104: cannot open file '..\obj\IrrDebug\SColor.obj'

If I build for release, I get the following error:

fatal error C1083: Cannot open source file: '.\SColor.cpp': No such file or directory

why is that I wonder?

Update #2:

Nevermind, looks like it's a known issue (page 8, look at sio2's post):

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=13869

Update #3:

Fixed the post to reflect new info from hybrid (thanks!).

Update #4:

How to build irrlicht .net SVN (rev 276 -- I was successful after many hours researching the forum) with VS 2005:

1. add "msvcmrt.lib" to "Linker->Input->Additional Dependencies" in your project property.

2. perform a search and replace on project for "[Paramflag::Out]" and replace with "[Out]". This should touch the following files (14 places total):

\source\Irrlicht.NET\ISceneCollisionManager.cpp (4 places)
\source\Irrlicht.NET\ISceneCollisionManager.h (4 places)
\source\Irrlicht.NET\Line3D.h (1 places)
\source\Irrlicht.NET\Plane3D.h (5 places)

3. change the following line in "\source\Irrlicht.NET\Irrlicht.NET.cpp":

bool IrrlichtDevice::NativeEventReceiver::OnEvent(irr::SEvent e)

to

bool IrrlichtDevice::NativeEventReceiver::OnEvent(const irr::SEvent &e)

4. change the following line in "\source\Irrlicht.NET\Irrlicht.NET.h":

bool OnEvent(irr::SEvent e);

to

bool OnEvent(const irr::SEvent &e);

5. perform the following changes to "include\ICameraSceneNode.h":

a. add "#include "SViewFrustrum.h".
b. comment out "struct SViewFrustrum".

6. create a folder called "debug" in the "\source" folder.

7. copy over "Irrlicht.lib" from "lib\Win32-visualstudio" (you should have this built already if you follow the non-.net SVN build steps at the top of this post) to the folder created in step 6.

For some reason, the default irrlicht .net is not looking in it's "\source\Irrlicht.NET\Debug" folder but instead looks for "Irrlicht.lib" in the "\source\debug" level. That's why steps 6 and 7 are needed.

8. build and you should have a SVN .NET version of Irrlicht without any errors.

Update #5:

I've packed everything and uploaded to rapidshare so that anyone can take a look at the settings and so forth in the solution/project files if the above instructions weren't clear.

I've removed all the svn/obj/intermediate files to reduce the file size (32 MB to 14 MB) of the archive. I did not build any of the example files. I did build release and debug versions of the .NET and non-.NET win32 .dlls (built using DX8.1 SDK and DX9 August 2006 SDK).

This does not contain any other library builds except for WIN32 (no gcc). All the source files are there. Again, this is not supported and not an official build. Use at your own risk.

Download from the link below:

<<see update 7>>

Update #6:

Sorry, the above link doesn't work. I'll see if I can find another place to upload. :(

Update #7:

Okay, new download link (removed some left over obj files so now it's 10 MB instead of 14 MB):

http://www.megaupload.com/?d=WYYQCV93
Last edited by lug on Fri Nov 03, 2006 8:37 pm, edited 6 times in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

But now it's the otherway round: Remove SColor.cpp from project files, it's gone again.
3ddev
Posts: 169
Joined: Tue Sep 19, 2006 6:51 am
Contact:

FPT url, HTTP transfer protocol??? Make sure you post the...

Post by 3ddev »

lug wrote:Found this site while googling:

http://ftp.ncnu.edu.tw/MsDownload/directx/

It contains all the directx SDKs from v5 to latest. The one of interest is of course dx8 sdk if you don't have a copy anywhere (it's needed to build the irrlicht).
Declaring a FTP url as an HTTP transfer protocol? :? Maybe this is why everyone has been getting problems trying to access this site! I tried just ftp.ncnu.edu.tw/MsDownload/directx/ and that worked! Make sure you post the urls correctly next time! :wink:
Post Reply