CMake Error while installing sqliteman on Linux - linux

This is the first time for me to install sqliteman on Linux , I faced the following error and I don't know how to solve it , any ideas ?
root#kali:~# cmake --version
cmake version 2.8.9
root#kali:~# qmake --version
QMake version 2.01a
Using Qt version 4.8.2 in /usr/lib/i386-linux-gnu
root#kali:~# cd ~/mydownloads/sqliteman-1.2.2
root#kali:~/mydownloads/sqliteman-1.2.2# cmake .
-- Sqliteman 1.2.2 will be installed into /usr/local
-- *** Release build (use -DWANT_DEBUG=1 for debug one) ***
-- Qt4version:4.8.2
-- Qt4includes:/usr/include/qt4/QtDesigner/usr/include/qt4/QtDeclarative/usr/include/qt4/QtScriptTools/usr/include/qt4/QtDBus/usr/include/qt4/QtDesigner/usr/include/qt4/QtXml/usr/include/qt4/QtSql/usr/include/qt4/QtOpenGL/usr/include/qt4/QtNetwork/usr/include/qt4/QtXmlPatterns/usr/include/qt4/QtWebKit/usr/include/qt4/QtHelp/usr/include/qt4/QtUiTools/usr/include/qt4/QtTest/usr/include/qt4/QtScript/usr/include/qt4/QtSvg/usr/include/qt4/Qt3Support/usr/include/qt4/QtGui/usr/include/qt4/QtCore/usr/share/qt4/mkspecs/default/usr/include/qt4/usr/include/qt4/QtCore
-- Qt4libs:/usr/lib/i386-linux-gnu
CMake Error at cmake/modules/FindQScintilla.cmake:53 (MESSAGE):
Could not find QScintilla library
Call Stack (most recent call first):
CMakeLists.txt:132 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!

What I found for Ubuntu Trusty 14.04 is to install all qscintilla2 packages as in here:
http://www.ubuntuupdates.org/package/core/trusty/main/base/qscintilla2
then it works.

In this case your friend is apt-get:
sudo apt-get install libqscintilla2-12v5

Related

CMake : Could NOT find Qt5FontDatabaseSupport

I got the following error after running cmake for this :
Could NOT find Qt5FontDatabaseSupport (missing:
Qt5FontDatabaseSupport_LIBRARY Qt5FontDatabaseSupport_INCLUDE_DIR) (found
version "5.12.8")
I cannot find any package with that name in my linux repository.
That is one of the dependencies for the Qt QPA plugin , as stated in the CMakeLists.txt comments.
I use Kubuntu 20.04 with cmake 3.16 and Qt5.12.
Thanks.
Most likely you don't have the build dependencies installed. Qt5FontDatabaseSupport is part of the gui Qt module, for which the headers and devel files are installed with the qtbase5-dev package.
Kwin has many more build dependencies than qtbase, so the best if you install all of them with:
sudo apt build-dep kwin
at once, or with
sudo apt build-dep kwin-wayland
if you want to hack it under wayland.

how to fix haskell stack setup failed to compile sanity check on Mac OS 10.14.6

I've somehow messed up my haskell installation on MacOs 10.14.6
I've removed the ~/.stack and ~/.cabal folders and ran brew uninstall haskell-stack
I've installed ghc using
curl https://get-ghcup.haskell.org -sSf | sh
and then installed stack using
brew install haskell-stack
stack --version: Version 2.1.3 x86_64
cabal --version: cabal-install version 3.0.0.0
When I run stack setup, I get this:
The GHC located at /Users/angudavi/.stack/programs/x86_64-osx/ghc-8.6.5/bin/ghc-8.6.5 failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command: /Users/angudavi/.stack/programs/x86_64-osx/ghc-8.6.5/bin/ghc-8.6.5 /private/var/folders/rc/05xmxx2d1z94wfq8gjy5g8640000gn/T/stack-sanity-check-18076106c692e89a/Main.hs -no-user-package-db
Run from: /private/var/folders/rc/05xmxx2d1z94wfq8gjy5g8640000gn/T/stack-sanity-check-18076106c692e89a/
Standard error:
Loaded package environment from /Users/angudavi/.ghc/x86_64-darwin-8.6.5/environments/default
ghc: can't find a package database at /Users/angudavi/.cabal/store/ghc-8.6.5/package.db

