GNOME Bugzilla – Bug 612749
Fix include of libtracker-client/tracker-client.h in libtracker-miner/tracker-miner.h
Last modified: 2010-03-19 09:28:28 UTC
Created attachment 156023 [details] [review] Fix include of libtracker-client/tracker-client.h in libtracker-miner/tracker-miner.h Include <libtracker-miner/tracker-miner.h> in a miner out of tracker source tree 'couse compilation fail with: /usr/include/tracker-0.7/libtracker-client/tracker.h:25:2: error: #error "only <libtracker-client/tracker-client.h> must be included directly." This is because libtracker-miner/tracker-miner.h include libtracker-client/tracker.h and not libtracker-client/tracker-client.h Patch attached
Comment on attachment 156023 [details] [review] Fix include of libtracker-client/tracker-client.h in libtracker-miner/tracker-miner.h Thanks for the patch, committed now in master!
brasero fails to compile with tracker 0.7.25 and also with 0.7.26 In file included from brasero-search-tracker.c:22: /usr/include/tracker-0.7/libtracker-client/tracker.h:25:2: error: #error "only <libtracker-client/tracker-client.h> must be included directly."
(In reply to comment #2) > brasero fails to compile with tracker 0.7.25 and also with 0.7.26 > In file included from brasero-search-tracker.c:22: > /usr/include/tracker-0.7/libtracker-client/tracker.h:25:2: error: #error "only > <libtracker-client/tracker-client.h> must be included directly." Is this the same bug? What file are you trying to include? We have changed the policy for including in our libraries to avoid this sort of issue in the future. Only one file is included now, tracker-client.h (for libtracker-client). If you're not doing that, you need to fix your build. Sorry for the inconvenience.