openGL with glew - file missing - c

I tried getting this repository to work.
And here is the problem: I saw that the demo program included GLEW as a static library (not sure about that - the source code of GLEW is included. Is that a library then? I don't know) and I thought because I'm on Ubuntu (20.04) that could be done easier. So I used the sudo apt-get install libglew-dev to install all needed header files and so on. Easy! But then there came a part in the demo where the header file eglew.h was used and gcc could not find that. I looked into /usr/include/GL and this header file was really missing. I tried installing a bunch of other packages. No success.
Does someone out there know how I get the package with this header file? Or is there no other way around than to do it like in the demo with a CmakeList?

You should be able to find the missing header file from here which is the official site: http://glew.sourceforge.net/
If not, you can defiantly find the missing header here:
https://chromium.googlesource.com/external/github.com/google/quic-trace/+/refs/heads/master/third_party/glew/include/GL

Related

Where is the header file of emscripten/bind.h?

I am using emcc to compile c++ to wasm on Debian 11.
It is successfully done.
So I think emcc knows the path.
But VS Code shows error squiggle under #include <emscripten/bind.h> because it doesn't know the path to the header file.
Where is the header file?
I'm not familiar to c++ and I install emsdk via git (I just follow the official tutorial here https://emscripten.org/docs/getting_started/downloads.html).
found at ./emsdk/upstream/emscripten/bind.h
https://github.com/emscripten-core/emscripten/blob/main/system/include/emscripten/bind.h

sphinxclient.h header is not found on debian

I'm trying to use the C client library of http://sphinxsearch.com in my project. It compiles fine on ubuntu using libsphinxclient-dev package
However when I try to compile it on debian sid, it complains that the header sphinxclient.h is missing, and I can't find any package providing this header.
Is there any "clean" way to solve this problem ?
Seems libsphinxclient is not included in Debian upstream and there isn't a separate package.
You can grab the deb packages from Sphinx website,libsphinxclient is installed in /usr/share/sphinxsearch/api/libsphinxclient (you might need to copy the header to include folder or add this folder to path).

What is xutils.h, and what cflags/libs/packages do I need?

I am thinking about maybe creating my own modified version of a GTK2 libwnck widget. In the source files of these widgets, it includes a file called xutils.h. This header file is present in GNOME's libwnck git repository, but it is not present in my distro's libwnck header files.
I have tried searching for an xutils package for Arch Linux, but I cannot find such a package. I also looked in Fedora's libwnck header files, and that does not have an xutils.h file either.
Here are my questions:
What cflags/libs do I need in order to use this header file, or else what packages do I need to install?
Why is the xutils.h file not present in my distro's libwnck header files?
This program should be able to be linked against a distro's stock libraries. Potential users should not be expected to download and compile other libwnck source files.
Please note that the header file I am looking for is called xutils.h (with an "s"), not Xutil.h.
I don't claim to know anything, but a quick google suggests that xutils.h is related to the X11 client side library, and that it comes with the libx11 package on Arch.
This google link xutils.h still hints at an X11 related function, and it is interesting that the guards on the file are WNCK_XUTILS_H

Xcode cannot find installed library

I am using Mac OS X 10.8 with Xcode. I have installed the jansson library, with the following commands:
./configure
make
make check
sudo make install
Everything went fine and the library installed correctly. I have created a smple .c file with a text editor and tried to include the <jansson.h> file. I builded everything and it gave no errors, meaning that the library is installed on my system.
Now, Xcode doesn't find the library at all, saying that <jansson.h> is not found. I have tried to restart my Mac, but nothing happens. If anyone knows a possible solution, I will be grateful. Thanks!
I resolved the issue, by going under Build phases, and searching for HEADER_SEARCH_PATH. Then I changed the search path label with /usr/local/include, where the library was installed.

Making libcurl CodeLite Project

I have downloaded Curl and would like to add libcurl only (no other stuffs) to my CodeLite Workspace. I have seen VC Project files but I do not use VC (and I use Primarily Ubuntu).
So I need help to know which files to Include and any pre-processor that I need to include for the library to compile.
I have tried adding all *.c/*.h files but I keep getting errors (if those errors can be of help I will post them). Add the include folder in curl root directory does not help either.
Thanks
I ended up with compiling library with terminal and just tell CL to find it there!

Resources