Menu

fbtest compilation error

Chapter 11
Nanik
2017-05-17
2017-05-17
  • Nanik

    Nanik - 2017-05-17

    Got issue when following step in Chapter 11 for compiling fbtest

    I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/arch-x86/include -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/include -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/kernel/uapi -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/kernel/uapi/asm-x86 -o iplan2.o iplan2.c
    /media/AOSPDrive/AndroidEmbeddedSystemChapter/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc -c -Wall -fno-short-enums -I../include -O2 -m32 -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/arch-x86/include -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/include -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/kernel/uapi -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/kernel/uapi/asm-x86 -o planar.o planar.c
    /media/AOSPDrive/AndroidEmbeddedSystemChapter/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-ar -rcs drawops.a bitstream.o cfb16.o cfb24.o cfb2.o cfb32.o cfb4.o cfb8.o cfb.o generic.o init.o iplan2.o planar.o
    make[1]: Leaving directory /media/AOSPDrive/AndroidEmbeddedSystemChapter/fbtest/drawops' make -C pnmtohex make[1]: Entering directory/media/AOSPDrive/AndroidEmbeddedSystemChapter/fbtest/pnmtohex'
    /media/AOSPDrive/AndroidEmbeddedSystemChapter/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc -M -Wall -fno-short-enums -I../include -O2 -m32 -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/arch-x86/include -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/include -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/kernel/uapi -I/media/AOSPDrive/AndroidEmbeddedSystemChapter/bionic/libc/kernel/uapi/asm-x86 pnmtohex.c > .depend
    pnmtohex.c:17:17: fatal error: pnm.h: No such file or directory

    #include <pnm.h>
    ^
    compilation terminated.
    make[1]: *** No rule to make target .depend', needed byall'. Stop.
    make[1]: Leaving directory `/media/AOSPDrive/AndroidEmbeddedSystemChapter/fbtest/pnmtohex'
    make: *** [pnmtohex] Error 2</pnm.h>

    make failed to build some targets (1 seconds)

     
  • Roger Ye

    Roger Ye - 2017-05-17

    Please checkout branch "android-x86". I need to check whether I mentioned this or not in the book.

     
  • Nanik

    Nanik - 2017-05-17

    Even when the Android code is checked out from android-7.1.1_r4_ch11_aosp branch the same error happens

    The fbtest project is relying on header files that probably need to be included or need to be specified explicitly

     
  • Nanik

    Nanik - 2017-05-17

    It is using android-x86 branch

     
  • Roger Ye

    Roger Ye - 2017-05-17

    Give me sometime. I will test it again.

     
  • Roger Ye

    Roger Ye - 2017-05-17

    There is one commit is missing. Please pull the latest code from my GitHub. The issue should be resolved.

     

Anonymous
Anonymous

Add attachments
Cancel