WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Anydesk  (Read 17111 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Anydesk
« Reply #15 on: December 19, 2021, 09:06:46 AM »
You need to load the gtk2-dev extension.

It also looks like you will need to compile this: https://download.gnome.org/sources/pangox-compat/0.0/pangox-compat-0.0.2.tar.xz

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Anydesk
« Reply #16 on: December 19, 2021, 10:52:00 AM »
It also looks like you will need to compile this: https://download.gnome.org/sources/pangox-compat/0.0/pangox-compat-0.0.2.tar.xz
While compiling pangox i get an Error:

Code: [Select]
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets (MAKE)... yes
checking whether make supports nested variables... yes
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for ld used by gcc... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm -B
checking the name lister (/usr/local/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 "+="... no
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/local/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
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/local/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -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 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/local/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... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PANGO... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pangox.pc
config.status: executing depfiles commands
config.status: executing libtool commands
root@box:/opt/pangox-compat-0.0.2#
root@box:/opt/pangox-compat-0.0.2#
root@box:/opt/pangox-compat-0.0.2#
root@box:/opt/pangox-compat-0.0.2#
root@box:/opt/pangox-compat-0.0.2# make
  CC     libpangox_1_0_la-pangox.lo
pangox.c: In function 'pango_x_get_shaper_map':
pangox.c:1359:3: warning: 'pango_find_map' is deprecated [-Wdeprecated-declarations]
   return pango_find_map (language, engine_type_id, render_type_id);
   ^~~~~~
In file included from pangox-private.h:26,
                 from pangox.c:30:
/usr/local/include/pango-1.0/pango/pango-modules.h:59:16: note: declared here
 PangoMap *     pango_find_map        (PangoLanguage       *language,
                ^~~~~~~~~~~~~~
pangox.c: In function 'pango_x_font_find_shaper':
pangox.c:1381:3: warning: 'pango_map_get_engine' is deprecated [-Wdeprecated-declarations]
   return (PangoEngineShape *)pango_map_get_engine (shape_map, script);
   ^~~~~~
In file included from pangox-private.h:26,
                 from pangox.c:30:
/usr/local/include/pango-1.0/pango/pango-modules.h:63:16: note: declared here
 PangoEngine *  pango_map_get_engine  (PangoMap            *map,
                ^~~~~~~~~~~~~~~~~~~~
In function 'name_for_charset',
    inlined from 'pango_x_list_subfonts' at pangox.c:1144:12:
pangox.c:1048:4: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
    strncpy (result, xlfd, strlen (xlfd) - 2);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pangox.c: In function 'pango_x_list_subfonts':
pangox.c:1048:27: note: length computed here
    strncpy (result, xlfd, strlen (xlfd) - 2);
                           ^~~~~~~~~~~~~
In function 'name_for_charset',
    inlined from 'pango_x_list_subfonts' at pangox.c:1144:12:
pangox.c:1037:4: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
    strncpy (result, xlfd, strlen (xlfd) - 4);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pangox.c: In function 'pango_x_list_subfonts':
pangox.c:1037:27: note: length computed here
    strncpy (result, xlfd, strlen (xlfd) - 4);
                           ^~~~~~~~~~~~~
  CC     libpangox_1_0_la-pangox-fontcache.lo
  CC     libpangox_1_0_la-pangox-fontmap.lo
pangox-fontmap.c: In function 'pango_x_font_map_for_display':
pangox-fontmap.c:299:2: warning: 'pango_module_register' is deprecated [-Wdeprecated-declarations]
  pango_module_register (&_pango_included_x_modules[i]);
  ^~~~~~~~~~~~~~~~~~~~~
In file included from pangox-private.h:26,
                 from pangox-fontmap.c:39:
/usr/local/include/pango-1.0/pango/pango-modules.h:71:16: note: declared here
 void           pango_module_register (PangoIncludedModule *module);
                ^~~~~~~~~~~~~~~~~~~~~
pangox-fontmap.c:303:3: warning: 'g_type_init' is deprecated [-Wdeprecated-declarations]
   g_type_init ();
   ^~~~~~~~~~~
In file included from /usr/local/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/local/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/local/include/glib-2.0/glib-object.h:23,
                 from /usr/local/include/pango-1.0/pango/pango-types.h:26,
                 from /usr/local/include/pango-1.0/pango/pango-engine.h:25,
                 from pangox-fontmap.c:33:
/usr/local/include/glib-2.0/gobject/gtype.h:688:23: note: declared here
 void                  g_type_init                    (void);
                       ^~~~~~~~~~~
pangox-fontmap.c: In function 'pango_x_font_map_read_alias_file':
pangox-fontmap.c:826:7: warning: 'pango_read_line' is deprecated [-Wdeprecated-declarations]
       while ((lines_read = pango_read_line (infile, line_buf)))
       ^~~~~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:37:10: note: declared here
 gint     pango_read_line      (FILE        *stream,
          ^~~~~~~~~~~~~~~
pangox-fontmap.c:838:4: warning: 'pango_skip_space' is deprecated [-Wdeprecated-declarations]
    if (!pango_skip_space (&p))
    ^~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:40:10: note: declared here
 gboolean pango_skip_space     (const char **pos);
          ^~~~~~~~~~~~~~~~
pangox-fontmap.c:841:4: warning: 'pango_scan_string' is deprecated [-Wdeprecated-declarations]
    if (!pango_scan_string (&p, tmp_buf))
    ^~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:45:10: note: declared here
 gboolean pango_scan_string    (const char **pos,
          ^~~~~~~~~~~~~~~~~
pangox-fontmap.c:851:4: warning: 'pango_scan_string' is deprecated [-Wdeprecated-declarations]
    if (!pango_scan_string (&p, tmp_buf))
    ^~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:45:10: note: declared here
 gboolean pango_scan_string    (const char **pos,
          ^~~~~~~~~~~~~~~~~
pangox-fontmap.c:858:4: warning: 'pango_scan_string' is deprecated [-Wdeprecated-declarations]
    if (!pango_scan_string (&p, tmp_buf))
    ^~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:45:10: note: declared here
 gboolean pango_scan_string    (const char **pos,
          ^~~~~~~~~~~~~~~~~
pangox-fontmap.c:865:4: warning: 'pango_scan_string' is deprecated [-Wdeprecated-declarations]
    if (!pango_scan_string (&p, tmp_buf))
    ^~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:45:10: note: declared here
 gboolean pango_scan_string    (const char **pos,
          ^~~~~~~~~~~~~~~~~
pangox-fontmap.c:872:4: warning: 'pango_scan_string' is deprecated [-Wdeprecated-declarations]
    if (!pango_scan_string (&p, tmp_buf))
    ^~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:45:10: note: declared here
 gboolean pango_scan_string    (const char **pos,
          ^~~~~~~~~~~~~~~~~
pangox-fontmap.c:879:4: warning: 'pango_scan_string' is deprecated [-Wdeprecated-declarations]
    if (!pango_scan_string (&p, tmp_buf))
    ^~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:45:10: note: declared here
 gboolean pango_scan_string    (const char **pos,
          ^~~~~~~~~~~~~~~~~
pangox-fontmap.c:887:8: warning: 'pango_trim_string' is deprecated [-Wdeprecated-declarations]
        char *trimmed = pango_trim_string (xlfds[i]);
        ^~~~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:35:10: note: declared here
 char    *pango_trim_string     (const char *str);
          ^~~~~~~~~~~~~~~~~
pangox-fontmap.c: In function 'pango_x_font_map_read_aliases':
pangox-fontmap.c:944:3: warning: 'pango_config_key_get' is deprecated [-Wdeprecated-declarations]
   char *files_str = pango_config_key_get ("PangoX/AliasFiles");
   ^~~~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:55:10: note: declared here
 char *   pango_config_key_get (const char  *key);
          ^~~~~~~~~~~~~~~~~~~~
pangox-fontmap.c:950:3: warning: 'pango_split_file_list' is deprecated [-Wdeprecated-declarations]
   files = pango_split_file_list (files_str);
   ^~~~~
In file included from /usr/local/include/pango-1.0/pango/pango.h:46,
                 from pango-impl-utils.h:28,
                 from pangox-fontmap.c:35:
/usr/local/include/pango-1.0/pango/pango-utils.h:32:10: note: declared here
 char **  pango_split_file_list (const char *str);
          ^~~~~~~~~~~~~~~~~~~~~
pangox-fontmap.c: In function 'engine_shape_covers':
pangox-fontmap.c:1548:3: warning: 'pango_engine_shape_get_type' is deprecated [-Wdeprecated-declarations]
   g_return_val_if_fail (PANGO_IS_ENGINE_SHAPE (engine), PANGO_COVERAGE_NONE);
   ^~~~~~~~~~~~~~~~~~~~
In file included from pangox-fontmap.c:33:
/usr/local/include/pango-1.0/pango/pango-engine.h:238:7: note: declared here
 GType pango_engine_shape_get_type (void) G_GNUC_CONST;
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
pangox-fontmap.c: In function 'pango_x_face_get_coverage':
pangox-fontmap.c:1597:7: warning: 'pango_map_get_engine' is deprecated [-Wdeprecated-declarations]
       engine = (PangoEngineShape *)pango_map_get_engine (shape_map, PANGO_SCRIPT_COMMON);
       ^~~~~~
In file included from pangox-private.h:26,
                 from pangox-fontmap.c:39:
/usr/local/include/pango-1.0/pango/pango-modules.h:63:16: note: declared here
 PangoEngine *  pango_map_get_engine  (PangoMap            *map,
                ^~~~~~~~~~~~~~~~~~~~
  CC     libpangox_1_0_la-basic-x.lo
basic-x.c: In function 'basic_engine_shape':
basic-x.c:592:2: warning: 'pango_get_mirror_char' is deprecated: Use 'g_unichar_get_mirror_char' instead [-Wdeprecated-declarations]
  if (pango_get_mirror_char (wc, &mirrored_ch))
  ^~
In file included from /usr/local/include/pango-1.0/pango/pango-types.h:200,
                 from /usr/local/include/pango-1.0/pango/pango-engine.h:25,
                 from basic-x.c:24:
/usr/local/include/pango-1.0/pango/pango-bidi-type.h:134:16: note: declared here
 gboolean       pango_get_mirror_char        (gunichar     ch,
                ^~~~~~~~~~~~~~~~~~~~~
basic-x.c: In function 'basic_engine_x_class_init':
basic-x.c:687:23: warning: assignment to 'void (*)(PangoEngineShape *, PangoFont *, const char *, unsigned int,  const PangoAnalysis *, PangoGlyphString *, const char *, unsigned int)' {aka 'void (*)(struct _PangoEngineShape *, struct _PangoFont *, const char *, unsigned int,  const struct _PangoAnalysis *, struct _PangoGlyphString *, const char *, unsigned int)'} from incompatible pointer type 'void (*)(PangoEngineShape *, PangoFont *, const char *, gint,  const PangoAnalysis *, PangoGlyphString *)' {aka 'void (*)(struct _PangoEngineShape *, struct _PangoFont *, const char *, int,  const struct _PangoAnalysis *, struct _PangoGlyphString *)'} [-Wincompatible-pointer-types]
   class->script_shape = basic_engine_shape;
                       ^
basic-x.c: In function 'basic_engine_x_compat_register_type':
basic-x.c:690:1: warning: 'pango_engine_shape_get_type' is deprecated [-Wdeprecated-declarations]
 PANGO_ENGINE_SHAPE_DEFINE_TYPE (BasicEngineXCompat, basic_engine_x_compat,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from basic-x.c:24:
/usr/local/include/pango-1.0/pango/pango-engine.h:238:7: note: declared here
 GType pango_engine_shape_get_type (void) G_GNUC_CONST;
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD   libpangox-1.0.la
/usr/local/bin/sed: can't read /usr/local/lib/libgobject-2.0.la: No such file or directory
libtool: link: `/usr/local/lib/libgobject-2.0.la' is not a valid libtool archive
make: *** [Makefile:389: libpangox-1.0.la] Error 1

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Anydesk
« Reply #17 on: December 19, 2021, 11:12:56 AM »
It might seem counterintuitive, but you need to delete all *.la files:
Code: [Select]
$ sudo rm /usr/local/lib/*.la
$ sudo rm /usr/lib/*.la

.. then delete the pangox-compat folder, untar the pangox-compat source and start again.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Anydesk
« Reply #18 on: December 19, 2021, 11:18:14 AM »
It might seem counterintuitive, but you need to delete all *.la files:
Code: [Select]
$ sudo rm /usr/local/lib/*.la
$ sudo rm /usr/lib/*.la

.. then delete the pangox-compat folder, untar the pangox-compat source and start again.

never mind i just downloaded the missing *.la files and got this: (See Attachment)
or is that not the right way ?



Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Anydesk
« Reply #19 on: December 19, 2021, 11:25:04 AM »
and i went after that to the gtkglext dir to install it

./configure ran just fine

and make gives an Error:

Code: [Select]
gdkglshapes.c:547:12: error: 'index' redeclared as different kind of symbol
 static int index[20][3] =
            ^~~~~
In file included from /usr/include/string.h:431,
                 from /usr/local/include/glib-2.0/glib/gtestutils.h:30,
                 from /usr/local/include/glib-2.0/glib.h:85,
                 from gdkglshapes.c:21:
/usr/include/strings.h:68:14: note: previous declaration of 'index' was here
 extern char *index (const char *__s, int __c)
              ^~~~~
make[4]: *** [Makefile:513: gdkglshapes.lo] Error 1
make[4]: Leaving directory '/opt/gtkglext-1.2.0/gdk'
make[3]: *** [Makefile:558: all-recursive] Error 1
make[3]: Leaving directory '/opt/gtkglext-1.2.0/gdk'
make[2]: *** [Makefile:428: all] Error 2
make[2]: Leaving directory '/opt/gtkglext-1.2.0/gdk'
make[1]: *** [Makefile:363: all-recursive] Error 1
make[1]: Leaving directory '/opt/gtkglext-1.2.0'
make: *** [Makefile:279: all] Error 2


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Anydesk
« Reply #20 on: December 19, 2021, 12:48:54 PM »
You could try starting again and using:
Code: [Select]
$ CFLAGS="-fcommon" CXXFLAGS="-fcommon" ./configure
$ make

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Anydesk
« Reply #21 on: December 19, 2021, 01:02:49 PM »
You could try starting again and using:
Code: [Select]
$ CFLAGS="-fcommon" CXXFLAGS="-fcommon" ./configure
$ make


Code: [Select]
CFLAGS="-fcommon" CXXFLAGS="-fcommon" ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for strerror in -lcposix... no
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for /usr/local/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
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 how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/local/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/local/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... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/local/bin/ld -m elf_x86_64
checking if the linker (/usr/local/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/local/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/local/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for some Win32 platform... no
checking for native Win32... no
checking whether build environment is sane... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for perl5... no
checking for perl... /usr/local/bin/perl
checking for indent... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.60.6)
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.24.32)
checking for ANSI C header files... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for sqrt... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking gdk/gdkdisplay.h usability... yes
checking gdk/gdkdisplay.h presence... yes
checking for gdk/gdkdisplay.h... yes
checking gdk/gdkscreen.h usability... yes
checking gdk/gdkscreen.h presence... yes
checking for gdk/gdkscreen.h... yes
checking for gdk_display_get_default in GDK library... yes
configure: GDK supports multihead
checking for gdk_x11_colormap_foreign_new... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for X11/Xmu/StdCmap.h... yes
checking for Xmu/StdCmap.h... no
checking for XmuLookupStandardColormap in -lXmu... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glVertex3d in -lGLcore... no
checking for glVertex3d in -lGL... yes
checking for gluSphere in -lGLU... yes
checking for gluBeginCurve in -lGLU... yes
checking whether libGLU needs to be linked with the std C++ library... no
checking for GLXFBConfigSGIX... yes
checking for GLXFBConfigIDSGIX... no
checking for GLXPbufferSGIX... yes
checking for GLXVideoSourceSGIX... yes
checking for __GLXextFuncPtr... yes
checking for GLhalfNV... yes
configure: creating ./config.status
config.status: creating gdkglext.pc
config.status: creating gtkglext.pc
config.status: creating gdkglext-uninstalled.pc
config.status: creating gtkglext-uninstalled.pc
config.status: creating gtkglext.spec
config.status: creating gtkglext.nsi
config.status: creating Makefile
config.status: creating gdk/Makefile
config.status: creating gdk/gdkglversion.h
config.status: creating gdk/glext/Makefile
config.status: creating gdk/x11/Makefile
config.status: creating gdk/win32/Makefile
config.status: creating gtk/Makefile
config.status: creating gtk/gtkglversion.h
config.status: creating m4macros/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/gtkglext/Makefile
config.status: creating docs/reference/gtkglext/version.xml
config.status: creating examples/Makefile
config.status: creating examples/glade/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing gdk/gdkglext-config.h commands
config.status: gdk/gdkglext-config.h is unchanged

configuration:
        OpenGL CFLAGS:
        OpenGL LIBS:             -lGLU -lGL
        multihead support:      yes
        debug:                  minimum
        extra defs:

the same error


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Anydesk
« Reply #22 on: December 19, 2021, 02:09:03 PM »
Did you delete the gtkglext folder and unpack the source tarball again?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Anydesk
« Reply #23 on: December 19, 2021, 02:10:27 PM »
Hi Rabie
Maybe you need to run  make clean  before you started over (make clean, ./configure, make).

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Anydesk
« Reply #24 on: December 19, 2021, 02:25:26 PM »
Did you delete the gtkglext folder and unpack the source tarball again?

yes i did now and getting the same error

Hi Rich,
make clean didn't help either

but i just found out that there is the extension gtkglext.tcz for Version 4 x86
https://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/

would that work ?



Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Anydesk
« Reply #25 on: December 19, 2021, 08:12:40 PM »
Hi Rabie
No, that won't work. It's a 32 bit package and you're working with 64 bit.

The error is due to a name collision with  glibc_base-dev.tcz.

Try fixing  gdkglshapes.c:
Code: [Select]
sed -i 's/static int index/static int GLindex/' /opt/gtkglext-1.2.0/gdk/gdkglshapes.c
sed -i 's/idata, index, shadeType/idata, GLindex, shadeType/' /opt/gtkglext-1.2.0/gdk/gdkglshapes.c

and see what pops up next.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Anydesk
« Reply #26 on: December 20, 2021, 03:13:16 AM »
Hi Rich,
thank you very much that fixed the Problem and then were some *.la files missing but i downloaded them manually.

So i tried to start anydesk after i made the extension "gtkglext.tcz"

and i get some warnings and an error:

Code: [Select]
root@box:/opt/anydesk-6.0.1# ./anydesk

(process:20460): GLib-GObject-WARNING **: 11:05:36.961: invalid (NULL) pointer instance

(process:20460): GLib-GObject-CRITICAL **: 11:05:36.961: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:20460): GLib-GObject-WARNING **: 11:05:36.961: invalid (NULL) pointer instance

(process:20460): GLib-GObject-CRITICAL **: 11:05:36.961: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:20464): GLib-GObject-WARNING **: 11:05:36.980: invalid (NULL) pointer instance

(process:20464): GLib-GObject-CRITICAL **: 11:05:36.980: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:20464): GLib-GObject-WARNING **: 11:05:36.980: invalid (NULL) pointer instance

(process:20464): GLib-GObject-CRITICAL **: 11:05:36.980: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
root@box:/opt/anydesk-6.0.1#
(process:20468): GLib-GObject-WARNING **: 11:05:37.073: invalid (NULL) pointer instance

(process:20468): GLib-GObject-CRITICAL **: 11:05:37.073: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:20468): GLib-GObject-WARNING **: 11:05:37.073: invalid (NULL) pointer instance

(process:20468): GLib-GObject-CRITICAL **: 11:05:37.073: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
sh: lsb_release: not found
double free or corruption (fasttop)


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Anydesk
« Reply #27 on: December 20, 2021, 09:34:03 AM »
Hi Rabie
I don't know if that's a bug in  Anydesk  or an issue with  gtkglext.

You could see if you have better results with a pre-compiled binary. Goto:
http://archive.ubuntu.com/ubuntu/pool/universe/g/gtkglext/

Download the  libgtkglext1_1.2.0-11_amd64.deb  file.

Unpack it:
Code: [Select]
ar -x libgtkglext1_1.2.0-11_amd64.deb
You will find the libraries in the  data.tar.xz  file.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Anydesk
« Reply #28 on: December 20, 2021, 10:19:57 AM »
Hi Rich,
after unpacking i just copied the *.so files into /usr/lib:
Code: [Select]
sudo cp -a /opt/libgtkg/usr/lib/x86_64-linux-gnu/libg* /usr/lib/
And tried with other version of anydesk but still getting the error
Code: [Select]
/opt/anydesk-5.0.0$ ./anydesk

(process:9724): GLib-GObject-WARNING **: 18:10:01.448: invalid (NULL) pointer instance

(process:9724): GLib-GObject-CRITICAL **: 18:10:01.448: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:9724): GLib-GObject-WARNING **: 18:10:01.448: invalid (NULL) pointer instance

(process:9724): GLib-GObject-CRITICAL **: 18:10:01.448: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:9726): GLib-GObject-WARNING **: 18:10:01.458: invalid (NULL) pointer instance

(process:9726): GLib-GObject-CRITICAL **: 18:10:01.458: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:9726): GLib-GObject-WARNING **: 18:10:01.458: invalid (NULL) pointer instance

(process:9726): GLib-GObject-CRITICAL **: 18:10:01.458: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
tc@box:/opt/anydesk-5.0.0$
(process:9732): GLib-GObject-WARNING **: 18:10:01.467: invalid (NULL) pointer instance

(process:9732): GLib-GObject-CRITICAL **: 18:10:01.467: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:9732): GLib-GObject-WARNING **: 18:10:01.467: invalid (NULL) pointer instance

(process:9732): GLib-GObject-CRITICAL **: 18:10:01.467: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:9730): GLib-GObject-WARNING **: 18:10:01.468: invalid (NULL) pointer instance

(process:9730): GLib-GObject-CRITICAL **: 18:10:01.468: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:9730): GLib-GObject-WARNING **: 18:10:01.468: invalid (NULL) pointer instance

(process:9730): GLib-GObject-CRITICAL **: 18:10:01.468: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:9753): GLib-GObject-WARNING **: 18:10:03.493: invalid (NULL) pointer instance

(process:9753): GLib-GObject-CRITICAL **: 18:10:03.493: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:9753): GLib-GObject-WARNING **: 18:10:03.493: invalid (NULL) pointer instance

(process:9753): GLib-GObject-CRITICAL **: 18:10:03.493: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
sh: lsb_release: not found


I don't think that this is a bug  :-\

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Anydesk
« Reply #29 on: December 20, 2021, 10:51:28 AM »
Hi Rabie
after unpacking i just copied the *.so files into /usr/lib: ...
Is the  gtkglext.tcz  you created still installed?
Does the  gtkglext.tcz  you created have the libraries in  /usr/local/lib/?
If the answers to those questions is yes, your extension is overriding the libraries you just copied.

Quote
And tried with other version of anydesk but still getting the error
So you changed libraries and the version of Anydesk at the same time? You should not more than one thing at
a time when trying to diagnose a problem.

I see the  double free  error did not occur this time. Was that because you used a different version of Anydesk?