PDA

View Full Version : New Version not working for me :(


ICECAP
April 1st, 2005, 11:57 AM
I try compiling the simple2 of the latest version and i get the following error:
LINK : fatal error LNK1104: cannot open file "libARd.lib"
Infact i get that with any of the examples i compile.

Yannouchka
April 1st, 2005, 01:10 PM
Did you compiled the entire toolkit? I mean, did you run './configure' and './make' on the artoolkit root directory?

otomo
April 3rd, 2005, 05:05 PM
I also have problems with building the kit. I do it with the most current version 2.71 under WinXP and now Visual 2003.

When I build the toolkit for the first time I get:

fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory

Should this directory somewhere in the {ARToolit} Directory-Structure? In Fact, it is not there.

otomo
April 3rd, 2005, 05:11 PM
I found that there is a GL/glut.h in the DSLib/Src Folder. I copied it to ARToolit/include. I hope that this is the right folder.

Compiling now works without errors, but I get the following error instead:

simpleTest error LNK2019: unresolved external symbol ___glutCreateWindowWithExit@8 referenced in function _glutCreateWindow_ATEXIT_HACK@4

I don't know how to solve this. :-(

ICECAP
April 4th, 2005, 12:56 AM
Yeah i had your first problem for a while, you need to install glut (something for open gl) in order for it to work.

I had a nightmare trying to find it but i think i got if from somewhere around here:
http://www.opengl.org/resources/libraries/glut/glut_downloads.html

otomo
April 4th, 2005, 01:18 AM
yeah, it's sad, that working with the toolkit is so complicated in some cases. I spent nearly two days, just trying different approaches to work with the toolkit.

My last try, was with an older version, because I coudn't get the current version to compile on my system. Then I tried with version 2.65 and it compiled :-)(After reorganizing some files, which weren'T where Visual Studio looked for them)

But now I get strange behaviour of the compiled app. The output-image is mirrored, it does not recognize the patterns, and crashes occasionally for no obious reason.

I gave up for now. I will look at the other toolkits out there. And also I will have a look on DART, which tries to bring AR to Macromedia Director.

otomo
April 4th, 2005, 01:20 AM
An to adress your first post. Search your System for the file, which cannot be find by the linker. Make sure this files sits in one of the include-directories.

