Skip to content

Instantly share code, notes, and snippets.

@knewter
Created April 3, 2014 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knewter/9963213 to your computer and use it in GitHub Desktop.
Save knewter/9963213 to your computer and use it in GitHub Desktop.
configure:6560: checking GLU Callbacks uses Tiger Style
configure:6603: g++ -c -g -Wall -O2 -fPIC -g -O2 -Wno-deprecated-declarations -fomit-frame-pointer -fno-strict-aliasing -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/usr/local/lib/wx/include/gtk2-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:51:64: error: invalid conversion from 'GLvoid (*)(...) {aka void (*)(...)}' to '_GLUfuncptr {aka void (*)()}' [-fpermissive]
gluTessCallback(tess,GLU_TESS_VERTEX,(GLvoid (*)(...)) foo);
^
In file included from conftest.cc:37:0:
/usr/include/GL/glu.h:340:23: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, _GLUfuncptr)' [-fpermissive]
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
^
configure:6609: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_VOID_P 8
| #define HAVE_GL_GL_H 1
| #define HAVE_GL_GLU_H 1
| #define HAVE_GL_SUPPORT 1
| #define HAVE_GLINTPTR 1
| #define HAVE_GLINTPTRARB 1
| #define HAVE_GLCHAR 1
| #define HAVE_GLCHARARB 1
| #define HAVE_GLHALFARB 1
| #define HAVE_GLINT64EXT 1
| /* end confdefs.h. */
|
| #ifdef WIN32
| # include <windows.h>
| # include <gl/glu.h>
| #elif defined(HAVE_GL_GL_H)
| # include <GL/glu.h>
| #elif defined(HAVE_OPENGL_GL_H)
| # include <OpenGL/glu.h>
| #endif
| #ifndef CALLBACK
| # define CALLBACK
| #endif
| void CALLBACK foo() {};
|
| int
| main ()
| {
|
| GLUtesselator* tess;
| gluTessCallback(tess,GLU_TESS_VERTEX,(GLvoid (*)(...)) foo);
|
| ;
| return 0;
| }
configure:6637: result: no
configure:6646: checking for wx/stc/stc.h
configure:6665: g++ -c -g -Wall -O2 -fPIC -g -O2 -Wno-deprecated-declarations -fomit-frame-pointer -fno-strict-aliasing -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/usr/local/lib/wx/include/gtk2-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT conftest.cc >&5
configure:6671: $? = 0
configure:6675: test -z
|| test ! -s conftest.err
configure:6678: $? = 0
configure:6681: test -s conftest.o
configure:6684: $? = 0
configure:6695: result: yes
configure:6714: checking if we can link wxwidgets programs
configure:6758: g++ -o conftest -g -Wall -O2 -fPIC -g -O2 -Wno-deprecated-declarations -fomit-frame-pointer -fno-strict-aliasing -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/usr/local/lib/wx/include/gtk2-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -shared -fPIC conftest.cc >&5
conftest.cc: In member function 'virtual bool MyApp::OnInit()':
conftest.cc:55:47: error: no matching function for call to 'wxGLCanvas::wxGLCanvas(wxWindow*, int, const wxPoint&, const wxSize&, int)'
wxDefaultPosition,wxDefaultSize,0);
^
conftest.cc:55:47: note: candidates are:
In file included from /usr/local/include/wx-3.1/wx/glcanvas.h:192:0,
from conftest.cc:44:
/usr/local/include/wx-3.1/wx/gtk/glcanvas.h:23:5: note: wxGLCanvas::wxGLCanvas(wxWindow*, wxWindowID, const int*, const wxPoint&, const wxSize&, long int, const wxString&, const wxPalette&)
wxGLCanvas(wxWindow *parent,
^
/usr/local/include/wx-3.1/wx/gtk/glcanvas.h:23:5: note: no known conversion for argument 3 from 'const wxPoint' to 'const int*'
/usr/local/include/wx-3.1/wx/gtk/glcanvas.h:20:22: note: wxGLCanvas::wxGLCanvas(const wxGLCanvas&)
class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasX11
^
/usr/local/include/wx-3.1/wx/gtk/glcanvas.h:20:22: note: candidate expects 1 argument, 5 provided
conftest.cc:53:29: warning: unused variable 'foo' [-Wunused-variable]
wxStyledTextCtrl * foo = new wxStyledTextCtrl();
^
conftest.cc:54:23: warning: unused variable 'bar' [-Wunused-variable]
wxGLCanvas * bar = new wxGLCanvas((wxWindow *) NULL, -1,
^
configure:6764: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_VOID_P 8
| #define HAVE_GL_GL_H 1
| #define HAVE_GL_GLU_H 1
| #define HAVE_GL_SUPPORT 1
| #define HAVE_GLINTPTR 1
| #define HAVE_GLINTPTRARB 1
| #define HAVE_GLCHAR 1
| #define HAVE_GLCHARARB 1
| #define HAVE_GLHALFARB 1
| #define HAVE_GLINT64EXT 1
| #define HAVE_WX_STC_STC_H 1
| /* end confdefs.h. */
|
| #ifdef WIN32
| # include <windows.h>
| # include <gl/gl.h>
| #elif defined(HAVE_GL_GL_H)
| # include <GL/gl.h>
| #elif defined(HAVE_OPENGL_GL_H)
| # include <OpenGL/gl.h>
| #endif
| #include "wx/wx.h"
| #include "wx/stc/stc.h"
| #include "wx/glcanvas.h"
|
|
| class MyApp : public wxApp
| {
| virtual bool OnInit() {
| // Test that we have a FromUTF8
| // it isn't in too old wxWidgets versions
| wxString test = wxString::FromUTF8((const char *)"foo");
| wxStyledTextCtrl * foo = new wxStyledTextCtrl();
| wxGLCanvas * bar = new wxGLCanvas((wxWindow *) NULL, -1,
| wxDefaultPosition,wxDefaultSize,0);
| return true;
| };
| };
| IMPLEMENT_APP(MyApp)
|
configure:6801: result: no
configure:6807: WARNING: Can not link wx program are all developer packages installed?
configure:6817: checking if we can add -Werror=return-type to CFLAGS (via CFLAGS)
configure:6837: gcc -c -Werror=return-type -g -Wall -O2 -fPIC -g -O2 -Wno-deprecated-declarations -fomit-frame-pointer -fno-strict-aliasing -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT conftest.c >&5
configure:6843: $? = 0
configure:6847: test -z
|| test ! -s conftest.err
configure:6850: $? = 0
configure:6853: test -s conftest.o
configure:6856: $? = 0
configure:6868: result: yes
configure:6877: checking if we can add -Werror=return-type to CXXFLAGS (via CFLAGS)
configure:6897: gcc -c -Werror=return-type -g -Wall -O2 -fPIC -g -O2 -Wno-deprecated-declarations -fomit-frame-pointer -fno-strict-aliasing -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT conftest.c >&5
configure:6903: $? = 0
configure:6907: test -z
|| test ! -s conftest.err
configure:6910: $? = 0
configure:6913: test -s conftest.o
configure:6916: $? = 0
configure:6928: result: yes
configure:6968: error: Cannot build wxErlang driver, see ./CONF_INFO for information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment