Building from Source Mac Error

jackreynolds
Posts: 61
Joined: Sun Jul 24, 2016 4:21 pm

Building from Source Mac Error

Postby jackreynolds » Fri Mar 03, 2017 9:31 am

Code: Select all

Using video config from environment "-width=640 -height=480".
Video formatType is BGRA, size is 640x480.
Camera image size (x,y) = (640,480)
Error (2): unable to open camera parameters file "../share/artoolkit-examples/Data/camera_para.dat" for reading.
No such file or directory
setupCamera(): Error loading parameter file ../share/artoolkit-examples/Data/camera_para.dat for camera.
main(): Unable to set up AR camera.


When building the SimpleOSG application from source, I get the following error on startup, and it crashes. I have checked: the camera_para.dat file is in fact in that location. Any ideas as to why this is throwing the issue? Thanks.

MrDaniel
Posts: 381
Joined: Wed Nov 18, 2015 9:07 pm

Re: Building from Source Mac Error

Postby MrDaniel » Mon Mar 06, 2017 3:52 pm

Hmmm...

This is odd...

Error (2): unable to open camera parameters file "../share/artoolkit-examples/Data/camera_para.dat" for reading.
No such file or directory

Can you describe your project directory structure?

jackreynolds
Posts: 61
Joined: Sun Jul 24, 2016 4:21 pm

Re: Building from Source Mac Error

Postby jackreynolds » Mon Mar 06, 2017 5:05 pm

The directory wasn't modified after unpacking the .zip from Git. It is on Macintosh HD/Users/Jack/Desktop/Dev/ARToolKitQTFix, then the project was unpacked to there, and looks to be identical to the files on Git.

amalcao
Posts: 6
Joined: Thu Jan 05, 2017 2:52 am

Re: Building from Source Mac Error

Postby amalcao » Thu Mar 09, 2017 1:22 am

I think the error happened since the app cannot access the files outside the sandbox,
so updating all paths like "../share/artoolkit-examples/Data/***" to "./Data/***" will fix this error
(copy the missing files to "simpleOSG.app/Contents/Resources/" if they are not copied automatically by Xcode).

jackreynolds
Posts: 61
Joined: Sun Jul 24, 2016 4:21 pm

Re: Building from Source Mac Error

Postby jackreynolds » Thu Mar 09, 2017 6:53 am

That did the trick, thank you.

Monaliz
Posts: 1
Joined: Sat Mar 25, 2017 2:32 am
Contact:

Re: Building from Source Mac Error

Postby Monaliz » Sat Mar 25, 2017 2:42 am

Wow thanksyou so much all this is trick so nice


Return to “ARToolKit for Desktop v5.x”

Who is online

Users browsing this forum: No registered users and 1 guest