sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

build error

Open svonjoi opened this issue 3 months ago • 2 comments

build error generic-distribution in main/development branch

requisites

qmake --version
  QMake version 3.1
  Using Qt version 5.15.17 in /usr/lib
pacman -Qs harfbuzz
  local/harfbuzz 11.4.5-1
      OpenType text shaping engine
  local/harfbuzz-icu 11.4.5-1
      OpenType text shaping engine - ICU integration
  local/lib32-harfbuzz 11.4.5-1
      OpenType text shaping engine - 32-bit

error

...

CC build/release/thirdparty/freeglut/src/x11/fg_ext_x11.o
CC build/release/thirdparty/freeglut/src/x11/fg_gamemode_x11.o
CC build/release/thirdparty/freeglut/src/x11/fg_glutfont_definitions_x11.o
CC build/release/thirdparty/freeglut/src/x11/fg_init_x11.o
thirdparty/freeglut/src/x11/fg_init_x11.c:348:6: error: conflicting types for ‘fgPlatformDestroyContext’; have ‘void(SFG_PlatformDisplay,  struct __GLXcontextRec *)’ {aka ‘void(struct tagSFG_PlatformDisplay,  struct __GLXcontextRec *)’}
  348 | void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext )
      |      ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from thirdparty/freeglut/src/x11/fg_init_x11.c:34:
thirdparty/freeglut/src/egl/fg_init_egl.h:31:13: note: previous declaration of ‘fgPlatformDestroyContext’ with type ‘void(void)’
   31 | extern void fgPlatformDestroyContext();
      |             ^~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makethird:193: build/release/thirdparty/freeglut/src/x11/fg_init_x11.o] Error 1

svonjoi avatar Sep 10 '25 14:09 svonjoi

Well, for one thing the development branch requires qt 6.8+.

ahrm avatar Sep 10 '25 14:09 ahrm

Well, for one thing the development branch requires qt 6.8+.

i've get confused by build instructions in development branch that points to qt 5.xx

i have development branch builded ok now, i think dev build instructions also miss that u have to manually update submodules and also set environment variable to qt6. I took this from this issue if not done it throws error

git submodule update --init --recursive
QMAKE=qmake6 ./build_linux.sh

svonjoi avatar Sep 10 '25 15:09 svonjoi