Trouble with the CVS.

SIberwulf

17-10-2005 02:23:11

I figured I had to be doing something stupid before, becuase I still can't get the dang OgreNet solution to compile without some shenanigans.

I'm documenting each stage of the process, as I go through it.

Assumptions:

I've installed SWIG. and have set the SWIG_HOME to the correct path.



Procedures:

1. Open the OgreDotNet.sln file in VS 2003. I hit *build solution*. I received a bunch of errors regarding OgreDotNet or one of its dependent assemblies not found.

2. I closed the solution and then reopened it. When I built, I didn't have that problem as listed in step 1. However, I did have this, when I tried to build the OgreNet project:

error CS1504: Source file <Edit>\OgreNet\SWIGTYPE_p_Ogre__OverlayContainer.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\OgreNet\SWIGTYPE_p_std__ios__fmtflags.cs' could not be opened ('The system cannot find the file specified. ')


3. I then excluded the two files listed above and rebuilt. The rebuild of the single OgreNet project was successful.

4. Rebuilt the OgreBindings, OgreBindings_Cegui projects to generate all the .cs files.

5. Tried to build the CeguiNet project. Received the following Errors:

error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_argb_t.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_CEGUI__EventArgs.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_ClickedFunctionPointer.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_colour.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_ColourRect.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_ConstBaseIteratorTstd__mapTString_Image_t_t.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Event__Connection.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Event__Group.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Event__Subscriber.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Font.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_FrameLocation.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_ItemEntry.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_ListboxItem.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_ListHeaderSegment.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_ListHeaderSegment__SortDirection.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_MouseCursor.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_MouseCursorImage.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Point.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Rect.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_RenderableImage.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Scheme.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_ScriptModule.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Size.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_TabPane.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_TextFormatting.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Texture.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Vector2.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_Window.cs' could not be opened ('The system cannot find the file specified. ')
error CS1504: Source file '<Edit>\CeguiNet\SWIGTYPE_p_XMLParser.cs' could not be opened ('The system cannot find the file specified. ')


6. I kinda gave up on building my own Ogrenet now. It probably wouldn't be a great idea to build after removing all those files from the project and ghetto build it. Know it'll cause issues later.

I'll continue on the next post.

SIberwulf

17-10-2005 02:59:10

7. So I decided to download the prebuilt binaries from the link provided in the sticky above. I extracted all 7 files from the zip into my SDK\bin\Debug folder.

8. I created a new project in a separate folder on my drive.

9. I added the three DLLs: CeguiDotNet.dll, OgreDotNet.dll, and OgreDotNet.Cegui.dll to my refrences.

10. Added my imports:

Imports OgreDotNet
Imports OgreDotNet.Cegui
Imports CeguiDotNet

11. I created a Custome class derived from Example Class

Private Class TestExample
Inherits ExampleApplication

Protected Overrides Sub CreateScene()

End Sub
End Class


12. I instantiated my class and called the Start Method:

Dim oExampleApp As New TestExample

oExampleApp.Start()


13. I then started the project in Debug mode and received the following:




Really, I think I am doing everything according to the Wiki, and it doesn't appear to be working? Is there some step I missed, some wiki I didn't read? I really would love to use Ogre and the Ogrenet wrapper, but not if I can't get it to even start the example application.

Thanks to all who read this and extra thanks to any who respond and offer help (or even a "me too!" post)

Tempest

17-10-2005 03:44:48

Hey, me too!

Sry, you asked for it. :wink:

EagleEye

17-10-2005 05:16:14

If you ever see a "file could not be found" type of error when compiling, especially for the "SWIGTYPE" files, just remove them from the projects.

The SWIGTYPE files are basically unwrapped portions of Ogre, and as they become wrapped, new files are generated, and the SWIGTYPE files are no longer necessary. Sometimes Maleficus doesn't remove the SWIGTYPE files after they've been wrapped, so they stay in the project.

Also remember that you have to build/compile the BINDINGS projects FIRST. I always recommend right clicking on the bindings files and selecting "compile". There are 3 of these files, one in each of the bindings projects.

OgreBindings.i
OgreBindings_Cegui.i
CeguiBindings.i

By compiling these .i files (These are the ones that require the SWIG_HOME variable, and execute that external compiler) you create the necessary .cs files to compile the rest of the project. These .cs files are not included in the CVS, because they're built from the .i files by you.

This is why those .cs file references show as the files not being found until you reload the solution. They're not there when the solution was opened previous to compiling the .i files, and the solution explorer doesn't refresh, so reloading the solution helps to find the ones that are still not there after compiling the .i files.

All I do is, after compiling the .i files and reloading the .sln, I go through and remove ANY file that still has a yellow/black exclaimation point next to it.

After that, you should be able to compile the rest of it successfully.

SIberwulf

17-10-2005 05:24:19

That makes sense.

However, I get the dll error after I download the precompiled Ogrenet wrappers. What can I do to troubleshoot that?

d3th_n1gG4

17-10-2005 05:43:25

System.Dll is one of the core dll files, the one normally used to run a console, very strange.

Ogredot net requires all the dependancies etc of ogre, so theeasiest way for you to test your executable is to output your bunary into the ogresdk\bin\debug directory & run it from there. That way it can find all the ogre requirements.

Other than that I have no idea why the system is throwing that error :?

Tempest

17-10-2005 06:24:57

