install x11 in mac 10.10.1 - macos

I am trying to run a program in this system.
There is a makefile in the package. And I also need X11 to run it, so I have installed xQuarts,and add all the (potentially) useful path to the PATH.
when I type "$PATH" in the terminal,
it shows:
-bash:
/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin: No such file or directory
I used "make all" in my source code package, it result in the following error:
./Xlibext.c:2:10: fatal error: 'X11/Xlib.h' file not found
#include "X11/Xlib.h"
^
1 error generated.
I have reviewed some other posts, but I couldn't find a solution yet. Can anyone help?

Related

fatal error: 'libavcodec/avcodec.h' file not found caused by zergon321/reisen

When running Go code on Mac M2 (important, because installation of related libs work differently on Linux) that imports "github.com/zergon321/reisen" I got this:
# github.com/zergon321/reisen
/Users/ido/go/pkg/mod/github.com/zergon321/reisen#v0.1.4/audio.go:4:11: fatal error: 'libavcodec/avcodec.h' file not found
#include <libavcodec/avcodec.h>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
I have ffmpeg (includes the libavcodec/avcodec.h header) installed using brew
brew install ffmpeg
but it doesn't get picked up by itself.
This worked to fix it:
If you indeed installed ffmpeg with brew, the header file should be there -> /opt/homebrew/Cellar/ffmpeg/5.1.2/include/libavcodec/avcodec.h (lib version could be different).
If it is not there for some reason, you can try to locate the header file using find / -name "avcodec.h"
Once you have established avcodec.h's location, note the full path to the /include directory and run your go code passing the following flag:
CGO_CPPFLAGS="-I<path/to/include/directory>" go run <your file name or a period>
The full command for me looked like this:
CGO_CPPFLAGS="-I/opt/homebrew/Cellar/ffmpeg/5.1.2/include" go run .

'gtk/gtk.h' file not found Mac

I'm trying to run my projet ut it makes me this error when I run it
fatal error: 'gtk/gtk.h' file not found
include < gtk/gtk.h >
1 error generated.
(I already install gtk+ and gtk3+)
Thanks for your help
I got a cpp to build by including the right header path when compiling as shown in this thread: 'gtk/gtk.h' file not found, make error on mac #23.
-I/usr/include/gtk-2.0
To me, it was a bit different since I had installed gtk+ via homebrew. So I did:
-I/usr/local/Cellar/gtk+/2.24.32_2/include/gtk-2.0/
I hope this helps.

Installing tortonnel - missing 'boost/shared_ptr.hpp'

Trying to install Tortunnel, i have downloaded ;
http://www.thoughtcrime.org/software/tortunnel/tortunnel-0.3.tar.gz
extracted the file changed the directory am in to the extracted folder with terminal
cd tortunnel-0.3
and applied the
./configure
got to the step where i have to
make && make install
and then i got ;
./TorProxy.h:33:10: fatal error: 'boost/shared_ptr.hpp' file not found
#include <boost/shared_ptr.hpp>
^
1 error generated.
make: *** [TorProxy.o] Error 1
i made sure to install boost, and since i got brew on my mac it was simple;
brew install boost
without changing the the directory am in, i assumed it wont effect the boost installation.
then i ran the command;
make && make install
got the same error.
going over the files i made sure shared_ptr.hpp is present, and the file location is;
/usr/local/Cellar/boost/1.60.0_2/include/boost
the tortunnel-0.3 file location is ;
/Users/PK/Downloads
so is this error i am getting because the files locations as i assume ?, and how could i fix this ?

Gitian error while compiling Bitcoin dependencies for OSX

I'm trying to compile Bitcoin in Gitian for OSX. I've ran the following line.
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/gitian-osx-native.yml
That produces an error in the build log as follows.
cd libprunetrie && make
make[1]: Entering directory `/home/ubuntu/build/osx-cross-depends/build/toolchain4-10cc648683617cca8bcbeae507888099b41b530c/cctools2odcctools/odcctools-809/libprunetrie'
mkdir -p `dirname PruneTrie.o`
In file included from allocate.c:29:0:
../include/stuff/errors.h:39:1: error: unknown type name ‘uint32_t’
../include/stuff/errors.h:79:5: error: unknown type name ‘kern_return_t’
../include/stuff/errors.h:86:5: error: unknown type name ‘kern_return_t’
What do I need to do to make this work? If I'm not including enough information, please let me know what you need me to tell you. I didn't change the yml file from the official Bitcoin sources or anything else and I'm compiling on a Ubuntu 12.04.4 64Bit VirtualBox instance using LXC.
In case anyone else comes accross this issue, it has something to do with the way a Mac OSX system packages the tar file. You can't package it on a regular Linux system, it has to be Darwin Unix. (Mac) I came accross the link below which points to a ready made version of the stripped down Apple SDK file for Bitcoin. (MacOSX10.7.sdk.tar.gz)
https://github.com/deuscoin/deuscoin/blob/master/doc/building-deuscoin.md
Hopefully this helps someone else.

Error building the webrtc code on mac

This is the error:
sys/cdefs.h' file not found
what i've done is just follow the offical steps,the" gclient sync --force" prompt the following errors:
In file included from /Users/ted/Desktop/webrtcSrc/WD/trunk/third_party/llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc:14:
In file included from /Users/ted/Desktop/webrtcSrc/WD/trunk/third_party/llvm/projects/compiler-rt/lib/asan/asan_allocator.h:19:
In file included from /Users/ted/Desktop/webrtcSrc/WD/trunk/third_party/llvm/projects/compiler-rt/lib/asan/asan_interceptors.h:18:
/Users/ted/Desktop/webrtcSrc/WD/trunk/third_party/llvm/projects/compiler-rt/lib/interception/interception.h:90:10: fatal error: 'sys/cdefs.h' file not found
=====
what the problem?
On Mavericks? Try typing "xcode-select --install" to pop up the dialog to install the Xcode command-line tools. That should give you a /usr/include directory and then building LLVM should work.
Ref: http://clang-developers.42468.n3.nabble.com/Naive-Mavericks-Trunk-Build-Errors-td4035480.html

Resources