[haiku-development] Re: Help regarding GSoC idea : Tracker add-on for a version control system

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 08 Mar 2018 11:37:46 +0000

8 mars 2018 11:24 "Hrishi Hiraskar" <hrishihiraskar@xxxxxxxxx> a écrit:

Finally, compilation successsfull :D

I removed the boost/lexical_cast from the code. Now, I can compile MoleSVN 
with gcc2.

But now I have a different problem.
I copied the executable to ~/config/non-packaged/add-ons/Tracker/
Now I get MoleSVN in Tracker Addons

But on selecting it, following error is shown:
Error Symbol not found loading Add-On MoleSVN

Any idea on why is this error occuring???

It would be helpful to share your changes (maybe make a fork of the project on 
github and push the changes there) so we can have a closer look at it.

I would guess that you removed this from main.cpp:
#include <be/add-ons/tracker/TrackerAddon.h>

This header file 
(https://git.haiku-os.org/haiku/tree/headers/os/add-ons/tracker/TrackerAddOn.h
is very important, it declares process_ref as an extern "C" function. If this 
declaration is missing, the code will still compile but the function will be 
exported with C++ linkage, and Tracker will be unable to find it.

The line should however be modified to remove "be" from the path:
#include <add-ons/tracker/TrackerAddon.h>

-- 
Adrien.

Other related posts: