nazmulpcc / phpqt

11 stars 2 forks source link

Compiling on debian 12 error: use of deleted function Php::Value::Value(const void*) #2

Open Kvach-Lukich opened 2 months ago

Kvach-Lukich commented 2 months ago

can't compile uname -a Linux mydebian 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux apt install qtbase5-dev

GNU C++17 (Debian 12.2.0-14) version 12.2.0 (x86_64-linux-gnu)
compiled by GNU C version 12.2.0, GMP version 6.2.1, MPFR version 4.1.1-p1, MPC version 1.3.1, isl version isl-0.25-GMP

warning: MPFR header version 4.1.1-p1 differs from library version 4.2.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 62b090dbbefa50644117a3c13d47369a
src/Widgets/Layout.cpp: In member function Php::Value Layout::menuBar():
src/Widgets/Layout.cpp:49:74: error: use of deleted function Php::Value::Value(const void*)
   49 |     return Php::Object(Widget::CLASSPATH.c_str(), this->native->menuBar());
      |                                                                          ^
In file included from /usr/include/phpcpp.h:45,
                 from src/Widgets/../Core/Object.h:4,
                 from src/Widgets/Layout.h:4,
                 from src/Widgets/Layout.cpp:1:
/usr/include/phpcpp/value.h:59:5: note: declared here
   59 |     Value(const void *value) = delete;
      |     ^~~~~
src/Widgets/Layout.cpp: In member function Php::Value Layout::parentWidget():
src/Widgets/Layout.cpp:54:74: error: use of deleted function Php::Value::Value(const void*)
   54 |     return Php::Object(Widget::CLASSPATH.c_str(), this->native->menuBar());
      |                                                                          ^
/usr/include/phpcpp/value.h:59:5: note: declared here
   59 |     Value(const void *value) = delete;
      |     ^~~~~
make: *** [Makefile:96: src/Widgets/Layout.o] Ошибка 1

log.txt

nazmulpcc commented 1 day ago

@Kvach-Lukich It should be fixed now. If you could please check & update me that would be great.