The strange thing is that both SIberwulf and I are getting the same error -- on seperate machines. We both went home and tried to install it, and came back the next day with the same error. So that kinda rules out anything specific conflicting on one machine.

What steps did you guys take when initially installing OgreDotNet?

Thanks again to everyone. :oops:

d3th_n1gG4

17-10-2005 07:13:42

lemme think

download cvs, open the project file

build->rebuild all

close vis studio

reopen the project, remove any missing files (about 15), rebuild

Then I copy the built files and dump them into my OgreSDK/bin/debug directory & run them from there, no problems.

I know that Maleficus forgot to include some files a little while back, but that should be resolved now

if not they are mentioned here http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=29 but i really don't think this is the issue

EagleEye

17-10-2005 07:56:16


I know that Maleficus forgot to include some files a little while back, but that should be resolved now

if not they are mentioned here http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=29 but i really don't think this is the issue


Any list from before is probably invalid by now.

Seriously, things change too fast to have any real list of files to remove... just remove anything that can't be found when you reopen the solution.

SIberwulf

17-10-2005 23:43:59

ok, I have no issue with the building of the wrapper. However, i still get the can't find dll error(OgreBindings).

I've even set the output of my project to the bin folder in the SDK.


Any other ideas?

EagleEye

17-10-2005 23:53:56

Are you setting it to the bin/debug folder of the SDK? You should be using the Ogre Debug versions.

SIberwulf

18-10-2005 04:37:08

Yeah, the bin/debug folder. Sorry.

SIberwulf

18-10-2005 22:02:48

Would it matter if I was using the SDK from 1.0.5 instead of 1.0.4?

I'm using 1.0.5

EagleEye

18-10-2005 22:37:15

Ohhh yes, that matters. :)

Even says so in the Wiki...

SIberwulf

18-10-2005 23:12:50

Ah, i had figured that was a typo, and since there was no download for the 1.0.4 sdk, i kinda just...ah, hell.

Where can I snag the 1.0.4 sdk?

d3th_n1gG4

19-10-2005 04:05:05

try here

http://prdownloads.sourceforge.net/ogre ... e?download

EagleEye

19-10-2005 05:41:56

They're not keeping it available?

I'd check the Ogre project pages on sourceforge.

EagleEye

19-10-2005 05:43:05

Here ya go!

SIberwulf

19-10-2005 13:51:28

Finally! I got it to work, after a complete wipe and reinstall of everything.

A couple things I noticed...

I only got a blue screen. Is that normal?

I also saw a huge "Memory Leak" file. It was like 476kb. Is that normal too?

I'm thankful to all you guys helping out, and want to go forward as fast as possible!

Thanks again

EagleEye

20-10-2005 19:12:47

Finally! I got it to work, after a complete wipe and reinstall of everything.

A couple things I noticed...

I only got a blue screen. Is that normal?

I also saw a huge "Memory Leak" file. It was like 476kb. Is that normal too?

I'm thankful to all you guys helping out, and want to go forward as fast as possible!

Thanks again


If you don't have any terrain or a skybox loaded, you'll likely just get a blue background screen.

The memory leaks are from not destroying things when you close the program, or as the program is in use. Watch that file while running to see if it's getting bigger to determine if a leak is happening while rendering... if it suddenly gets big when you quit the program, that's the garbage collection telling you that you haven't properly destroyed objects (like "root" and "window" etc) before terminating the program.

What I do is a Try/Catch/Finally statement. In the "finally" portion is all of my destructor statements.

SIberwulf

20-10-2005 21:09:40

That is reassuring :D

I'm gonna go home and tinker some more. I got my 3d guy to export a mesh now, so I'm gonna try to load it up and see how it goes.

Will keep you posted :D

thx again.

EagleEye

20-10-2005 21:44:44

If you want my input on what to tinker with...

Don't bother with terrain or meshes at first. Get your GUI working, etc... I have my skydome set, but other than that, there is no real 3D rendered content yet.

I've been working on my GUI windows and such... the only problem is, ListBox and ListBoxItem aren't wrapped yet... and I can't capture input from the keyboard to the GUI, because the InjectKeyCode for CEGUI isn't working either.

Here's a screen shot:

Tempest

21-10-2005 01:55:57

Sorry guys, I'm still struggling here.

I've uninstalled 1.0.5 and installed 1.0.4. I built OgreNet and copied the dll and pdb for Math3D and OgreDotNet to the OgreSDK\bin\debug and release folder.

I then created an empty project:

using OgreDotNet;
using Math3D;

namespace Ogre3D_FirstProject
{

public class OgreDotNetTest : OgreDotNet.ExampleApplication
{
public OgreDotNetTest()
{
}

protected override void CreateScene()
{
}

[STAThread]
static void Main(string[] args)
{
using(OgreDotNetTest app = new OgreDotNetTest() )
{
app.Start();
}
}
}
}


I also tried to download the prebuilt DLLs, but I get the same "Unable to load DLL (OgreBindings)" error.

:(

EagleEye

21-10-2005 05:30:10

Are you copying all of the DLLs from the bin folder of the OgreDotNet project? I made the mistake of only copying the 3 main ones, and I missed the ogrebindings ones...

thelsdj

21-10-2005 20:39:41

I think the problem is you need to manually copy all the other dlls from C:\OgreSDK\bin\debug into your projects bin\debug folder (or set the projects working directory to C:\OgreSDK\bin\debug)