'GTK4 application flagged as IDP.Generic by AVAST
I'm learning gtkmm4 and decided to run a simple example found here; however when i run the executable, it is instantly flagged by Avast as a malware IDP.Generic. Why is this happening? I have tried searching the web but ultimately, i found nothing relating to my problem. I am building the executable using cmake and Ninja.
Here is the source code:
#include <gtkmm.h>
class MyWindow : public Gtk::Window
{
public:
MyWindow();
};
MyWindow::MyWindow()
{
set_title("Basic application");
set_default_size(200, 200);
}
int main(int argc, char* argv[])
{
g_setenv("GTK_THEME", "Adwaita:dark", FALSE); // test line (works!)
//g_setenv("GTK_CSD", "0", FALSE); // test line
auto app = Gtk::Application::create("org.gtkmm.examples.base");
return app->make_window_and_run<MyWindow>(argc, argv);
}
Here is the content of the CMakeLists.txt file:
cmake_minimum_required(VERSION 3.10)
# set the project name
project(Test)
#generate compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Find dependencies
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTKMM REQUIRED gtkmm-4.0)
add_compile_options(${GTK4_CFLAGS_OTHER})
set(LIBRARIES ${LIBRARIES} ${GTK4_LIBRARIES})
include_directories(${GTKMM_INCLUDE_DIRS})
link_directories(${GTKMM_LIBRARY_DIRS})
# add the executable
add_executable(${CMAKE_PROJECT_NAME} ${SOURCE_FILES} test.cc)
#TARGET LINK LIBRARIES
target_link_libraries(${CMAKE_PROJECT_NAME} ${GTKMM_LIBRARIES})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
