[SOLVED] Problem to compile cogl with Slackware 14.2
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I could always compile the cogl normally, but now i can no longer compile cogl, this error appears to me.
Code:
C driver/nop/cogl-driver-nop.lo
In file included from ./winsys/cogl-winsys-private.h:36:0,
from ./cogl-context-private.h:35,
from driver/nop/cogl-driver-nop.c:38:
../cogl/gl-prototypes/cogl-in-gles-core-functions.h:123:21: error: unknown type name 'GLsizeiptr'
GLsizeiptr size,
^
./cogl-gles2.h:139:16: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (* name) args;
^
../cogl/gl-prototypes/cogl-in-gles-core-functions.h:128:21: error: unknown type name 'GLintptr'
GLintptr offset,
^
./cogl-gles2.h:139:16: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (* name) args;
^
../cogl/gl-prototypes/cogl-in-gles-core-functions.h:129:21: error: unknown type name 'GLsizeiptr'
GLsizeiptr size,
^
./cogl-gles2.h:139:16: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (* name) args;
^
../cogl/gl-prototypes/cogl-glsl-functions.h:226:21: error: unknown type name 'GLchar'
GLchar* name))
^
./cogl-gles2.h:139:16: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (* name) args;
^
../cogl/gl-prototypes/cogl-glsl-functions.h:231:21: error: unknown type name 'GLchar'
GLchar* source))
^
./cogl-gles2.h:139:16: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (* name) args;
^
../cogl/gl-prototypes/cogl-glsl-functions.h:277:27: error: unknown type name 'GLchar'
const GLchar* name))
^
./cogl-gles2.h:139:16: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (* name) args;
^
../cogl/gl-prototypes/cogl-glsl-functions.h:285:21: error: unknown type name 'GLchar'
GLchar* name))
^
./cogl-gles2.h:139:16: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (* name) args;
^
In file included from ./winsys/cogl-winsys-private.h:36:0,
from ./cogl-context-private.h:35,
from driver/nop/cogl-driver-nop.c:38:
./cogl-gles2.h:152:1: warning: no semicolon at end of struct or union
};
^
In file included from ./cogl-pipeline-layer-private.h:44:0,
from ./cogl-pipeline-private.h:38,
from ./cogl-texture-private.h:36,
from ./winsys/cogl-texture-pixmap-x11-private.h:45,
from ./winsys/cogl-winsys-private.h:39,
from ./cogl-context-private.h:35,
from driver/nop/cogl-driver-nop.c:38:
./cogl-sampler-cache-private.h:55:48: error: 'GL_CLAMP_TO_EDGE' undeclared here (not in a function)
COGL_SAMPLER_CACHE_WRAP_MODE_CLAMP_TO_EDGE = GL_CLAMP_TO_EDGE,
^
In file included from driver/nop/cogl-driver-nop.c:38:0:
./gl-prototypes/cogl-in-gles-core-functions.h:123:21: error: unknown type name 'GLsizeiptr'
GLsizeiptr size,
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
./gl-prototypes/cogl-in-gles-core-functions.h:128:21: error: unknown type name 'GLintptr'
GLintptr offset,
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
./gl-prototypes/cogl-in-gles-core-functions.h:129:21: error: unknown type name 'GLsizeiptr'
GLsizeiptr size,
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
./gl-prototypes/cogl-glsl-functions.h:226:21: error: unknown type name 'GLchar'
GLchar* name))
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
./gl-prototypes/cogl-glsl-functions.h:231:21: error: unknown type name 'GLchar'
GLchar* source))
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
./gl-prototypes/cogl-glsl-functions.h:277:27: error: unknown type name 'GLchar'
const GLchar* name))
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
./gl-prototypes/cogl-glsl-functions.h:285:21: error: unknown type name 'GLchar'
GLchar* name))
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
./gl-prototypes/cogl-all-functions.h:303:21: error: unknown type name 'GLintptr'
GLintptr offset,
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
./gl-prototypes/cogl-all-functions.h:304:21: error: unknown type name 'GLsizeiptr'
GLsizeiptr length,
^
./cogl-context-private.h:352:25: note: in definition of macro 'COGL_EXT_FUNCTION'
ret (APIENTRY * name) args;
^
Makefile:1663: recipe for target 'driver/nop/cogl-driver-nop.lo' failed
make[4]: *** [driver/nop/cogl-driver-nop.lo] Error 1
make[4]: Leaving directory '/tmp/csb/cogl-1.22.0/cogl'
Makefile:1836: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/tmp/csb/cogl-1.22.0/cogl'
Makefile:1257: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/tmp/csb/cogl-1.22.0/cogl'
Makefile:597: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/csb/cogl-1.22.0'
Makefile:524: recipe for target 'all' failed
make: *** [all] Error 2
Someone have some tip?
Im using Slackware64 14.2 with multilibs
Looking at his SlackBuild, the only thing that stood out for ./configure options was --enable-kms-egl-platform. If you aren't using that, try adding that to your ./configure options.
Otherwise, it may be a missing dependency, but, on Willy's build order, there's a lot that come before it. However, nothing stood out to me that may be related to your error.
Looking at his SlackBuild, the only thing that stood out for ./configure options was --enable-kms-egl-platform. If you aren't using that, try adding that to your ./configure options.
Otherwise, it may be a missing dependency, but, on Willy's build order, there's a lot that come before it. However, nothing stood out to me that may be related to your error.
Hi, thanks for fast answer.
Yes, i tried many types im thinking it not related to options in ./configure should be another thing.
I will paste here 2 .SlackBuilds and both have same error, i tried using cogl from git and same error too.
Obs: i tried without gles 1 and 2 too.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for library containing strerror... none required
checking for an ANSI C-conforming const... yes
checking for _Static_assert... yes
checking build system type... x86_64-slackware-linux-gnu
checking host system type... x86_64-slackware-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-slackware-linux/bin/ld
checking if the linker (/usr/x86_64-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-slackware-linux-gnu file names to x86_64-slackware-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-slackware-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-slackware-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.lt
config.lt: creating libtool
checking for cos in -lm... yes
checking if building for some Win32 platform... no
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.32.0... yes (version 2.46.2)
checking for DUMMY... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for linguas... an ar as ast be bg bs ca ca@valencia cs da de el en_CA en_GB eo es eu fa fr gl he hi hu id it ja km kn ko lt lv ml nb nl oc or pa pl pt pt_BR ru sk sl sr sr@latin sv ta te th tr ug uk vi zh_CN zh_HK zh_TW
checking for COGL_DEP... yes
checking for COGL_DEP_GL... yes
checking for COGL_PANGO_DEP... yes
checking for COGL_GST_DEP... yes
checking for gobject-introspection... yes
checking for X... libraries , headers
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking whether __FLOAT_WORD_ORDER is declared... yes
checking for ffs... yes
checking for memmem... yes
checking for sincos... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating README
config.status: creating config.h.win32
config.status: creating build/Makefile
config.status: creating build/win32/Makefile
config.status: creating build/win32/vs9/Makefile
config.status: creating build/win32/vs10/Makefile
config.status: creating deps/Makefile
config.status: creating deps/glib/Makefile
config.status: creating deps/gmodule/Makefile
config.status: creating deps/gmodule/gmoduleconf.h
config.status: creating test-fixtures/Makefile
config.status: creating cogl/Makefile
config.status: creating cogl/cogl-1.0.pc
config.status: creating cogl/cogl-2.0-experimental.pc
config.status: creating cogl/cogl-defines.h
config.status: creating cogl/cogl-defines.h.win32
config.status: creating cogl/cogl-defines.h.win32_SDL
config.status: creating cogl/cogl-gl-header.h
config.status: creating cogl/cogl-egl-defines.h
config.status: creating cogl/cogl.rc
config.status: creating cogl-pango/Makefile
config.status: creating cogl-pango/cogl-pango-1.0.pc
config.status: creating cogl-pango/cogl-pango-2.0-experimental.pc
config.status: creating cogl-pango/cogl-pango.rc
config.status: creating cogl-path/Makefile
config.status: creating cogl-path/cogl-path-1.0.pc
config.status: creating cogl-path/cogl-path-2.0-experimental.pc
config.status: creating cogl-gst/Makefile
config.status: creating cogl-gst/cogl-gst-1.0.pc
config.status: creating cogl-gst/cogl-gst-2.0-experimental.pc
config.status: creating cogl-gles2/Makefile
config.status: creating cogl-gles2/cogl-gles2-1.0.pc
config.status: creating cogl-gles2/cogl-gles2-2.0-experimental.pc
config.status: creating doc/Makefile
config.status: creating doc/reference/Makefile
config.status: creating doc/reference/cogl/Makefile
config.status: creating doc/reference/cogl/cogl-docs.xml
config.status: creating doc/reference/cogl-2.0-experimental/Makefile
config.status: creating doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml
config.status: creating doc/reference/cogl-gst/Makefile
config.status: creating doc/reference/cogl-gst/cogl-gst-docs.xml
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating tests/config.env
config.status: creating tests/conform/Makefile
config.status: creating tests/unit/Makefile
config.status: creating tests/micro-perf/Makefile
config.status: creating tests/data/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
Cogl - 1.22.0/2.0.0 (git)
• Global:
Prefix: /usr
Default driver: opengl
• Features:
Drivers: gles1 gles2 gl
Library name for GLES1: libGLESv1_CM.so
Library name for GLES2: libGLESv2.so
Library name for GL: libGL.so.1
GL Window System APIs: glx egl
EGL Platforms: kms xlib
Wayland compositor support: no
Building for emscripten environment: no
Build libcogl-gles2 GLES 2.0 frontend api: yes
Image backend: gdk-pixbuf
Cogl Pango: yes
Cogl Gstreamer: yes
Cogl Path: yes
• Build options:
Debugging: no
Profiling: no
Enable deprecated symbols: yes
Compiler flags: -O2 -fPIC -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
Linker flags:
• Extra:
Build API reference: no
Build introspection data: yes
Build unit tests: no
Enable internationalization: yes
Last edited by Candelabrus; 07-06-2016 at 07:59 AM.
I can't test it now, but could the bolded line in your configure flags be the problem? I believe you should use --enable-gles1 and/or --enable-gles2, not --enable-gles{1,2}. Otherwise, check to make sure you have /usr/include/GL/glext.h and that it includes the needed definitions, like ml4711 suggested.
Last edited by montagdude; 07-06-2016 at 08:10 AM.
Now i will try to found solution to have both at same time.
Thanks to everyone who tried to help me, the person who showed me he could compile did I review what I had recently installed that could have affected and then the solution came.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.