iAI icon indicating copy to clipboard operation
iAI copied to clipboard

plugin make file

Open meweez opened this issue 3 years ago • 1 comments

Hello, there was a problem for MakeFile in /phasar/examples/plugins.

clang++ -std=c++17 -Wall -Wno-return-type-c-linkage -O0 -fPIC -shared  `llvm-config --cppflags` MyIFDSProblem.cxx -o MyIFDSProblem.so
MyIFDSProblem.cxx:3:10: fatal error: 'phasar/DB/ProjectIRDB.h' file not found
#include "phasar/DB/ProjectIRDB.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Makefile:17: recipe for target 'ifdsproblem' failed
make: *** [ifdsproblem] Error 1

I replace

$(CXX) $(CXX_FLAGS) $(INCLUDE_DIRS) $(LLVM_FLAGS) $(IFDSPluginSrc) -o $(IFDSPlugin)

with

$(CXX) $(CXX_FLAGS) -I$(PHASAR_INCLUDE_DIR) $(LLVM_FLAGS) $(IFDSPluginSrc) -o $(IFDSPlugin)

to fix this.

meweez avatar Jun 29 '21 13:06 meweez

Meanwhile, the plugin example is broken more, due to the InitialSeeds refactoring. The Makefile implies phasar to be installed to the system. It should be replaced with a proper CMakeLists.txt.

All of this would be a good first issue for newbies, despite not being the easiest possible "good first issue" - maybe a good second issue ;-)

MMory avatar May 06 '22 14:05 MMory

Plugins were removed from phasar

fabianbs96 avatar Nov 30 '22 10:11 fabianbs96