Clang-format installed via Cygwin won't run

When I try running clang-format in the Cygwin64 terminal, I get the following output:
$ clang-format
: CommandLine Error: Option 'disable-symbolication' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
I also cannot run it in Git Bash, getting the following output:
$ clang-format
1 [main] clang-format (2208) C:\cygwin64\bin\clang-format.exe: *** fatal error - cygheap base mismatch detected - 0x180301410/0x1802FD410.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
I only have one cygwin1.dll in C:\cygwin64\bin, and rebooting doesn't help.
clang --version gives:
$ clang --version
clang version 5.0.1 (tags/RELEASE_501/final)
Target: x86_64-unknown-windows-cygnus
Thread model: posix
InstalledDir: /usr/bin
This is not much of an answer, but it's what I ended up doing. And it was a little tricky, so I'm going to document it here.
Note, I actually downgraded doxygen, because the latest was dependent on clang-format-5
Uninstall clang 5.0.1-2
Uninstall doxygen 1.8.14-2 (automatically added)
Uninstall libclang5.0 5.0.1-2
Uninstall vim-clang-format 4.0.1-1
Install doxygen 1.8.13-3
Then (press Back)
Uninstall clang 5.0.1-2 (automatically added)
Uninstall doxygen 1.8.13-3 (automatically added)
Install clang 4.0.1-1
Install doxygen 1.8.13-3
After all that, although there is no-longer an entry for clang-format, I clang-format-4.0.1 is on my computer and operational.

Could NOT find LIBBFD (missing: LIBBFD_BFD_LIBRARY LIBBFD_IBERTY_LIBRARY LIBBFD_OPCODES_LIBRARY LIBBFD_INCLUDE_DIRS)

While configuring cmake in linux getting dependency error
-- checking for module 'zlib'
-- package 'zlib' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):
-- checking for module 'libcurl'
-- package 'libcurl' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find LibElf (missing: LIBELF_LIBRARIES LIBELF_INCLUDE_DIRS)
Call Stack (most recent call first):
And not able to find the rpm packages for redhat using "Red Hat Enterprise Linux Server release 7.0 (Maipo)" machine, Please suggest me the path or location from where i can get these dependency rpm packages for redhat linux
Could NOT find LIBBFD
package 'zlib' not found , package 'libcurl' not found
"package" means a package config file e.g. /usr/lib64/pkgconfig/zlib.pc
Please use yum to decide a package name, like :
yum provides */libbfd.so
yum provides */zlib.pc
yum provides */libz.so
yum provides */libcurl.pc
yum provides */libcurl.so
Installing the packages :
# yum install binutils-devel zlib-devel libcurl-devel
Ref. comment about kcov :
"kcov" : # yum install elfutils-devel
cd build/ && cmake .. && make
.
.
[ 98%] Building C object src/CMakeFiles/kcov-system-daemon.dir/version.c.o
Linking CXX executable kcov-system-daemon
[100%] Built target kcov-system-daemon

Cabal install error hmatrix-0.15.2.1 on OSX 10.10 Yosemite + GHC 7.8 Cabal-1.22

I'm trying to install hmatrix-0.15.2.1 on OSX 10.10 Yosemite with GHC 7.8.3 and Cabal 1.22. The log gives this error message about the failure:
Checking foreign libraries... FAIL
*** Sorry, I can't link GSL.
*** Please make sure that the appropriate -dev packages are installed.
*** You can also specify the required libraries using
*** cabal install hmatrix --configure-option=link:lib1,lib2,lib3,etc.
What dependencies are required?
I referenced this question Can't Install hmatrix on my Ubuntu Linux machine for clues on required dependencies.
You can get GSL for OSX via brew install gsl
Other libraries you may potentially need from brew:
brew install liblas
brew install lapack

Resources