View Full Version : artoolkit error in VC++
zippy
March 16th, 2005, 09:09 PM
Hi all,
I'm an ARToolkit newbie, I'm trying to create a project using the toolkit, and incorporate openGL modules into the pre-existing code that is found in the examples of the ARToolkit.
I have installed directx 9.0 sdk, and ARToolkit 2.70 and I'm using Visual C++ 6.0 to compile and run the programs.. It has taken me ages of messing around to actually get the examples to compile. I read and followed the instructions in the readme file in ARToolkit 2.70.
So now they all compile but when I go to run the exe I get a dialogue box that says
'Unhandled exception in simpleTest.exe (DSRENDERER.AX) : 0x0000005 : Access Violation'
Would it have anything to do with the fact that I have installed directx 9.0 and not directx 9.0b ???
Other than that I've no idea whats wrong.
I did have to do some extra tweaking to get them to compile after I had followed the instructions - so I hope I didn't mess anything up????
Does anyone have any idea wots up - this is really wrecking my head :confused:
Anyway Thanks in advance for any help..
Regards
Fi**
zippy
March 16th, 2005, 10:40 PM
hi again,
I was just looking at those instructions again,
and I wasn't really sure about step 9 - Building the directshow base classes strmbase.lib ans strmbasd.lib - How exactly do you do that??
Maybe thats where I went wrong???
philip_lamb
March 17th, 2005, 02:37 AM
hi again,
I was just looking at those instructions again,
and I wasn't really sure about step 9 - Building the directshow base classes strmbase.lib ans strmbasd.lib - How exactly do you do that??
Maybe thats where I went wrong???
Hi,
Step 9 is not necessary unless you want to recompile DsVideoLib from scratch. This shouldn't be necessary except in very few cases. I think it is more likely that it is your version of DirectX that is causing problems.. 9.0b or later is required. Looks like you'll have to upgrade by one bump.
P.
zippy
March 18th, 2005, 09:27 PM
Hi there philip,
Thanks for your reply :) - I installed directX 9.0b but still I get that error message when I try to run simpleTest.
When I run multiTest I get as far as clicking 'OK' on the stream format property sheet, then I get an error output in the console saying 'Camera parameter load error' and the program exits.
I've really run out of ideas as to what to do - I have installed , uninstalled and reinstalled so many times!!!
Do you have any idea what else could be causing this problem??
Regards
Fi**
philip_lamb
March 19th, 2005, 03:29 AM
Hi Fi,
I'm really not sure why you are getting the access violation.. I'd like to know what changes you needed to make to get it to compile. I would also be interested to know what camera and driver you are using.A crash inside DsVideoLib would imply that it is having trouble communicating with the camera driver.
As for the error with multitest.. this would imply that it can't find the camera parameter file, camera.dat. This file must be inside a folder called Data, which itself must be in the same folder as the executable.
zippy
March 21st, 2005, 09:49 PM
Hi Philip.
Thanks a million for getting back to me,
When I said that I had to change a few things to get the programs to compile I just meant that I was copying .libs and .dlls to various places and was linking to lots of different libraries - according to the compile errors I was getting until , finally it compiled with no errors.
The reason that multiTest is giving a different error to the rest of them is because it is not the code that came with the ARToolkit, it is code that somebody else gave me. When I put the original ARToolkit 2.70 multi.cpp back in - I get the same access violation error as I do with simpleTest and all the rest of them.
I think that the problem occurs at arVideoOpen, and they run when I comment out this line - however they obviously don't do anything because there is no video!
I am using a logitech quickcam 8.2.0. I also think that it must be something to do with the camera driver. Do I have to copy camera files anywhere into the Toolkit?
I'm using the ARToolkit (or trying to) for my Final Year Project in University and nobody else here seems to have any idea how to help me - so I'm really panicking now. Hopefully it will just be a simple error somewhere.
If you have any other ideas or advice as to how to fix this I would be really grateful!!
Cheers,
Fi**
philip_lamb
March 22nd, 2005, 03:13 AM
The logitech software is now at version 8.4.1. http://www.logitech.com/index.cfm/downloads/software/AU/EN,CRID=1794,contentid=6361 so the first thing to do is to try updating the camera drivers. And no, it isn't necessary to do anything special with the drivers once they're installed.
Once you've got the drivers installed, test your camera with some other piece of software, like MSN Messenger or something like that.
A few other things to check..
* are you using the DsVideoLib-0.0.4 package downloaded from Sourceforge, or one from somewhere else?
* have you made sure that your call to arVideoOpen() has something supplied for the vconf* parameter? e.g. the default is: arVideoOpen("showDlg,flipV"); You could try it with arVideoOpen(NULL) to see what happens. Alternately, you might need to add the friendlyName parameter, i.e. arVideoOpen("showDlg,flipV,inputDevice=WDM_CAP,friendlyName=Qui ckCam");
* double-check that you have the DirectX 9.0b SDK installed.. there are numerous crashing problems with DirectX 9.0a with DSVideoLib.
Finally, you should subscribe to the ARToolKit mailing list (see http://www.hitl.washington.edu/artoolkit/community.htm) because there are lots more people on that list that reading this forum, and you might even find some near your location who you can ask for help.
zippy
March 23rd, 2005, 02:22 AM
:D Philip, you are a star,
Thanks a million for your help,
I put in this line of code:
arVideoOpen("showDlg,flipV,inputDevice=WDM_CAP,friendlyName=Qui ckCam")
and finally the program ran.
The only thing is - and its kinda wierd...
I can compile and build in VC++ but when I execute the program the error;
"Camera parameter load error !!" is displayed in the console, however when I go to the bin directory and run the EXE it works fine??? :confused:
Anyway - that, I can live with - I'm sure I'll figure that at some stage, finally I can start to insert my openGL - my project is back on track!!
I'll definately be joining that mailing list to see if I can pick up some pointers,
Anyway thanks a million, I'm forever indebted to ya!!
Regards,
Fi**
djoele
May 14th, 2005, 10:25 PM
Hello,
you have been able to make TwoView work.
I was also trying that, it compiles ok, but I got that exception in DSRenderer.ax. TwoView only shows information on the two cameras
I connected and then two windows open, and then the exception appears.
I tried to download DirectX9.0b to fix this, but after I installed it,
the program DXDiag told me I had installed DirectX version 9.0c :mad:
Can anyone please provide me a link to the correct DirectX version to
make ARToolKit run? I would be very grateful if anyone can help me.
It?s for my final project; we are trying to make ARToolKit work with markers
written in infrared ink, so the user can not see them.
philip_lamb
May 15th, 2005, 06:44 AM
Can anyone please provide me a link to the correct DirectX version to
make ARToolKit run?
This is all stated in the readme with ARToolKit..
If you are using MS Visual Studio 6, you can only use DirectX 9.0b
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp
If you are using MS Visual Studio 7.1, you can use DirectX 9.0b OR NEWER. You will also need to download the SDK extras if you choose to use 9.0c or later.
djoele
May 15th, 2005, 11:26 PM
Does there exist any safe way to uninstall DirectX9.0c?
I can nof find it in the Configuration panel under installed programs.
So, I should reformat everything? Or is there another way?
djoele
May 16th, 2005, 06:32 PM
Pleas, please, can anybody help me.
Now I use Visual Studio 7.1.
I can compile the ARToolKit.
When I run TwoView I get a runtime error.
So, I tried to rebuild the DSVideoLib, but this is the result:
c:\Documents and Settings\dennis\Escritorio\ARToolKit\DsVideoLib\sr c\DsVideoLib.cpp(530): error C2065: 'MEDIASUBTYPE_dv25' : identificador no declarado
c:\Documents and Settings\dennis\Escritorio\ARToolKit\DsVideoLib\sr c\DsVideoLib.cpp(531): error C2065: 'MEDIASUBTYPE_dv50' : identificador no declarado
c:\Documents and Settings\dennis\Escritorio\ARToolKit\DsVideoLib\sr c\DsVideoLib.cpp(532): error C2065: 'MEDIASUBTYPE_dvh1' : identificador no declarado
DsRenderer fatal error LNK1104: no se puede abrir el archivo 'strmbasd.lib'
D:\dxsdk\Samples\C++\DirectShow\BaseClasses\wxutil .h(195): warning C4312: 'conversi?n de tipo' :conversi?n de 'LONG' a 'PVOID' de mayor tama?o
IEEE1394_id fatal error LNK1104: no se puede abrir el archivo 'strmbasd.lib'
c:\Documents and Settings\dennis\Escritorio\ARToolKit\DsVideoLib\sa mples\OpenGLTextureSample.cpp(47): fatal error C1085: No se puede escribir en el archivo encabezado precompilado: '.\Debug/lesson6.pch': Espacio en disco insuficiente.
What can this be? Anybody has an idea. I really need to make ARToolKit work.
djoele
May 16th, 2005, 06:53 PM
Now I try to build the baseclasses but it gives me this:
BaseClasses fatal error LNK1181: no se puede abrir el archivo de entrada '..\..\..\..\lib\strmiids.lib'
What could this be?
djoele
May 16th, 2005, 09:27 PM
I try again from scratch.
Going to install directx9.0b
And MS VC6
Then, in the manual I have some problem.It says:
Copy the files DSVideoLib.dll and DSVideoLibd.dll from
{ARToolKit}\DSVideoLib\bin.vc70 into {ARToolKit}\bin.
(4) Run the script {ARToolKit}\DSVideoLib\bin.vc70\register_filter.ba t.
(5) Install the GLUT DLL into the Windows System32 folder, and the
library and headers into the VS platform SDK folders.
But, now my question is. There also exists a folder bin.vc60. Shouldn?t
I take the files from there if I?m using MS VC 6
djoele
May 17th, 2005, 01:49 AM
Can anybody help me?
I installed the DirectX9.0b SDK but DXDiag tells me I have installed another version,
in this case version 8.1.
Do I need to install more or am I doing something wrong?
djoele
May 17th, 2005, 12:49 PM
Tried from scratch and it runs now.
:)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.