Skip to content

Instantly share code, notes, and snippets.

CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):
The C++ compiler "/usr/bin/c++" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: /home/kosztyo/gl2d/WebKitBuild/Debug/__cmake_systeminformation/CMakeFiles/CMakeTmp
kristof@kkristof:~/test$ gcc -lX11 x_mini.c -o xtut1
/tmp/cch1ggeR.o: In function `main':
x_mini.c:(.text+0x2d): undefined reference to `XOpenDisplay'
x_mini.c:(.text+0x157): undefined reference to `XCreateSimpleWindow'
x_mini.c:(.text+0x17c): undefined reference to `XSelectInput'
x_mini.c:(.text+0x195): undefined reference to `XMapWindow'
x_mini.c:(.text+0x1ae): undefined reference to `XNextEvent'
x_mini.c:(.text+0x223): undefined reference to `XCloseDisplay'
collect2: ld returned 1 exit status
@kkristof
kkristof / gist:5575636
Created May 14, 2013 12:53
gles buildfix for nix
diff --git a/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp b/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp
index 21cbd1a..4361f1d 100644
--- a/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp
+++ b/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp
@@ -75,6 +75,7 @@ PassRefPtr<GraphicsContext3D> GraphicsContext3D::create(GraphicsContext3D::Attri
GraphicsContext3D::GraphicsContext3D(GraphicsContext3D::Attributes attributes, HostWindow*, GraphicsContext3D::RenderStyle renderStyle)
: m_currentWidth(0)
, m_currentHeight(0)
+ , m_compiler(isGLES2Compliant() ? SH_ESSL_OUTPUT : SH_GLSL_OUTPUT)
, m_attrs(attributes)
kristof@kkristof:~$ dpkg -l | grep "mime"
ii libcupsmime1 1.5.3-0ubuntu6 Common UNIX Printing System(tm) - MIME library
ii libfile-mimeinfo-perl 0.15-2 Perl module to determine file types
ii libgmime-2.6-0 2.6.7-1 MIME message parser and creator library - runtime
ii mime-support 3.51-1ubuntu1 MIME files 'mime.types' & 'mailcap', and support programs
ii shared-mime-info 1.0-0ubuntu4.1 FreeDesktop.org shared MIME database and spec
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):
The C++ compiler "/usr/bin/c++" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: /home/kosztyo/WebKit_Nix/WebKitBuild/Release/__cmake_systeminformation/CMakeFiles/CMakeTmp
export QTDIR=/home/linaro/qt5/Qt5-hardfp/Qt-5.0.0-r40-GLES
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$QTDIR/lib"
export QT_IMPORT_PATH="$QTDIR/imports"
export QML_IMPORT_PATH="$QTDIR/imports"
export QT_PLUGIN_PATH="$QTDIR/plugins"
export QT_QPA_PLATFORM_PLUGIN_PATH="$QTDIR/plugins/platforms"
export QT_QPA_PLATFORM=xcb
make[3]: *** [obj/release/platform/graphics/nullport/GraphicsContextQt.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtCore/qobject.h:55:0,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtCore/qiodevice.h:46,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtCore/qdatastream.h:46,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/qregion.h:50,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/qmatrix.h:46,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/qtransform.h:44,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/qimage.h:45,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/QImage:1,
l2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtSensors -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtSql -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtNetwork -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/5.0.0 -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/5.0.0/QtGui -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtCore -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtCore/5.0.0 -I/usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtCore/5.0.0/QtCore -I. /home/kkristof/WebKit_0/Source/WebCore/platform/qt/RunLoopQt.cpp -o .moc/release-shared/RunLoopQt.moc
In file included from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtCore/qdebug.h:50:0,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/qgenericmatrix.h:46,
from /usr/local/Trolltech/Qt5/Qt-5.0.0-r39/include/QtGui/qmatrix4x4.h:48,
/home/kkristof/WebKit_0/Source/WebCore/platform/graphics/surfaces/qt/GraphicsSurfaceQt.cpp:47:49: error: invalid use of incomplete type ‘struct WebCore::SurfaceGLES’
/home/kkristof/WebKit_0/Source/WebCore/platform/graphics/GraphicsContext.h:57:7: error: forward declaration of ‘struct WebCore::SurfaceGLES’
/home/kkristof/WebKit_0/Source/WebCore/platform/graphics/surfaces/qt/GraphicsSurfaceQt.cpp:48:12: error: invalid use of incomplete type ‘struct WebCore::SurfaceGLES’
/home/kkristof/WebKit_0/Source/WebCore/platform/graphics/GraphicsContext.h:57:7: error: forward declaration of ‘struct WebCore::SurfaceGLES’
STAFÉTA ÉTKEZŐ
Szeged, Borbás u. 6.
Tel. : 06/70/646-3867
Napi és menü ajánlata: (11.26.-11.30.)
SZERDA: MENÜ: 710.-Ft
Húsgaluska leves
A./ Paradicsomos káposzta, sertéssült (550.-Ft)*
B./ Chilis bab (550.-Ft)*