jung1981 / linux-track

Automatically exported from code.google.com/p/linux-track
MIT License
0 stars 0 forks source link

undefined references to linuxtracker when compiling ltr_hw.c #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. install unversal Linuxtrack package like in 
https://code.google.com/p/linux-track/wiki/UniversalPkgInstall

2. try to compile the "hello world" program by creating my ltr_hw.c file and 
use the command lines from here: 
https://code.google.com/p/linux-track/wiki/LinuxtrackInterface

3. run this: sudo gcc -o ltr_hw -Wall -g -I ${LTR_PREFIX}/include ltr_hw.c 
${LTR_PREFIX}/lib/liblinuxtrack.a 

What is the expected output? What do you see instead?
I expected to see what the ltr_hw.c is supposed to print, but instead i got 
this:

ltr_hw.c: In function ‘main’:
ltr_hw.c:11:3: warning: implicit declaration of function ‘ltr_init’ 
[-Wimplicit-function-declaration]
   ltr_init(NULL);
   ^
ltr_hw.c:13:3: error: unknown type name ‘ltr_state_type’
   ltr_state_type state;
   ^
ltr_hw.c:16:5: warning: implicit declaration of function 
‘ltr_get_tracking_state’ [-Wimplicit-function-declaration]
     state = ltr_get_tracking_state();
     ^
ltr_hw.c:34:3: warning: implicit declaration of function ‘ltr_recenter’ 
[-Wimplicit-function-declaration]
   ltr_recenter();  
   ^
ltr_hw.c:37:5: warning: implicit declaration of function 
‘ltr_get_camera_update’ [-Wimplicit-function-declaration]
     ltr_get_camera_update(&heading, &pitch, &roll, &x, &y, &z, &counter);

etc... for all ltr_functions

I used the above mention universal package. In run Ubuntu 14.04 lts and the 
ltr_pipe & ltr_gui work fine with the kinect Camera without installin extras!

Can Anyone help me? It all seems so legit to me.
Thank you very much!

Original issue reported on code.google.com by padilla....@gmail.com on 9 Jul 2014 at 9:22

GoogleCodeExporter commented 9 years ago
Hello,
first of all, let me apologize for the problems you encountered - the thing is, 
that the Linuxtrack Interface page is outdated and I forgot to update it...

Please find up-to-date documentation in the ltr_gui help pages inside 
"/opt/linuxtrack-0.99.10/share/linuxtrack/help/ltr_gui" directory, in file 
called interface.htm.

Also the directory "/opt/linuxtrack-0.99.10/share/linuxtrack" holds two ready 
to compile examples "linuxtrack_hello_world.c" and 
"linuxtrack_hello_world_adv.c", both of which are explained in the above 
mentioned file.

Let me know should you need any more help...
Kind regards,

Michal

Original comment by f.jo...@email.cz on 9 Jul 2014 at 11:32

GoogleCodeExporter commented 9 years ago
The Linuxtrack interface wiki page is updated...
Kind regards,

Michal

Original comment by f.jo...@email.cz on 9 Jul 2014 at 11:53

GoogleCodeExporter commented 9 years ago
Thanks! now i got it working and even in enclipse. good work

Original comment by padilla....@gmail.com on 9 Jul 2014 at 12:34

GoogleCodeExporter commented 9 years ago
Hello,
I'm closing this bug, feel free to reopen it should you encounter the problem 
again...

Kind regards,

Michal

Original comment by f.jo...@email.cz on 18 Nov 2014 at 6:10