Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6025

can't include FTGL and freetype2 [closed]

$
0
0

i can't include FTGL and freetype2, and i really can't imagine why, maybe because of code.

i installed both lib's*

libftgl-dev is installed

"окноу" this is my folder with code.

my includes in c++ code:

#include <iostream>#include <GL/glew.h>#include <GLFW/glfw3.h>#include <chrono>#include <thread>#include <ft2build.h>#include <FTGL/ftgl.h>

there is file's in "include"

mbr@MBR:/usr/include$ lsaio.h              GLES            netrose         sysexits.haliases.h          GLES2           nfs             syslog.halloca.h           GLES3           nl_types.h      tar.hargp.h             GLFW            nss.h           termio.hargz.h             glob.h          obstack.h       termios.har.h               glvnd           openvpn         tgmath.harpa               gnumake.h       paths.h         thread_db.hasm-generic        gnu-versions.h  pngconf.h       threads.hassert.h           grp.h           png.h           time.hbrotli             gshadow.h       pnglibconf.h    tirpcbyteswap.h         iconv.h         poll.h          ttyent.hc++                ifaddrs.h       printf.h        uchar.hcomplex.h          inttypes.h      proc_service.h  ucontext.hcpio.h             iproute2        protocols       ulimit.hcrypt.h            KHR             pthread.h       unistd.hctype.h            langinfo.h      pty.h           utime.hdirent.h           lastlog.h       pwd.h           utmp.hdlfcn.h            libgen.h        python3.10      utmpx.hdrm                libintl.h       rdma            values.hEGL                libpng          re_comp.h       videoelf.h              libpng16        regex.h         vk_videoendian.h           limits.h        regexp.h        vulkanenvz.h             link.h          resolv.h        wait.herr.h              linux           rpc             wayland-client-core.herrno.h            locale.h        rpcsvc          wayland-client.herror.h            malloc.h        sched.h         wayland-client-protocol.hexecinfo.h         math.h          scsi            wayland-cursor.hfcntl.h            mcheck.h        search.h        wayland-egl-core.hfeatures.h         memory.h        semaphore.h     wayland-egl.hfeatures-time64.h  misc            setjmp.h        wayland-server-core.hfenv.h             mntent.h        sgtty.h         wayland-server.hfinclude           monetary.h      shadow.h        wayland-server-protocol.hfmtmsg.h           mqueue.h        signal.h        wayland-util.hfnmatch.h          mtd             sound           wayland-version.hfreetype2          net             spawn.h         wchar.hfstab.h            netash          stab.h          wctype.hFTGL               netatalk        stdc-predef.h   wordexp.hfts.h              netax25         stdint.h        X11ftw.h              netdb.h         stdio_ext.h     x86_64-linux-gnugcalc-2            neteconet       stdio.h         xcbgci-2              netinet         stdlib.h        xengconv.h            netipx          string.h        xorggdb                netiucv         strings.h       zconf.hgetopt.h           netpacket       sudo_plugin.h   zlib.hGL                 netrom          syscall.hmbr@MBR:/usr/include$ cd FTGLmbr@MBR:/usr/include/FTGL$ lsFTBBox.h          ftgl.h                       FTOutlineGlyph.hFTBitmapGlyph.h   FTGLOutlineFont.h            FTPixmapGlyph.hFTBufferFont.h    FTGLPixmapFont.h             FTPoint.hFTBufferGlyph.h   FTGLPolygonFont.h            FTPolyGlyph.hFTBuffer.h        FTGLTextureFont.h            FTSimpleLayout.hFTExtrdGlyph.h    FTGLTriangleExtractorFont.h  FTTextureGlyph.hFTFont.h          FTGlyph.h                    FTTriangleExtractorGlyph.hFTGLBitmapFont.h  FTLayout.hFTGLExtrdFont.h   FTLibrary.hmbr@MBR:/usr/include/FTGL$ cd ..mbr@MBR:/usr/include$ cd freetype2mbr@MBR:/usr/include/freetype2$ lsfreetype  ft2build.hmbr@MBR:/usr/include/freetype2$ 

have no idea what to do, that's my first time doing this

i checked some site's, that's what i tried from them:

mbr@MBR:~/Desktop/окноу$ g++ app.cpp -I usr/include/FTGLapp.cpp:6:10: fatal error: ft2build.h: No such file or directory    6 | #include <ft2build.h>      |          ^~~~~~~~~~~~compilation terminated.mbr@MBR:~/Desktop/окноу$ sudo g++ app.cpp -I usr/include/freetype2app.cpp:6:10: fatal error: ft2build.h: No such file or directory    6 | #include <ft2build.h>      |          ^~~~~~~~~~~~compilation terminated.mbr@MBR:~/Desktop/окноу$ sudo g++ app.cpp -L usr/include/FTGL[sudo] password for mbr: app.cpp:6:10: fatal error: ft2build.h: No such file or directory    6 | #include <ft2build.h>      |          ^~~~~~~~~~~~compilation terminated.mbr@MBR:~/Desktop/окноу$ sudo g++ app.cpp -L usr/include/freetype2app.cpp:6:10: fatal error: ft2build.h: No such file or directory    6 | #include <ft2build.h>      |          ^~~~~~~~~~~~compilation terminated.

Viewing all articles
Browse latest Browse all 6025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>