I tried installing APK Studio on my Ubuntu 15.04 machine but keep getting this error message:
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DAPP_REV_SHORT=\"0978cd4\" -DAPP_REV_LONG=\"0978cd4653fcfed5601d57b8e0f7cfade7f64d7a\" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o adb.o src/adb.cpp
In file included from ./include/adb.h:5:0,
from src/adb.cpp:1:
./include/process.h:4:30: fatal error: QRegularExpression: No such file or directory
#include <QRegularExpression>
^
compilation terminated.
Makefile:474: recipe for target 'adb.o' failed
make: *** [adb.o] Error 1.
How can I resolve this issue?
You are probably using an unsupported QT version, check your version with:
$ qmake -version
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/x86_64-linux-gnu
Make sure you have GCC 4.6+, QT 5.2+
On Ubuntu, you can run:
$ sudo apt-get install qt5-qmake qt5-default libqt5opengl5-dev
$ qmake -version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
Running make again should build ApkStudio with no errors.
Related
when I using this command to install psycopg2 in PyCharm terminal:
pip3 install psycopg2
shows error:
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g "-DPSYCOPG_VERSION=2.9.3 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/xiaoqiangjiang/source/reddwarf/backend/pydolphin/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/xid_type.c -o build/temp.macosx-10.9-universal2-3.10/psycopg/xid_type.o
clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_asis.o build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_binary.o build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_datetime.o build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_list.o build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_pboolean.o build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_pdecimal.o build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_pfloat.o build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_pint.o build/temp.macosx-10.9-universal2-3.10/psycopg/adapter_qstring.o build/temp.macosx-10.9-universal2-3.10/psycopg/aix_support.o build/temp.macosx-10.9-universal2-3.10/psycopg/bytes_format.o build/temp.macosx-10.9-universal2-3.10/psycopg/column_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/connection_int.o build/temp.macosx-10.9-universal2-3.10/psycopg/connection_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/conninfo_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/cursor_int.o build/temp.macosx-10.9-universal2-3.10/psycopg/cursor_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/diagnostics_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/error_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/green.o build/temp.macosx-10.9-universal2-3.10/psycopg/libpq_support.o build/temp.macosx-10.9-universal2-3.10/psycopg/lobject_int.o build/temp.macosx-10.9-universal2-3.10/psycopg/lobject_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/microprotocols.o build/temp.macosx-10.9-universal2-3.10/psycopg/microprotocols_proto.o build/temp.macosx-10.9-universal2-3.10/psycopg/notify_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/pqpath.o build/temp.macosx-10.9-universal2-3.10/psycopg/psycopgmodule.o build/temp.macosx-10.9-universal2-3.10/psycopg/replication_connection_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/replication_cursor_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/replication_message_type.o build/temp.macosx-10.9-universal2-3.10/psycopg/solaris_support.o build/temp.macosx-10.9-universal2-3.10/psycopg/typecast.o build/temp.macosx-10.9-universal2-3.10/psycopg/utils.o build/temp.macosx-10.9-universal2-3.10/psycopg/win32_support.o build/temp.macosx-10.9-universal2-3.10/psycopg/xid_type.o -L/opt/homebrew/opt/libpq/lib -lpq -lssl -lcrypto -o build/lib.macosx-10.9-universal2-3.10/psycopg2/_psycopg.cpython-310-darwin.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit code 1
I could run this command in the macOS Monterey terminal, but did not work in PyCharm, what should I do to make it work in PyCharm terminal? I already tried to restart the PyCharm. Am I missing something? what is the different with the PyCharm terminal and macOS terminal?
I tried to export LIBRARY_PATH in PyCharm terminal like this:
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/openssl#3/3.0.1/lib
works.
I tried install psycopg2-binary==2.9.3 but it won't worked.
#Dolphin answer helped me but I needed change version from 3.0.1 to 3.0.5
My commands in terminal
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/openssl#3/3.0.5/lib
pip install psycopg2-binary==2.9.3
I am trying to install nodejs from source. When I run 'make install' I am getting:
node-v6.3.1]# make install
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/home/centos/node-v6.3.1/out'
g++ -I../deps/gtest -I../deps/gtest/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -Wno-missing-field-initializers -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/centos/node-v6.3.1/out/Release/.deps//home/centos/node-v6.3.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o.d.raw -c -o /home/centos/node-v6.3.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o ../deps/gtest/src/gtest-death-test.cc
In file included from ../deps/gtest/include/gtest/internal/gtest-internal.h:40:0,
from ../deps/gtest/include/gtest/internal/gtest-death-test-internal.h:40,
from ../deps/gtest/include/gtest/gtest-death-test.h:41,
from ../deps/gtest/src/gtest-death-test.cc:34:
../deps/gtest/include/gtest/internal/gtest-port.h:259:41: fatal error: ctype.h: No such file or directory
#include <ctype.h> // for isspace, etc
I installed c and c++ libraries as well using: yum -y install gcc gcc-c++ make.
I also tried to install via rpm:
error: %pre(nodejs-1:6.3.1-1nodesource.el7.centos.x86_64) scriptlet failed, exit status 127
Error in PREIN scriptlet in rpm package 1:nodejs-6.3.1-1nodesource.el7.centos.x8 6_64
Verifying : 1:nodejs-6.3.1-1nodesource.el7.centos.x86_64 1/1
Failed:
nodejs.x86_64 1:6.3.1-1nodesource.el7.centos
Could you please anyone help what might be the issue. Thanks
I have an error when I'm trying to compile gettext on Fedora 20.
Firstly, I type make and I have this error:
[anthony#localhost ms-sys-2.3.0]$ make
cc -O2 -ansi -pedantic -Wall -c -I inc -D PACKAGE=\"ms-sys\" -D LOCALEDIR=\"/usr/local/share/locale\" -idirafter include-fallback -D_FILE_OFFSET_BITS=64 -o obj/fat32fd.o src/fat32fd.c
make: cc: Command not found
make: *** [obj/fat32fd.o] Error 127
Please help me!
Install gcc by running yum
yum install gcc
Use gcc instead of cc in your makefile and cli
Trying to get one of the samples compiled on Ubuntu 12.04
I’m using
make -f Makefile-x64-static
However, I get the error
make: gcc4: Command not found
I tried switching from gcc4 to gcc in the makefile.
However, I get the compile errors
note: #pragma message: IMPORTANT NOTE: The FBX SDK API changed substantially. Please define FBXSDK_NEW_API in your project and fix compilation errors as instructed in fbxsdk_compatibility.h.
And the link error
/usr/bin/ld: cannot find -luuid
Any tips would be appreciated.
Pre-requisites
sudo apt-get install uuid-dev
sudo apt-get install libxmu-dev libxi-dev
sudo apt-get install libx11-dev
Makefile modifications required
Change gcc4 to gcc
CC = gcc
LD = gcc
add -lX11 to LIBS
LIBS = -lfbxsdk-$(LIBFBXVERSION)$(STATIC) -lm -lrt -luuid -lc -lstdc++ -lpthread -ldl -lglut_gcc34-amd64 -lGLEW_amd64 -lGLU -lGL -lXmu -lX11
add -DFBXSDK_NEW_API to C_FLAGS and CXX_FLAGS
CFLAGS = -m64 -DFBXSDK_NEW_API
CXXFLAGS = -m64 -DFBXSDK_NEW_API
I'm trying to build OpenSSH 5.1 on Cygwin. I'm using the following configure command:
./configure --prefix=/usr --sysconfdir=/etc --libexecdir='${sbindir}' \
--localstatedir=/var --datadir='${prefix}/share' --mandir='${datadir}/man' \
--infodir='${datadir}/info'
The configure command runs OK, but when I try to make I get this error:
gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -fno-builtin-memset -I. -I.. -I. -
.. -DHAVE_CONFIG_H -c bsd-arc4random.c
In file included from ../openbsd-compat/openbsd-compat.h:45,
from ../includes.h:169,
from bsd-arc4random.c:17:
../openbsd-compat/getrrsetbyname.h:57:26: arpa/nameser.h: No such file or directory
../openbsd-compat/getrrsetbyname.h:59:20: resolv.h: No such file or directory
I'm a bit stuck. Anyone got any ideas.
The particular problem in this build was that the Cygwin system didn't have the minires package installed. You should have first installed minires (1.02 or smth) which installs the necessary arpa/nameser*.h and resolv.h files in the appropriate places (/usr/local/include or /usr/include).
Openssh is available in Cygwin. Just use that.