Thread: Augmented Reality: a practicle guide examples not working on ubuntu
hi,
bought book: augmented reality: practicle guide (http://pragprog.com/titles/cfar/augmented-reality). has example code says runs on windows, macos , linux.
can download code here: (http://pragprog.com/titles/cfar/source_code)
can't binaries run. has got book , got binaries run on ubuntu?
can't figure out how compile examples in ubuntu. how this?
here says do:
compiling linux
refreshingly, there no changes required programs in this
chapter compile linux, windows, you’ll first have to
find gl , glut files. may mean you’ll have download
correct version of glut machine.
need link in gl, glu, , glut libraries , provide path
glut header file , files includes. see whether there is
glut.h file in /usr/include/gl directory; otherwise, elsewhere it—you use command find / -name "glut.h" search entire
machine, or use locate command (locate glut.h).
may need customize paths, here example of the
compile command:
gcc -o opengl_template opengl_template.cpp -i /usr/include/gl
-i /usr/include -lgl -lglu -lglut
gcc c/c++ compiler should present on linux or unix
machine. -i /usr/include/gl command-line argument tells gcc look
in /usr/include/gl include files. in case, you’ll find glut.h and
includes. when linking in libraries gcc, use -lx
switch—where x name of library , there correspond-
ing libx.a file somewhere in path. example, want to
link in library files libgl.a, libglu.a, , libglut.a, use the
gcc arguments -lgl -lglu -lglut. these 3 files found in default
directory /usr/lib/, don’t need specify location did
glut.h. if did need specify library path, add -l
path.
run compiled program, type ./opengl_template or, if current
directory in shell’s paths, opengl_template.
when working in linux, it’s important know may need to
keep texture files maximum of 256 256 pixels or find the
settings in system raise limit. opengl program
work in windows produce blank white texture in linux until
texture size reduced.
above instructions make no sense me. have use gcc compile or can use eclipse?
if use either eclipse or gcc need compile , run program?
book not beginners this starting lean more towards intermediate level of understanding...
programmer states video not run if screen size goes beyond limits expresses changing fx , fy of camera... programmer puts necessary source files in folder in order run program...
these rough samples experienced programmers want build video games, visual effects , ideas endless experienced programmer...
if don't understand following statements more wont program work....
1. if else
2. if return
3. if for
4 matrix
5. else if
6. library's
7. pointing files/libs
8. camera angles , setup's
9. program(vlc player, firefox, windows player) run following programs...
10. refers use of web cam....
don't know level of computer programming, seasoned programmer...
if inexperienced programmer going want go forum can talk experienced programmer advice on learning list of above ideas....
later...
luck...
p.s programming takes lot of trial , error...
wish best
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] Augmented Reality: a practicle guide examples not working on ubuntu
Ubuntu
Comments
Post a Comment