This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: Qt compilation issue

Part Number: AM5728


Tool/software: Linux

Hi ,

I am trying to build qt-everywhere-opensource-src-5.7.1 with ti-processor-sdk-linux-am57xx-evm-04.02.00.09 SDK.

While compiling i am getting error like :

/home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/6.2.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>

When i have searched  in the internet

https://github.com/voidlinux/void-packages/issues/5254

says there is issue with gcc6.2 even the fix is not there in 6.3 also.

Pleas let me know how to proceed further.Currently i am not able to move further.

Error Log:

make[5]: Entering directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtimageformats/src/plugins/imageformats/dds'
/home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -O3 -march=armv7-a -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -mword-relocations -fpermissive --sysroot=/home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include -I/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtGui -I/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore -I.moc -isystem /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include -isystem /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/libxml2 -isystem /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/freetype2 -isystem /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/drm -isystem /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/gbm -isystem /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/usr/include/GLES -I/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/mkspecs/linux-arm-gnueabihf-g++ -o .obj/ddsheader.o ddsheader.cpp
In file included from /home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/6.2.1/bits/stl_algo.h:59:0,
                 from /home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/6.2.1/algorithm:62,
                 from /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:94,
                 from /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qglobal.h:1,
                 from /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qscopedpointer.h:43,
                 from /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qscopedpointer.h:1,
                 from /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/io/qdatastream.h:43,
                 from /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/qdatastream.h:1,
                 from /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/QDataStream:1,
                 from ddsheader.h:44,
                 from ddsheader.cpp:41:
/home/mistral/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/6.2.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
                         ^
compilation terminated.
Makefile:1217: recipe for target '.obj/ddsheader.o' failed

Regards,

Biswajit

  • Hello Biswajit,

    Amend #include_next <stdlib.h> to #include <stdlib.h>.

    Best regards,
    Kemal

  • Hi Kemal,

    Thanks alot for your response.

    After your suggestion,i made the changes and then it worked.But it got failed due some other reason.
    Since i am new to Qt development.Please let use case of  qtwebengine .If we can disable then let me know.

    configure parameter:

    ./configure -xplatform linux-arm-gnueabihf-g++ -prefix /usr/local/Qt5.7.1_opengl  -opengl es2 -confirm-license -opensource -no-cups -no-largefile -optimized-qmake -nomake tools -no-pch   -v -no-icu -no-openvg -sysroot /home/mistral/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS  -qt-pcre -no-xcb -no-sm -no-glib -no-libinput -no-mtdev -nomake examples

    Please help me in figuring out the root cause.

    Erro Log:

    Entering directory `/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core/Release'
    [9/10383] ACTION make_core_generated: CSSPropertyNames_1dd3bbd1830ec3803de4b986e6e77be9
    FAILED: cd /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/core; python ../build/scripts/make_css_property_names.py css/CSSProperties.in --output_dir /home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core/Release/gen/blink/core --gperf gperf
    Traceback (most recent call last):
      File "../build/scripts/make_css_property_names.py", line 238, in <module>
        in_generator.Maker(CSSPropertyNamesWriter).main(sys.argv)
      File "/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py", line 95, in main
        writer.write_files(options.output_dir)
      File "/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py", line 71, in write_files
        self._write_file_if_changed(output_dir, generator(), file_name)
      File "../build/scripts/make_css_property_names.py", line 233, in generate_implementation
        gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True)
      File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
        errread, errwrite)
      File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory
    [9/10383] ACTION make_core_generated: StylePropertyShorthand_1dd3bbd1830ec3803de4b986e6e77be9
    ninja: build stopped: subcommand failed.
    Makefile.gyp_run:923: recipe for target 'invoke_ninja' failed
    make[4]: *** [invoke_ninja] Error 1
    make[4]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core'
    Makefile:116: recipe for target 'sub-gyp_run-pro-make_first' failed
    make[3]: *** [sub-gyp_run-pro-make_first] Error 2
    make[3]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src/core'
    Makefile:49: recipe for target 'sub-core-make_first' failed
    make[2]: *** [sub-core-make_first] Error 2
    make[2]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine/src'
    Makefile:44: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/mistral/QT_BUILD/qt-everywhere-opensource-src-5.7.1/qtwebengine'
    Makefile:859: recipe for target 'module-qtwebengine-make_first' failed
    make: *** [module-qtwebengine-make_first] Error 2

    Regards,

    Biswajit

  • Hi Kemal,
    I have disabled qtwebengine(-skip qtwebengine) and compiled once again.
    It got compile with out any more issue.
    Thanks for your help.

    Regards,
    Biswajit
  • I am very happy to hear that.