Compiler errors after installing Verve
by J Olde Bijvank · in Verve · 08/18/2011 (6:40 am) · 20 replies
I have installed a clean copy of "Torque 3D Pro 1.1" and would like to add "Verve for Torque 1.1.0" to my new project. I get a few errors during the compilation of the new project. Is anybody able to point me in the right direction?
What I have done is the following:
1. I have installed the two parts of Torque 3D in a folder on my desktop.
2. I have created a new project within the toolbox.
3. I have opened the new project in Visual Studio 2010 Premium.
4. I have added the three DirectX SDK directories to the VC++ Directories as http://docs.garagegames.com/torque-3d/official/content/documentation/Setup/DevEnvironment2010.html told me so.
5. I have chosen the Build Solution from the Build menu.
The build of the 17 projects succeeded (I have unloaded the IE plugin from the solution).
Now I've got a clean build and want to add Verve to this build using the following steps:
6. I have copied the Demos and Templates directory to the root of my Torque 3D installation.
7. From the Templates/Verve/source directory I have copied the Verve folder to the source directory of my project.
8. I have copied the VerveEditor and VPathEditor from Templates/Verve/game/tools to my project "/game/tools" directory.
9. I have changed the project.conf and added
addProjectDefine( 'VT_VERVE' );
addProjectDefine( 'VT_EDITOR' );
to it.
10. I have changed the projectCode.conf and added
addSrcDir( '../source/Verve', false );
addSrcDir( '../source/Verve/Core', true );
addSrcDir( '../source/Verve/Extension', true );
addSrcDir( '../source/Verve/GUI', true );
addSrcDir( '../source/Verve/Torque', true );
//addSrcDir( '../source/Verve/Torque2D', true );
addSrcDir( '../source/Verve/Torque3D', true );
//addSrcDir( '../source/Verve/TGEA', true );
addSrcDir( '../source/Verve/VActor', true );
addSrcDir( '../source/Verve/VPath', true );
to it and outcommented "addSrcDir('../source', true);"
11. I have ran the generateProjects batch file and opened the VisualStudio 2010 solution.
12. I have chosen the Build Solution from the Build menu.
Now I've got 56 compiler errors.
Many of them are saying "Cannot open include file: 'sceneGraph/sceneObject.h': No such file or directory." I've checked the engine folder from Torque 3D and it looks like the "sceneGraph" directory is now called "scene". At this moment I'm thinking I've done something wrong like having the wrong version of Verve or so.
Further on the error list there is a reference to the file "collision/polyhedron.h". I cannot find that file.
There is also a SceneObject::mMount error saying "cannot access protected member declared in class 'SceneObject'" from vpathobject.cpp
Any help would be appreciated.
Kind regards,
Joris
What I have done is the following:
1. I have installed the two parts of Torque 3D in a folder on my desktop.
2. I have created a new project within the toolbox.
3. I have opened the new project in Visual Studio 2010 Premium.
4. I have added the three DirectX SDK directories to the VC++ Directories as http://docs.garagegames.com/torque-3d/official/content/documentation/Setup/DevEnvironment2010.html told me so.
5. I have chosen the Build Solution from the Build menu.
The build of the 17 projects succeeded (I have unloaded the IE plugin from the solution).
Now I've got a clean build and want to add Verve to this build using the following steps:
6. I have copied the Demos and Templates directory to the root of my Torque 3D installation.
7. From the Templates/Verve/source directory I have copied the Verve folder to the source directory of my project.
8. I have copied the VerveEditor and VPathEditor from Templates/Verve/game/tools to my project "/game/tools" directory.
9. I have changed the project.conf and added
addProjectDefine( 'VT_VERVE' );
addProjectDefine( 'VT_EDITOR' );
to it.
10. I have changed the projectCode.conf and added
addSrcDir( '../source/Verve', false );
addSrcDir( '../source/Verve/Core', true );
addSrcDir( '../source/Verve/Extension', true );
addSrcDir( '../source/Verve/GUI', true );
addSrcDir( '../source/Verve/Torque', true );
//addSrcDir( '../source/Verve/Torque2D', true );
addSrcDir( '../source/Verve/Torque3D', true );
//addSrcDir( '../source/Verve/TGEA', true );
addSrcDir( '../source/Verve/VActor', true );
addSrcDir( '../source/Verve/VPath', true );
to it and outcommented "addSrcDir('../source', true);"
11. I have ran the generateProjects batch file and opened the VisualStudio 2010 solution.
12. I have chosen the Build Solution from the Build menu.
Now I've got 56 compiler errors.
Many of them are saying "Cannot open include file: 'sceneGraph/sceneObject.h': No such file or directory." I've checked the engine folder from Torque 3D and it looks like the "sceneGraph" directory is now called "scene". At this moment I'm thinking I've done something wrong like having the wrong version of Verve or so.
Further on the error list there is a reference to the file "collision/polyhedron.h". I cannot find that file.
There is also a SceneObject::mMount error saying "cannot access protected member declared in class 'SceneObject'" from vpathobject.cpp
Any help would be appreciated.
Kind regards,
Joris
About the author
Designer/developer of technical automation software using LabVIEW, Beckhoff PLC's and MS SQL Server at DEKRA | Designer, developer and co-owner of Ladybird Games (http://www.ladybirdgames.com) | Owner of Olde Bijvank Media (http://www.obmedia.nl)
Recent Threads
#2
Everything looked fine until I hit the Verve toolbar buttons in the world editor. If I do that Torque will crash to the desktop.
Could anybody please help me out at least a little bit?
Kind regards,
Joris
08/25/2011 (12:46 am)
If I change the sceneGraph/sceneObject.h includes to scene/sceneObject.h, delete the collision/polyhedron.h" include directive and change the mMount scope to public I'm able to build the project without errors.Everything looked fine until I hit the Verve toolbar buttons in the world editor. If I do that Torque will crash to the desktop.
Could anybody please help me out at least a little bit?
Kind regards,
Joris
#3
08/27/2011 (6:14 pm)
Hey guys, I've only tested Verve out for T3D 1.1 beta. I'll grab a fresh copy of T3D and test it out.
#4
08/28/2011 (2:11 am)
Thank you very much for helping us.
#5
Could you let me know how your test is going?
I'm a little bit stuck here.
Kind regards,
Joris
09/05/2011 (2:24 pm)
Hello Phillip,Could you let me know how your test is going?
I'm a little bit stuck here.
Kind regards,
Joris
#6
I've got it all working but it will be a few days before its up on the GG website. Drop me an email and I'll give you the link to the download files.
09/06/2011 (2:39 am)
I had to setup my test environment again, sorry for the delay.I've got it all working but it will be a few days before its up on the GG website. Drop me an email and I'll give you the link to the download files.
#7
09/06/2011 (3:17 am)
Thank you.
#8
09/10/2011 (3:28 am)
Hey Phillip. Is this up on the GG site yet?
#9
09/15/2011 (10:51 am)
The new update has been uploaded. Please re-download Verve 1.1.0 in your product section to take advantage of the fix.
#10
09/15/2011 (11:35 am)
Thanks for the update.
#11
09/15/2011 (11:51 am)
Thank you for the update. I'll test it as soon as possible...
#12
First I tried to add it to my already existing project without success.
Now I'm creating a new project using the full template. I've added VerveEditor and VPathEditor (from the Verve template directory) to the /game/tools directory. I also have added the Verve directory to the /source directory. I have corrected the project.conf and projectCode.conf files. I have executed generateProjects.bat and opened the test.sln file from the VisualStudio 2010 diretory. I did a complete build and everything went right as it appears.
When I open the world editor using the Empty Terrain level from the test project and hit the VerveEditor button Torque will crash. Hitting the PathEditor button results in a solid yellow background within the world editor.
I see the following entry snippets in the console.log file:
Missing file: tools/Controller/main.cs!
Missing file: tools/Events/main.cs!
Missing file: tools/Groups/main.cs!
Missing file: tools/Inspector/main.cs!
Missing file: tools/Fields/main.cs!
Missing file: tools/Tracks/main.cs!
Missing file: tools/Torque/main.cs!
6: Unable to instantiate non-conobject class VPathEditor.
If I understand correctly the missing files are due to the way Torque reads its editors and it isn't a problem. I do not trust the last line of the previous log snippet. I guess something still went wrong during the build process.
When I hit the VerveEditor button the following lines were added to console.log:
Set::add: Object "EVPathEditor" doesn't exist
tools/VPathEditor/Scripts/Plugin.cs (22): Unable to find object: 'EVPathEditor' attempting to call function 'setVisible'
tools/VPathEditor/Scripts/Editor.cs (82): Unable to find object: 'EVPathEditor' attempting to call function 'getSelectedPath'
... and many more lines.
Thanks already for looking into this problem.
09/16/2011 (3:56 pm)
I'm sorry to say so, but I have been testing the new version a couple of hours and still cannot get it work correctly.First I tried to add it to my already existing project without success.
Now I'm creating a new project using the full template. I've added VerveEditor and VPathEditor (from the Verve template directory) to the /game/tools directory. I also have added the Verve directory to the /source directory. I have corrected the project.conf and projectCode.conf files. I have executed generateProjects.bat and opened the test.sln file from the VisualStudio 2010 diretory. I did a complete build and everything went right as it appears.
When I open the world editor using the Empty Terrain level from the test project and hit the VerveEditor button Torque will crash. Hitting the PathEditor button results in a solid yellow background within the world editor.
I see the following entry snippets in the console.log file:
Missing file: tools/Controller/main.cs!
Missing file: tools/Events/main.cs!
Missing file: tools/Groups/main.cs!
Missing file: tools/Inspector/main.cs!
Missing file: tools/Fields/main.cs!
Missing file: tools/Tracks/main.cs!
Missing file: tools/Torque/main.cs!
6: Unable to instantiate non-conobject class VPathEditor.
If I understand correctly the missing files are due to the way Torque reads its editors and it isn't a problem. I do not trust the last line of the previous log snippet. I guess something still went wrong during the build process.
When I hit the VerveEditor button the following lines were added to console.log:
Set::add: Object "EVPathEditor" doesn't exist
tools/VPathEditor/Scripts/Plugin.cs (22): Unable to find object: 'EVPathEditor' attempting to call function 'setVisible'
tools/VPathEditor/Scripts/Editor.cs (82): Unable to find object: 'EVPathEditor' attempting to call function 'getSelectedPath'
... and many more lines.
Thanks already for looking into this problem.
#13
I still don't know in which direction I need to search for a solution to this problem.
Is it so that although Visual Studio didn't complain during the build process there still went something wrong during the linking of Verve in the project or is the problem completely script related?
Just wondering if anybody else is experiencing the same problems as i do?
Kinds regards,
Joris
09/22/2011 (2:12 am)
So far I haven't been able to fix the problem. I still don't know in which direction I need to search for a solution to this problem.
Is it so that although Visual Studio didn't complain during the build process there still went something wrong during the linking of Verve in the project or is the problem completely script related?
Just wondering if anybody else is experiencing the same problems as i do?
Kinds regards,
Joris
#14
Are you trying to merge Verve into an existing project? You'll need to add the source files as well as the tools.
09/23/2011 (5:08 pm)
There is a Verve project template which contains everything that Verve requires including source code and tools.Are you trying to merge Verve into an existing project? You'll need to add the source files as well as the tools.
#15
In my project it still doesn't work (when you click the the verve editor controls the project will crash).
I have checked that I added the source and the tools directory the same way as is done with the template project and I cannot see any differences.
In the Visual Studio project I see the files in the project explorer the same way with both projects.
I even used WinMerge on all the Verve files in both directories and the only difference I see is the name of the project.
This weekend I didn't have enough time to experiment more, but I will try to create a new Full Template project and add Verve to it to check whether it works or not. I think that I can test whether it's a fault somewhere in my project or in other projects as well.
09/26/2011 (12:15 am)
When I create a new Verve template project I can use the tools correctly, even after compiling the source myself.In my project it still doesn't work (when you click the the verve editor controls the project will crash).
I have checked that I added the source and the tools directory the same way as is done with the template project and I cannot see any differences.
In the Visual Studio project I see the files in the project explorer the same way with both projects.
I even used WinMerge on all the Verve files in both directories and the only difference I see is the name of the project.
This weekend I didn't have enough time to experiment more, but I will try to create a new Full Template project and add Verve to it to check whether it works or not. I think that I can test whether it's a fault somewhere in my project or in other projects as well.
#16
- I have copied the source/verve directory
- I have copied the game/tools/VerveEditor and /VPathEditor to the game/tools directory
- I have changed the project.conf and projectCode.conf files
- I started generateProjects.bat
- I did a rebuild solution from Visual Studio 2010 and everything looks fine
- I started the empty mission and clicked the Verve toolbar button resulting in a crash of Torque.
Is there a step that I forgot while merging Verve with an existing (or empty) project?
Thank you again for all the help.
Kind regards,
Joris
09/28/2011 (1:23 pm)
I have created a new project using the empty template. What I have done to include Verve is the following.- I have copied the source/verve directory
- I have copied the game/tools/VerveEditor and /VPathEditor to the game/tools directory
- I have changed the project.conf and projectCode.conf files
- I started generateProjects.bat
- I did a rebuild solution from Visual Studio 2010 and everything looks fine
- I started the empty mission and clicked the Verve toolbar button resulting in a crash of Torque.
Is there a step that I forgot while merging Verve with an existing (or empty) project?
Thank you again for all the help.
Kind regards,
Joris
#17
09/29/2011 (1:16 am)
Check the project configuration files. You might be missing some of the preprocessor arguments that are needed. Check project.conf specifically:// Verve Preprocessor Definitions.
addProjectDefine( 'VT_VERVE' );
addProjectDefine( 'VT_EDITOR' );
#18
I had already set the preprocessor arguments and started the generateProject batch file.
Are there any more settings or other things I might have overlooked?
09/29/2011 (1:24 am)
Thank you for the response.I had already set the preprocessor arguments and started the generateProject batch file.
Are there any more settings or other things I might have overlooked?
#19
09/30/2011 (6:24 pm)
The only other thing I could think of is do a comparison in Winmerge to see the differences (check both source and projects).
#20
I have merged all content like art, scripts etc. from the Verve template project to the empty template project and still the first one works and the latter one doesn't.
I checked every file and also the Visual Studio solution file, but I don't see any differences in the files. When I rebuild the solution the same amount of lines are processed but the size of the executable and the dll are different. So, I guess the cause of the problem is in here somewhere.
Luckily I have managed to find a workaround for the problem though.
When I create a new Verve template project and merge all my files to the Verve template it works. I still have to check and clean up the backup files created by WinMerge, but it looks promissing. The other way around also works, but then you need to copy the new executable and dll to the right directory everytime you create a new build.
10/07/2011 (12:56 am)
Yesterday I have invested 8 hours to solve the problem without finding the cause.I have merged all content like art, scripts etc. from the Verve template project to the empty template project and still the first one works and the latter one doesn't.
I checked every file and also the Visual Studio solution file, but I don't see any differences in the files. When I rebuild the solution the same amount of lines are processed but the size of the executable and the dll are different. So, I guess the cause of the problem is in here somewhere.
Luckily I have managed to find a workaround for the problem though.
When I create a new Verve template project and merge all my files to the Verve template it works. I still have to check and clean up the backup files created by WinMerge, but it looks promissing. The other way around also works, but then you need to copy the new executable and dll to the right directory everytime you create a new build.
Torque Owner Matthijs Rekers
Ladybird Games
If anyone could help us forward, we would very much appreciate it!!