samp-incognito / samp-gvar-plugin

GVar Plugin for SA-MP (San Andreas Multiplayer)
Apache License 2.0
12 stars 5 forks source link

Compatibility with Open.MP server (and ARM build) #5

Open vico93 opened 1 year ago

vico93 commented 1 year ago

I'm aware the developement of this plugin seems to be stopped since 2018, but anyway i just want to ask:

Is this plugin compatible with Open.MP beta server? And if yes, can the plugin be run on an arm cpu (like raspberry pi), as open.mp can do?

vico93 commented 1 year ago

Just FYI, i tried to clone the repository to it and do make but got this error:

==== Building gvar (release) ====
Creating bin/linux/Release
Creating obj/linux/Release
plugin.cpp
main.cpp
In file included from include/boost/preprocessor/repeat.hpp:15,
                 from include/boost/mpl/aux_/preprocessor/params.hpp:46,
                 from include/boost/type_traits/detail/template_arity_spec.hpp:12,
                 from include/boost/type_traits/detail/type_trait_def.hpp:14,
                 from include/boost/type_traits/remove_reference.hpp:21,
                 from include/boost/move/move.hpp:483,
                 from include/boost/unordered/detail/emplace_args.hpp:16,
                 from include/boost/unordered/detail/allocator_helpers.hpp:18,
                 from include/boost/unordered/unordered_map.hpp:17,
                 from include/boost/unordered_map.hpp:16,
                 from src/main.h:27,
                 from src/main.cpp:17:
include/boost/preprocessor/repetition/repeat.hpp:19:11: fatal error: boost/preprocessor/debug/error.hpp: No such file or directory
   19 | # include <boost/preprocessor/debug/error.hpp>
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [gvar.make:146: obj/linux/Release/main.o] Error 1
make: *** [Makefile:17: gvar] Error 2
ghost commented 1 year ago

I was able to build the project with GCC10 by typing make in root directory. Hovewer I had to uncomment those 3 lines and add -fPic to compiler flags:

//{ "GetGVarIterator", n_GetGVarIterator },
//{ "ResetGVarIterator", n_ResetGVarIterator },
//{ "AdvanceGVarIterator", n_AdvanceGVarIterator },