Setting up go-gl on windows? GLFW not found? - opengl

I'm trying to get go-gl to work on windows. I've downloaded mingw and I've installed glfw according to this question (I put the dll in System32).
I download triangle.go from the examples github and setup this folder structure on my desktop:
/gocode
/src
/gogltest
triangle.go
I set the gocode folder as the gopath, I cd into gogltest and run go get. It downloads the files into gocode/src/github.com/ and I get this output:
# github.com/go-gl/glfw3
..\github.com\go-gl\glfw3\clipboard.go:4:24: fatal error: GLFW/glfw3.h: No such
file or directory
//#include <GLFW/glfw3.h>
^
compilation terminated.
# github.com/go-gl/gl
In file included from ..\github.com\go-gl\gl\attriblocation.go:7:0:
gl.h:2:21: fatal error: GL/glew.h: No such file or directory
#include <GL/glew.h>
^
compilation terminated.
What am I missing that will make glfw work for me?

Related

Can't properly set up GLFW with C++ and VS Code

I'm on a Windows, using c++17 and trying to use GLFW in one of my projects. This is what I tried, yet it doesn't work:
I opened up an empty folder in VS Code, and added src and Dependencies folders. Then downloaded the GLFW pre-compiled binaries. I created a folder inside Dependencies for GLFW, then pasted the include and lib-vc2022 folders from the pre-compiled binaries inside it.
Then I opened c_cpp_properties.json from inside the .vscode folder in the workspace and added ${workspaceFolder}/Dependencies/GLFW/include/** in the "includePath" list.
I ran c++ code which started with #include <GLFW\glfw3.h>. I got this error:
App.cpp:2:10: fatal error: GLFW\glfw3.h: No such file or directory
2 | #include <GLFW\glfw3.h>
| ^~~~~~~~~~~~~~
compilation terminated.
I followed a tutorial I found all throughout this, and tried others. Still cannot get it to work. Does anyone know why?
Just remove ** from path: "${workspaceFolder}/Dependencies/GLFW/include"

OpenCV 3.0: Error Aruco.hpp no such file or directory

I have a problem,i am working on the raspberry PI with OPenCV 3.0+Aruco. I have installed openCV 3.0 and also the openCV_contrib, with a correct process of installation and build. But when i try to compile a project that is detect_board.cpp that is placed in the opencv_contrib i get the following error:
aruco.hpp is not a file or directory.
But the file aruco.hpp is there. It is in the opencv_contrib-master/modules/aruco/include/opencv2. The header file that are included in the program are:
#include <opencv2/highgui.hpp>
#include <opencv2/aruco.hpp>
#include <vector>
#include <iostream>
it seems u don't have openCV 3.1.- installed!
aruco is an extra module for openCV3 ...
http://docs.opencv.org/master/d9/d6d/tutorial_table_of_content_aruco.html#gsc.tab=0
just run cmake gui on aruco folder in opencv_contrib-master by creating a build folder inside it, and then open terminal at the folder location and sudo make install. this works for single module installation from contrib-master .

Protobuf helloworld compile error

I checked out the protobuf repository, built with a custom prefix and installed, then copy&pasted the Person example from Google and compiled with protoc. That was OK.
But when I include Person.pb.h in my CPP file, I get:
/home/name/usr/include/google/protobuf/repeated_field.h:53:47: fatal error:
google/protobuf/stubs/type_traits.h: No such file or directory
That file was not installed. Is it a bug?

tbb GettingStarted example is not compiling

I have sources the tbbvars.csh file.
I have opened the example directory as I was guided (/GettingStarted/sub_string_finder), and run make.
Unfortunately I got the following error:
sub_string_finder.cpp:32:30: error: tbb/parallel_for.h: No such file or directory
sub_string_finder.cpp:33:31: error: tbb/blocked_range.h: No such file or directory
sub_string_finder.cpp:35: error: tbb is not a namespace-name
Does anybody have a clue?
You must include tbb directory to compile your example

Missing tk.h and tcl.h files when building VRip

I am trying to compile VRip in Ubuntu 10.04, using the site http://graphics.stanford.edu/software/vrip/guide/ as a guide. It relies on installation of Tcl and Tk -- I have acquired the latest versions of these from the synaptic package manager.
When I write "make depend", I get the error:
In file included from vripInit.cc:30: vripInit.h:22:17: error: tcl.h:
No such file or directory vripMain.cc:22:16: error: tk.h: No such file
or directory In file included from vripMain.cc:28: vripInit.h:22:17:
error: tcl.h: No such file or directory In file included from
vripMiscCmds.cc:29: vripMiscCmds.h:22:17: error: tcl.h: No such file
or directory In file included from vripFillCmds.cc:29:
vripFillCmds.h:22:17: error: tcl.h: No such file or directory In file
included from vripFileCmds.cc:29: vripFileCmds.h:22:17: error: tcl.h:
No such file or directory In file included from vripGridCmds.cc:29:
vripGridCmds.h:22:17: error: tcl.h: No such file or directory In file
included from vripRangeCmds.cc:36: vripRangeCmds.h:21:17: error:
tcl.h: No such file or directory In file included from
vripGUICmds.cc:37: vripGUICmds.h:22:17: error: tcl.h: No such file or
directory vripGUICmds.cc:43:16: error: tk.h: No such file or directory
In file included from vripPlyCmds.cc:32: vripPlyCmds.h:22:17: error:
tcl.h: No such file or directory rm makedep.bak
It seems to be looking for header files and not finding them. But I'm not sure where to tell it to look. Could anyone with more experience help out? I've spent a good couple of hours trying to figure this out without any success... :S
Thanks,
LPlates
Install tcl-dev package using apt or synaptic; tcl contains the runtime, while tcl-devel contains header and development files. Do the same with tk-dev