joaquimrocha / Skeltrack

A Free Software skeleton tracking library
GNU Lesser General Public License v3.0
294 stars 63 forks source link

Build fails #9

Open knolleary opened 11 years ago

knolleary commented 11 years ago

Hi, I'm struggling to get Skeltrack to build, which I'm assuming to be something missing in my environment, but I can't figure out what. This is on Ubuntu 11.04.

I have run autogen.sh with no obvious errors:

   Skeltrack 0.1.10
   =====================
              Install prefix:   /usr/local
    Build introspection data:   auto
     Build API documentation:   no
           Enable debug mode:   no
      Enable automated tests:   yes
              Build examples:   no

Then, when I run make I get:

(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/nol/code/git/Skeltrack/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/home/nol/code/git/Skeltrack'
Making all in skeltrack
make[2]: Entering directory `/home/nol/code/git/Skeltrack/skeltrack'
  CC     libskeltrack-0.1_la-skeltrack-skeleton.lo
skeltrack-skeleton.c:94:10: error: field ‘track_joints_mutex’ has incomplete type
skeltrack-skeleton.c: In function ‘skeltrack_skeleton_init’:
skeltrack-skeleton.c:480:3: warning: implicit declaration of function ‘g_mutex_init’
skeltrack-skeleton.c: In function ‘skeltrack_skeleton_finalize’:
skeltrack-skeleton.c:508:3: warning: implicit declaration of function ‘g_mutex_clear’
make[2]: *** [libskeltrack-0.1_la-skeltrack-skeleton.lo] Error 1
make[2]: Leaving directory `/home/nol/code/git/Skeltrack/skeltrack'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nol/code/git/Skeltrack'
make: *** [all] Error 2

The error refers to the type track_joints_mutex which is a GMutex; the warnings are related, but I've run out of ideas.

elima commented 11 years ago

You seem to have a version of GLib prior to 2.32, when new thread API was introduced (g_mutex_init(), g_mutex_clear(), etc).

./configure should have complained about it, but it is expecting 2.28+ only. I just pushed a fix for that.

So, please, upgrade your GLib to 2.32 or newer and let us know.

knolleary commented 11 years ago

Ah right - this laptop was due an upgrade anyway. Will be reinstalling with 12.10 later this week, so will try again with that. Thanks.

Sherwin-Yi commented 11 years ago

Hi, I still got this problem, I use Glib 2.34.3. Can you give me some suggestion? Which GLib version should I use?

Thanks

Making all in skeltrack make[2]: Entering directory /root/Skeltrack/skeltrack' make[2]: Nothing to be done forall'. make[2]: Leaving directory /root/Skeltrack/skeltrack' Making all in tests make[2]: Entering directory/root/Skeltrack/tests' CC test-skeleton.o CCLD test-skeleton ../skeltrack/.libs/libskeltrack-0.1.so: undefined reference to g_mutex_init' ../skeltrack/.libs/libskeltrack-0.1.so: undefined reference tog_mutex_unlock' ../skeltrack/.libs/libskeltrack-0.1.so: undefined reference to g_mutex_lock' ../skeltrack/.libs/libskeltrack-0.1.so: undefined reference tog_mutex_clear' collect2: ld returned 1 exit status make[2]: * [test-skeleton] Error 1 make[2]: Leaving directory `/root/Skeltrack/tests' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/root/Skeltrack'

joaquimrocha commented 11 years ago

Hi xiuweiyi,

If you are sure that you're using that Glib version, I have no other hints apart from what @elima stated and I have no time to investigate it further at the moment.

Hope you find a solution. Let us know if you do.

Sherwin-Yi commented 11 years ago

error Thanks for your response, I updated GLIB to 2.34.2 from 2.32.0. And there is another error.

Can you tell me which part triggered this error?

Thank you very much.

On Thu, Mar 28, 2013 at 4:27 PM, Joaquim Rocha notifications@github.comwrote:

Hi xiuweiyi,

If you are sure that you're using that Glib version, I have no other hints apart from what @elima https://github.com/elima stated and I have no time to investigate it further at the moment.

Hope you find a solution. Let us know if you do.

— Reply to this email directly or view it on GitHubhttps://github.com/joaquimrocha/Skeltrack/issues/9#issuecomment-15612424 .

Sherwin-Yi commented 11 years ago

I reinstall clutter avoid this issue.