But I assume, you will have some other funny errors, when you got rid of this one. :-(

ICECAP
April 4th, 2005, 01:22 AM
@Yannouchka

I tried to compile the whole lot, but got this error when trying to make the libARb.lib

C:\Downloads\AugmentedReality\ARToolKit-2.70.1\ARToolKit\lib\SRC\AR\arUtil.c(32) : error C2065: 'DEFAULT_MATCHING_PCA_MODE' : undeclared identifier
C:\Downloads\AugmentedReality\ARToolKit-2.70.1\ARToolKit\lib\SRC\AR\arUtil.c(32) : error C2099: initializer is not a constant

ICECAP
April 4th, 2005, 01:24 AM
@otomo

I have the exact same problem right down to the mirroring.
It is really frustrating.

philip_lamb
April 4th, 2005, 04:12 AM
Yeah i had your first problem for a while, you need to install glut (something for open gl) in order for it to work.

I had a nightmare trying to find it but i think i got if from somewhere around here:
http://www.opengl.org/resources/libraries/glut/glut_downloads.html

It shouldn't be a mystery that you need to install GLUT.. we have put explicit instructions in the readme, including the download location:
Prerequisites:
* GLUT. Download from http://www.opengl.org/resources/libraries/glut.html.

and also we have put instructions on how to install it:
(5) Install the GLUT DLL into the Windows System32 folder, and the library and headers into the VS platform SDK folders.

Believe it or not, Windows is the most difficult platform to build ARToolKit on, not the easiest. There is little we can do about this.. its the nature of the tools (Visual Studio) and the environment (Windows, with no standard mechanism for installing prerequisites, or packaging applications.)

philip_lamb
April 4th, 2005, 04:15 AM
@otomo

I have the exact same problem right down to the mirroring.
It is really frustrating.

You shoud have an option in the video input dialog to flip the image horizontally.

Also, you may be using samples without the flipV parameter. This little tidbit is somewhat buried (in the changelog.txt):

Changes in version 2.68.2.
--------------------------
- VideoWin32DirectShow uses DSVideoLib 0.0.4 (was 0.0.3). The samples now correct the vertical orientation of video from DSVideoLib by specifying the "flipV" parameter by default. An alternative is to use the WDM capture settings dialog 'Mirror horizontally' parameter and rotate the camera 180 degrees.

Friedbert
April 4th, 2005, 11:29 PM
Hi there

As I wrote in an earlier thread, my first ever compiled program was
ARToolkit 2.7.1.
I read the readme and installationinstructions. I did what was told there and voila simplevrmld.exe works fine on my maschine. No errors !!!

I adapted the simplevrml example and now on a press of the buttons 1-9 a new object - marker konstallation is loaded (or even the object for my default marker is reloaded). Extremly usefull when i am finetuning the object with textures, schaders and transparency.

So, read the instructions and do it.

Friedbert

ICECAP
April 5th, 2005, 01:50 AM
Ok, how the hell did you get it working then.
I followed the instructions and i now get a new error:

Compiling...
videoWin32DirectShow.cpp
..\..\..\DSVideoLib\src\DsVideoLib.h(52) : fatal error C1083: Cannot open include file: 'streams.h': No such file or directory
Error executing cl.exe.

I cant seem to find this file anywhere on my system.
Where do i get it?

ICECAP
April 5th, 2005, 01:56 AM
Ok dont worry i found it in the directx sdk.
Cheers

Yannouchka
April 6th, 2005, 12:32 PM
@ICECAP

Sorry, not idea for this error msg...

who
June 12th, 2005, 06:47 PM
... your discussion seems to be interesting.

At the moment I try to build ARToolKit with Visual Studio 6.

I can open ARToolKit.dsw with MS Visual C++. But when I try to build ARToolKit.exe unfortunately I get following message:

configuration ARToolKit - Win32 Debug
ARToolKit.exe - 0 errors, 0 warnings

But finally I cannot find ARToolKit.exe on my computer.

Can you give me a hint, what went wrong?

Friendly Regards
who

ICECAP
June 21st, 2005, 03:18 AM
Yes,
It was because i hadnt put all the libary files in the actual C++ directory.
I upgraded versions of artoolkit after posting last and half the examples failed to work after that.
So it does depend on what version you are using.

I hope that was of some help.

base2
June 23rd, 2005, 09:04 AM
I'm having problems compiling any of the toolkit apps (compiling under Windows - Visual Studio 6). Have followed the instructions in the README.

When compiling, the system gets to the stage of processing libARvideo. The videoWin32DirectShow.cpp file generated in excess of 102 errors.

Errors are for things like:
error C2143: syntax error : missing ';' before '*'

when the line code is:
CGraphManager *graphManager;

and a whole bunch or errors as:
syntax error : missing ';' before '}'

This is from the standard cpp file from the ARToolKit zip.

djoele
September 14th, 2005, 01:33 PM
I?m experiencing the same thing. Anybody has had the same and found a solution for it? Thank ypu in advance.

philip_lamb
September 14th, 2005, 11:24 PM
I'm having problems compiling any of the toolkit apps (compiling under Windows - Visual Studio 6). Have followed the instructions in the README.

When compiling, the system gets to the stage of processing libARvideo. The videoWin32DirectShow.cpp file generated in excess of 102 errors.

Errors are for things like:
error C2143: syntax error : missing ';' before '*'

when the line code is:
CGraphManager *graphManager;

and a whole bunch or errors as:
syntax error : missing ';' before '}'

This is from the standard cpp file from the ARToolKit zip.

This error is because you are trying to compile using MSVS 6 with DirectX 9.0c or later SDK.

From the README for ARToolKit 2.70.1:
If you are using VS6, you must use 9.0b as DirectX 9.0c no longer includes support for VS6

My apologies that this SDK is so hard to find.. Microsoft moves downloads around a lot, and this makes it hard for us. However, here is a link to the correct download:

http://www.microsoft.com/downloads/details.aspx?FamilyID=1d97f320-9dfd-4e7a-b947-3a037ccf84af&DisplayLang=en

One last note: if you can be bothered waiting, there will be an ARToolKit release out soon (version number 2.71) which does not require installing the DirectX SDK. So that might save you some bother.

Acidburn
September 16th, 2005, 05:15 AM
It would be nice but how soon would be soon?

philip_lamb
September 22nd, 2005, 09:24 AM
Now.
http://sourceforge.net/projects/artoolkit/