Cannot install Cairo packages in Arch Linux - c++

I've install r and cairo library for Arch Linux distribution. But when I install the cairo package I've got following error.
cairogd.c: In function ‘ptr_to_raw’:
cairogd.c:491:18: error: expected expression before ‘!=’ token if
(TYPEOF(ptr) != EXTPTRSXP)
cairogd.c: In function ‘raw_to_ptr’:
cairogd.c:509:18: error: expected expression before ‘!=’ token if
(TYPEOF(ptr) != EXTPTRSXP)
cairogd.c:511:18: error: expected expression before ‘!=’ token
if (TYPEOF(raw) != RAWSXP)
I've also install all cairo requirement in Arch Linux.
My gcc version is "gcc version 5.2.0 (GCC)"
I've search and googling, and found they just install the freetype2 packages. When I try it, its cannot solve my problem.
Is there anything I can do to solve this problem?
Thank you for your help
Bayu Permadi

This seems to be a bug in freetype2 (see the corresponding bug report in freetype https://savannah.nongnu.org/bugs/?45376 and Cairo https://github.com/s-u/Cairo/issues/13).
Installing freetype2-git from AUR will solve the problem until freetype2 is updated in the main repository.

Related

Failure to find x11 on nana cmake

I am loading up nana source in CLion and cmake gives me the an error saying x11 is set to NOTFOUND
I have tried installing x11 dev libs on ubuntu but it has not helped :/
EDIT: I have fixed the issue above by installing (2nd Code block)
sudo apt install libxft-dev
however now I am seeing the following error (1st Code Block)
CODE BLOCK 1
fatal error: X11/Xcursor/Xcursor.h: No such file or directory
#include <X11/Xcursor/Xcursor.h>
^~~~~~~~~~~~~~~~~~~~~~~
CODE BLCOK 2
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/jirubizu/Downloads/nana_hotfix/X11_Xft_INCLUDE_PATH
used as include directory in directory /home/jirubizu/Downloads/nana_hotfix
X11_Xft_LIB (ADVANCED)
linked by target "nana" in directory /home/jirubizu/Downloads/nana_hotfix
expected to compile but for some reason its not
Try it before the load:
sudo apt install libxcursor-dev
here are many X11 packages. libxft-dev seems an odd choice. It os a small part of X11 and may or may not bring in X11 libraries you need. Perhaps try installing libxcursor-dev and see what happens.
from n. 'pronouns' m
It works for me
apt-get install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev
That should do it!

‘SSL_R_SHORT_READ’ was not declared in this scope error while installing rstudio-desktop-1.0.143

I have R-3.4.0 installed in a x86 system, and want to install the newest rstudio-desktop from AUR. I used MaoCPU's patch file at the comments and then run makepkg -sri after some time an error appeared saying :
/home/orbitz/.bin/AUR/rstudio-desktop/src/rstudio-rstudio-adca7c8/src/cpp/core/http/SocketProxy.cpp:152:60: error: ‘SSL_R_SHORT_READ’ was not declared in this scope error.code().value() == ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ);
Here is a complete output of the procedure. Does anyone have an idea on how to fix this ?
P.S I also tried to install the previous version (rstudio-desktop 1.0.136-2) but with the same result.
Arch Linux recently migrated openssl to 1.1.0.
If R hasn't been updated, you probably need to install openssl-1.0 for compatibility. See the migration todo list for details.

Makefile error raspberry-pi 3

I have an issue with Codelite compilation, running on raspbian jessie - these are the (known) steps I have taken to produce it.
First I installed Codelite with apt-get install Codelite, then produced a c++ project.
When running build project I get the error:
/bin/sh -c ' -j 4 -e -f Makefile'
/bin/sh: 1: -j: not found
0 errors, 0 warnings
I note that this error has been found and corrected previously, through running a different version of Codelite from 6.1.1 (that which apt-get installs). I therefore found the updated version of armhf .deb codelite from the rasbian archive with gdebi-gtk. However the updated version (9.1.1) produces the following error (install attempt with the graphical debian):
Error: Dependency is not satisfiable: libclang 1-3.8 (>=3.2)
I do not understand why the package manager cannot update these packages - do they not exist for the pi? I ran the manager as root, so I do not think it is a permissions issue.
EDIT 1:
Thank you for that Fabre. My Enviromental Variables file now looks like this:
CodeLiteDir=/usr/share/codelite
export MAKE=make
I still get the same error however.

clang/AST/RecursiveASTVisitor.h file not found

I followed the steps on this website:http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/
And I've installed clang 2.7 on my ubuntu,but I get the error : /clang/AST/RecursiveASTVisitor.h file not found.
I use the find command to search the RecursiveASTVisitor.h but I can just find ASTVisitor.h file. So I think maybe I just installed the wrong version. But I don't know where to find the information that from which version clang begin to use RecursiveASTVisitor.
RecursiveASTVisitor.h was added to clang in version 2.8.

Problems while trying to build LLVM and Clang

I tried to build LLVM and Clang but am getting this error :
cp: cp: cp: cannot stat /home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/asan-i386/libcompiler_rt.a'cannot stat/home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/ubsan-x86_64/libcompiler_rt.a'cannot stat `/home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/ubsan-i386/libcompiler_rt.a': No such file or directory
: No such file or directory: No such file or directory
I went through Cannot build LLVM and Clang but it doesn't seem to have any reasons why he had gotten a similar error (hence I am asking it again). I have tried to remove the -Werror flags in compiler-rt/make/ relevant files, since before that, it was stopping on this error :
/home/saurabh/Build/clang-build/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_mutex.cc:53:13: error:
comparison of constant 4294967295 with expression of type 'int' is always
false [-Werror,-Wtautological-constant-out-of-range-compare]
if (z == MutexTypeLeaf) {
~ ^ ~~~~~~~~~~~~~
1 error generated.
I had asked on #llvm and had been suggested that. Any ideas what could be causing this ?
Fwiw, I am on Ubuntu 12.10 64-bit.
You have to follow http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary. Be aware of the software dependencies you have to install. Also, check again if your --prefix=directory is set. If you cannot install Clang over LLVM (after you succeded to install LLVM), you can try install it using apt-get install clang and clang++. Therefore, you can compile your LLVM passes using this clang. For other corresponding packages, like VMkit for Java, you have to install ant and oracle jdk.
My LD_LIBRARY_PATH environment variable wasn't set properly. After I corrected it, this problem went away.