View Full Version : Building ARToolKit . no build option in VS6
who
June 1st, 2005, 03:19 PM
Dear All,
At the moment we are trying to implement ARToolKit for our students.
Unfortunately we have no luck in building ARToolKit.exe in Visual Studio 6. The build option is not active when opening the file.
In which way we should proceed with building the toolkit?
For a short message I would be thankful, looking forward to hearing from you soon.
Acidburn
August 4th, 2005, 04:48 AM
:o Yeah this is a big thing for me im wanting to do a project developing an AR Mini-booklet. So any info I could get would be a huge help.
philip_lamb
August 5th, 2005, 10:27 PM
ARToolKit versions up to and including 2.70.1 support visual studio 6. I'm not sure what you're not doing right, but it should be as simple as following the step-by-step instructions in the readme.
Regards,
Phil.;
Acidburn
August 11th, 2005, 04:36 AM
Hey step number 8 in the readme confuses me no end could anybody simplify it for me and let me know what files I will need for it.
philip_lamb
August 11th, 2005, 05:42 AM
OK.. here is step 8.
(8) Open the Visual Studio search paths settings (Tools->Options->Directories for VS6, or Tools->Options->Projects->VC++ Directories for VS.NET) and add the DirectX SDK Includes\ path and the DirectX Samples\C++\DirectShow\BaseClasses\ path to the top of the search path for headers, and the DirectX SDK Lib\ path to the top of the search path for libraries.
So what this means is that once you have installed the DirectX SDK, you need to tell visual studio where to find its header and library directories. Otherwise, when the ARToolKit source tries to include these files, Visual Studio won't know where to look for them. OK? OK. So the way to tell VS where to look for files is to add them to the "search path" in the VS options. In VS6 this is in the menu Tools->Options->Directories. Go to the "includes" tab, and then add a path. The path you want to add is the "includes" directory of where you installed the SDK. So if you installed the SDK at C:\DXSDK, then you'd add C:\DXSDK\Includes to the VS "includes" path tab. Do the same for the libraries paths, except refer to (e.g.) C:\DXSDK\Lib.
And once more.. add one more path to the includes tab.. (e.g.) C:\DXSDK\Samples\C++\DirectShow\BaseClasses\
Does that help?
Acidburn
August 11th, 2005, 07:27 AM
Cheers for that I will let you know how it goes
Acidburn
August 22nd, 2005, 04:50 AM
Ok I have managed to get most of what is mentioned above but the SDK version I downloaded doesnt seem to contain [quote] ..\DXSDK\Samples\C++\DirectShow\BaseClasses\[\quote] or even when I add the path ..\DXSDK\Include I still get the same fatal error when I try to build.
fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory
Its the same one every time.
Could I please get some help here?
yarniso
August 23rd, 2005, 12:40 PM
What version have you downloaded? As far as I know (but correct me if I'm wrong) the files you mention are available in the summer 2004 SDK. All the other ones are updates to this SDK.
And glut can be found at http://www.xmission.com/~nate/glut.html
Acidburn
August 25th, 2005, 04:14 AM
Im still having trouble no matter what I do it seems to not want to work with my windows, should I give it a go in Linux perhaps?
philip_lamb
August 25th, 2005, 04:26 AM
Perhaps if you posed the specific error log you get when building here, we can help.
Acidburn
August 25th, 2005, 05:35 AM
Ok its basically the same error each time
------ Build started: Project: videoTest, Configuration: Debug Win32 ------
Compiling...
videoTest.c
d:\ARToolKit\util\videoTest\videoTest.c(8) : fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory
Build log was saved at "file://d:\ARToolKit\util\videoTest\Debug\BuildLog.htm"
videoTest - 1 error(s), 0 warning(s)
attached is the build log
philip_lamb
August 25th, 2005, 05:49 AM
Why have you not installed glut?
Its really easy.
Download http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip
To install GLUT, use winzip, or some other unzipping utility, to decompress the archive. Once you have done so, you should have extracted the following files:
glut.dll
glut.h
glut.lib
glut32.dll
glut32.lib
README.win
The next step is to move the files into the appropriate directories so Visual C++ can find them for linking.
Since you are using Visual Studio 6, these locations would be as follows:
Place the glut.h file into the C:\Program Files\Microsoft Visual Studio\VC98\include\gl directory.
Place the glut.dll file into the C:\WINDOWS\SYSTEM directory.
Place the glut32.dll file into the C:\WINDOWS\SYSTEM32 directory.
Place the glut.lib and the glut32.lib file into the C:\Program Files\Microsoft Visual Studio\VC98\lib\ directory.
If you were to use Visual Studio .NET, these locations would be as follows:
Place the glut.h file into the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\gl directory.
Place the glut.dll file into the C:\WINDOWS\SYSTEM directory.
Place the glut32.dll file into the C:\WINDOWS\SYSTEM32 directory.
Place the glut.lib and the glut32.lib file into the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\ directory.
Then rebuild.
Acidburn
August 25th, 2005, 04:19 PM
Im using VS .net are the paths any different?
Acidburn
August 26th, 2005, 05:07 AM
ok Im no longer having the glutproblem but now when I try to build it cant op the DsVideoLib.h for soem reason and give me this error
------ Build started: Project: libARvideo, Configuration: Debug Win32 ------
Compiling...
videoWin32DirectShow.cpp
d:\ARToolKit\lib\SRC\VideoWin32DirectShow\\../../../DsVideoLib\src\DsVideoLib.h(52) : fatal error C1083: Cannot open include file: 'streams.h': No such file or directory
Build log was saved at "file://d:\ARToolKit\lib\Src\VideoWin32DirectShow\Debug\Bu ildLog.htm"
libARvideo - 1 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
I havefound the file and know its there. Gah I hatebeing a newb
bart_kevelham
August 26th, 2005, 12:19 PM
streams.h is part of the DirectX baseclasses. If this file is on your system, check if your paths (the include paths inside msvc) are pointing to the directory this file is in.
You can check for this at tools>options>projects>vc++ directories and then "show directories for" include files.
Good luck
Acidburn
August 29th, 2005, 04:43 AM
for some reason I am unable to find the BaseClasses file on my sytem after having installed Direct X and the update files. Do I need to build it or should it come with the DirectX SDk downloads?
Could somebody please put a copy of their Direct Show file up here or email it to me at pgow11@gmail.com it isn't in my DirectX files for some reason
philip_lamb
September 24th, 2005, 08:00 AM
If you are using Direct X SDK 9.0c or later, the baseclasses are a separate download.
However, DirectX 9.0c is not compatible with Visual Studio 6.
In any case, ARToolKit 2.71.1 is now out, and no longer requires the Direct X SDK to be installed. It can also be used with any version of Visual Studio.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.