Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qwt from Windows to Linux Porting
Forum Updated to NodeBB v4.3 + New Features

Qwt from Windows to Linux Porting

Scheduled Pinned Locked Moved Unsolved QtonPi
39 Posts 5 Posters 14.9k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S shivaVMC

    @sierdzio
    okay...Thank You Thanks alot.
    I m following the link https://wiki.qt.io/Building_Qt_5_from_Git and your mentioned short script..I will get back,if any issue I m facing.

    sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #22

    @shivaVMC said in Qwt from Windows to Linux Porting:

    I m following the link https://wiki.qt.io/Building_Qt_5_from_Git and your mentioned short script..I will get back,if any issue I m facing.

    Does not matter how you get Qt sources (from git like in your link or from archive like in my script), the result will be the same. Just remember to add all those -skip flags to configure line (and keep your sysroot and toolchain from the EGLFS guide).

    (Z(:^

    S 2 Replies Last reply
    2
    • sierdzioS sierdzio

      @shivaVMC said in Qwt from Windows to Linux Porting:

      I m following the link https://wiki.qt.io/Building_Qt_5_from_Git and your mentioned short script..I will get back,if any issue I m facing.

      Does not matter how you get Qt sources (from git like in your link or from archive like in my script), the result will be the same. Just remember to add all those -skip flags to configure line (and keep your sysroot and toolchain from the EGLFS guide).

      S Offline
      S Offline
      shivaVMC
      wrote on last edited by
      #23

      @sierdzio
      I have tried to compile Qt build for Qt_V5.7.1,but I m facing the below error

      .obj/qeglfskmsintegration.o:(.data.rel.ro+0x74): undefined reference to `QEGLDeviceIntegration::destroyNativeWindow(void*)'
      collect2: error: ld returned 1 exit status

      Can I know which plugins/lib are missing or which lib I need to install?

      1 Reply Last reply
      0
      • sierdzioS sierdzio

        @shivaVMC said in Qwt from Windows to Linux Porting:

        I m following the link https://wiki.qt.io/Building_Qt_5_from_Git and your mentioned short script..I will get back,if any issue I m facing.

        Does not matter how you get Qt sources (from git like in your link or from archive like in my script), the result will be the same. Just remember to add all those -skip flags to configure line (and keep your sysroot and toolchain from the EGLFS guide).

        S Offline
        S Offline
        shivaVMC
        wrote on last edited by
        #24

        @sierdzio
        When I perform .

        ./configure -device linux-rasp-pi3-g++ -opengl es2 -confirm-license -opensource -release -nomake examples -skip qtwebview -skip qt3d -skip qtquick1 -skip qtwayland -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtscript -skip qtscxml -skip qtspeech -skip qtpurchasing -skip qtgamepad -skip qtserialbus -skip qtlocation -no-use-gold-linker -device-option CROSS_COMPILE=~/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi_QtBuild/sysroot -prefix /usr/local/qt5pi -extprefix ~/raspi_QtBuild/qt5pi -hostprefix ~/raspi_QtBuild/qt5 -v

        Note: Also available for Linux: linux-clang linux-icc

        Note: Dropped compiler flags '-pthread' when detecting library 'glib'.

        Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer'.

        Note: Dropped compiler flags '-pthread' when detecting library 'gstreamer_app'.

        Qt is now configured for building. Just run 'make'.
        Once everything is built, you must run 'make install'.
        Qt will be installed into '/home/user/raspi_QtBuild/qt5pi'.

        Prior to reconfiguration, make sure you remove any leftovers from
        the previous build.

        When I perform --- make -j4

        msgbmmain.o qeglfskmsgbmmain.cpp
        qeglfskmsgbmwindow.cpp: In member function ‘virtual void QEglFSKmsGbmWindow::resetSurface()’:
        qeglfskmsgbmwindow.cpp:58:5: error: ‘PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC’ was not declared in this scope
        PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC createPlatformWindowSurface = nullptr;
        ^
        qeglfskmsgbmwindow.cpp:58:46: error: expected ‘;’ before ‘createPlatformWindowSurface’
        PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC createPlatformWindowSurface = nullptr;
        ^
        qeglfskmsgbmwindow.cpp:61:9: error: ‘createPlatformWindowSurface’ was not declared in this scope
        createPlatformWindowSurface = reinterpret_cast<PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC>(
        ^
        qeglfskmsgbmwindow.cpp:61:56: error: expected type-specifier before ‘PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC’
        createPlatformWindowSurface = reinterpret_cast<PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC>(
        ^
        qeglfskmsgbmwindow.cpp:61:56: error: expected ‘>’ before ‘PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC’
        qeglfskmsgbmwindow.cpp:61:56: error: expected ‘(’ before ‘PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC’
        qeglfskmsgbmwindow.cpp:62:68: error: expected ‘)’ before ‘;’ token
        eglGetProcAddress("eglCreatePlatformWindowSurfaceEXT"));
        ^
        qeglfskmsgbmwindow.cpp:65:9: error: ‘createPlatformWindowSurface’ was not declared in this scope
        if (createPlatformWindowSurface) {
        ^
        Makefile:3029: recipe for target '.obj/qeglfskmsgbmwindow.o' failed
        make[7]: *** [.obj/qeglfskmsgbmwindow.o] Error 1
        make[7]: *** Waiting for unfinished jobs....
        make[7]: Leaving directory '/home/user/raspi_QtBuild/qt-everywhere-src-5.11.1/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms'
        Makefile:72: recipe for target 'sub-eglfs_kms-make_first' failed
        make[6]: *** [sub-eglfs_kms-make_first] Error 2
        make[6]: Leaving directory '/home/user/raspi_QtBuild/qt-everywhere-src-5.11.1/qtbase/src/plugins/platforms/eglfs/deviceintegration'
        Makefile:104: recipe for target 'sub-deviceintegration-make_first-ordered' failed
        make[5]: *** [sub-deviceintegration-make_first-ordered] Error 2
        make[5]: Leaving directory '/home/user/raspi_QtBuild/qt-everywhere-src-5.11.1/qtbase/src/plugins/platforms/eglfs'
        Makefile:125: recipe for target 'sub-eglfs-make_first' failed
        make[4]: *** [sub-eglfs-make_first] Error 2
        make[4]: Leaving directory '/home/user/raspi_QtBuild/qt-everywhere-src-5.11.1/qtbase/src/plugins/platforms'
        Makefile:102: recipe for target 'sub-platforms-make_first' failed
        make[3]: *** [sub-platforms-make_first] Error 2
        make[3]: Leaving directory '/home/user/raspi_QtBuild/qt-everywhere-src-5.11.1/qtbase/src/plugins'
        Makefile:776: recipe for target 'sub-plugins-make_first' failed
        make[2]: *** [sub-plugins-make_first] Error 2
        make[2]: Leaving directory '/home/user/raspi_QtBuild/qt-everywhere-src-5.11.1/qtbase/src'
        Makefile:48: recipe for target 'sub-src-make_first' failed
        make[1]: *** [sub-src-make_first] Error 2
        make[1]: Leaving directory '/home/user/raspi_QtBuild/qt-everywhere-src-5.11.1/qtbase'
        Makefile:70: recipe for target 'module-qtbase-make_first' failed
        make: *** [module-qtbase-make_first] Error 2

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #25

          Why do you say you're compiling Qt 5.7.1 when the output you paste indicates 5.11.1?

          Anyway, I've never seen that error, I don't know how to fix it.

          (Z(:^

          S 2 Replies Last reply
          1
          • sierdzioS sierdzio

            Why do you say you're compiling Qt 5.7.1 when the output you paste indicates 5.11.1?

            Anyway, I've never seen that error, I don't know how to fix it.

            S Offline
            S Offline
            shivaVMC
            wrote on last edited by
            #26

            @sierdzio
            Qt_v5.7.1 .tar.xz file was already with me ,till Qt_v5.11.1 gets dowloaded I have compiled Qt5.7.1..... For both the version different errors I m facing as mentioned above

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #27

              @shivaVMC said in Qwt from Windows to Linux Porting:

              PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC

              This comes from EGL headers. You probably don't have all Qt dependencies installed in your sysroot.

              1. Install necessary dependencies. Try with sudo apt build-dep qt5-qmake qt5-default on your Raspberry Pi. You may also try sudo apt install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev libatspi2.0-dev libdbus-1-dev.
              2. Update your sysroot and fix symlinks.
              3. Recompile Qt. Make sure to check configure output that it says EGL support is on.

              (Z(:^

              1 Reply Last reply
              1
              • sierdzioS sierdzio

                Why do you say you're compiling Qt 5.7.1 when the output you paste indicates 5.11.1?

                Anyway, I've never seen that error, I don't know how to fix it.

                S Offline
                S Offline
                shivaVMC
                wrote on last edited by
                #28

                @sierdzio
                Hi ,
                Finally it got compiled...I m success on compiling and installing Qt-V5.11.1
                Now,please suggest me that which qmake shall I take to compile qwt-6.1.3

                I m finding two qmake

                1. /home/user/raspi_QtBuild/Qtver-5.11.1/qtbase/bin/qmake
                2. /home/user/raspi_QtBuild/qt5/bin/

                Thanks In advance for your help& support.

                1 Reply Last reply
                1
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #29

                  @shivaVMC said in Qwt from Windows to Linux Porting:

                  -hostprefix ~/raspi_QtBuild/qt5

                  This is your host prefix, so you should use the qmake from /home/user/raspi_QtBuild/qt5/bin/.

                  You can verify which Qt version that qmake comes from by running:

                  /home/user/raspi_QtBuild/qt5/bin/qmake -version
                  

                  (Z(:^

                  S 1 Reply Last reply
                  3
                  • sierdzioS sierdzio

                    @shivaVMC said in Qwt from Windows to Linux Porting:

                    -hostprefix ~/raspi_QtBuild/qt5

                    This is your host prefix, so you should use the qmake from /home/user/raspi_QtBuild/qt5/bin/.

                    You can verify which Qt version that qmake comes from by running:

                    /home/user/raspi_QtBuild/qt5/bin/qmake -version
                    
                    S Offline
                    S Offline
                    shivaVMC
                    wrote on last edited by
                    #30

                    @sierdzio
                    Everything went fine,but when I m performing
                    /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile Myproject.pro
                    .qmake.stash is created

                    then when I perform
                    make -j4
                    I get below error's ,please suggest on this

                    /home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to `operator delete(void*, unsigned int)@CXXABI_1.3.9'

                    /home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to `qTriangulate(QVectorPath const&, QTransform const&, double)@Qt_5_PRIVATE_API'
                    collect2: error: ld returned 1 exit status

                    I m head cracking on this,even I did on raspberrypi3 board

                    sudo apt-get update
                    sudo apt-get upgrade
                    sudo apt-get install mesa-utils

                    sudo raspi-config
                    Select 7 Advance Options
                    A6 GL Drivers
                    selected GL (Full KMS) Desktop Drivers
                    Ok-> Finish->Reboot.
                    My Screen went black with cursor blinking.

                    Any other commands,that I can do to get support for this libQt5OpenGL...This is the only step I stuck to complete the things of my project

                    1 Reply Last reply
                    0
                    • sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #31

                      Hm, I've never seen this error message, so I can only guess.

                      Can you show build output (for Qwt) - I'd like to see at least one line calling the compiler and one line calling the linker. Need to know if all the compilation flags are correct.

                      (Z(:^

                      S 1 Reply Last reply
                      0
                      • sierdzioS sierdzio

                        Hm, I've never seen this error message, so I can only guess.

                        Can you show build output (for Qwt) - I'd like to see at least one line calling the compiler and one line calling the linker. Need to know if all the compilation flags are correct.

                        S Offline
                        S Offline
                        shivaVMC
                        wrote on last edited by
                        #32

                        @sierdzio

                        /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile qwt.pro
                        User@lattitude-3480:~/Downloads/QWT/qwt-6.1.3$ make -j4
                        cd src/ && ( test -e Makefile || /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile /home/user/Downloads/QWT/qwt-6.1.3/src/src.pro ) && make -f Makefile
                        make[1]: Entering directory '/home/user/Downloads/QWT/qwt-6.1.3/src'
                        /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile src.pro
                        compiling qwt_abstract_scale_draw.cpp
                        compiling qwt_clipper.cpp
                        compiling qwt_color_map.cpp
                        compiling qwt_column_symbol.cpp
                        compiling qwt_date_scale_draw.cpp
                        compiling qwt_dyngrid_layout.cpp
                        compiling qwt_event_pattern.cpp
                        compiling qwt_graphic.cpp
                        compiling qwt_interval_symbol.cpp
                        compiling qwt_magnifier.cpp
                        compiling qwt_null_paintdevice.cpp
                        compiling qwt_painter.cpp
                        compiling qwt_painter_command.cpp
                        compiling qwt_panner.cpp
                        compiling qwt_picker.cpp
                        compiling qwt_picker_machine.cpp
                        compiling qwt_round_scale_draw.cpp
                        compiling qwt_scale_draw.cpp
                        compiling qwt_spline.cpp
                        compiling qwt_symbol.cpp
                        compiling qwt_text_engine.cpp
                        compiling qwt_text_label.cpp
                        compiling qwt_text.cpp
                        compiling qwt_widget_overlay.cpp
                        compiling qwt_curve_fitter.cpp
                        compiling qwt_abstract_legend.cpp
                        compiling qwt_legend.cpp
                        compiling qwt_legend_data.cpp
                        compiling qwt_legend_label.cpp
                        compiling qwt_plot.cpp
                        compiling qwt_plot_renderer.cpp
                        compiling qwt_plot_xml.cpp
                        compiling qwt_plot_axis.cpp
                        compiling qwt_plot_curve.cpp
                        compiling qwt_plot_dict.cpp
                        compiling qwt_plot_directpainter.cpp
                        compiling qwt_plot_grid.cpp
                        compiling qwt_plot_histogram.cpp
                        compiling qwt_plot_item.cpp
                        compiling qwt_plot_abstract_barchart.cpp
                        compiling qwt_plot_barchart.cpp
                        compiling qwt_plot_multi_barchart.cpp
                        compiling qwt_plot_intervalcurve.cpp
                        compiling qwt_plot_zoneitem.cpp
                        compiling qwt_plot_tradingcurve.cpp
                        compiling qwt_plot_spectrogram.cpp
                        compiling qwt_plot_spectrocurve.cpp
                        compiling qwt_plot_scaleitem.cpp
                        compiling qwt_plot_legenditem.cpp
                        compiling qwt_plot_seriesitem.cpp
                        compiling qwt_plot_shapeitem.cpp
                        compiling qwt_plot_marker.cpp
                        compiling qwt_plot_textlabel.cpp
                        compiling qwt_plot_layout.cpp
                        compiling qwt_plot_canvas.cpp
                        compiling qwt_plot_panner.cpp
                        compiling qwt_plot_rasteritem.cpp
                        compiling qwt_plot_picker.cpp
                        compiling qwt_plot_zoomer.cpp
                        compiling qwt_plot_magnifier.cpp
                        compiling qwt_plot_rescaler.cpp
                        compiling qwt_point_mapper.cpp
                        compiling qwt_raster_data.cpp
                        compiling qwt_matrix_raster_data.cpp
                        compiling qwt_scale_widget.cpp
                        compiling qwt_plot_svgitem.cpp
                        compiling qwt_plot_glcanvas.cpp
                        compiling qwt_abstract_slider.cpp
                        compiling qwt_abstract_scale.cpp
                        compiling qwt_arrow_button.cpp
                        compiling qwt_analog_clock.cpp
                        compiling qwt_compass.cpp
                        compiling qwt_compass_rose.cpp
                        compiling qwt_counter.cpp
                        compiling qwt_dial.cpp
                        compiling qwt_dial_needle.cpp
                        compiling qwt_knob.cpp
                        compiling qwt_slider.cpp
                        compiling qwt_thermo.cpp
                        compiling qwt_wheel.cpp
                        moc qwt_dyngrid_layout.h
                        moc qwt_magnifier.h
                        moc qwt_panner.h
                        moc qwt_picker.h
                        moc qwt_text_label.h
                        moc qwt_abstract_legend.h
                        moc qwt_legend.h
                        moc qwt_legend_label.h
                        moc qwt_plot.h
                        moc qwt_plot_renderer.h
                        moc qwt_plot_canvas.h
                        moc qwt_plot_panner.h
                        moc qwt_plot_picker.h
                        moc qwt_plot_zoomer.h
                        moc qwt_plot_magnifier.h
                        moc qwt_sampling_thread.h
                        moc qwt_scale_widget.h
                        moc qwt_plot_glcanvas.h
                        moc qwt_abstract_slider.h
                        moc qwt_abstract_scale.h
                        moc qwt_analog_clock.h
                        moc qwt_compass.h
                        moc qwt_counter.h
                        moc qwt_dial.h
                        moc qwt_knob.h
                        moc qwt_slider.h
                        moc qwt_thermo.h
                        moc qwt_wheel.h
                        compiling moc/moc_qwt_dyngrid_layout.cpp
                        compiling moc/moc_qwt_magnifier.cpp
                        compiling moc/moc_qwt_panner.cpp
                        compiling moc/moc_qwt_picker.cpp
                        compiling moc/moc_qwt_text_label.cpp
                        compiling moc/moc_qwt_abstract_legend.cpp
                        compiling moc/moc_qwt_legend.cpp
                        compiling moc/moc_qwt_legend_label.cpp
                        compiling moc/moc_qwt_plot.cpp
                        compiling moc/moc_qwt_plot_renderer.cpp
                        compiling moc/moc_qwt_plot_canvas.cpp
                        compiling moc/moc_qwt_plot_panner.cpp
                        compiling moc/moc_qwt_plot_picker.cpp
                        compiling moc/moc_qwt_plot_zoomer.cpp
                        compiling moc/moc_qwt_plot_magnifier.cpp
                        compiling moc/moc_qwt_sampling_thread.cpp
                        compiling moc/moc_qwt_scale_widget.cpp
                        compiling moc/moc_qwt_plot_glcanvas.cpp
                        compiling moc/moc_qwt_abstract_slider.cpp
                        compiling moc/moc_qwt_abstract_scale.cpp
                        compiling moc/moc_qwt_analog_clock.cpp
                        compiling moc/moc_qwt_compass.cpp
                        compiling moc/moc_qwt_counter.cpp
                        compiling moc/moc_qwt_dial.cpp
                        compiling moc/moc_qwt_knob.cpp
                        compiling moc/moc_qwt_slider.cpp
                        compiling moc/moc_qwt_thermo.cpp
                        compiling moc/moc_qwt_wheel.cpp
                        rm -f libqwt.so.6.1.3 libqwt.so libqwt.so.6 libqwt.so.6.1
                        linking ../lib/libqwt.so.6.1.3
                        ln -s libqwt.so.6.1.3 libqwt.so
                        ln -s libqwt.so.6.1.3 libqwt.so.6
                        ln -s libqwt.so.6.1.3 libqwt.so.6.1
                        rm -f ../lib/libqwt.so.6.1.3
                        mv -f libqwt.so.6.1.3 ../lib/
                        rm -f ../lib/libqwt.so
                        rm -f ../lib/libqwt.so.6
                        rm -f ../lib/libqwt.so.6.1
                        mv -f libqwt.so ../lib/
                        mv -f libqwt.so.6 ../lib/
                        mv -f libqwt.so.6.1 ../lib/
                        make[1]: Leaving directory '/home/user/Downloads/QWT/qwt-6.1.3/src'
                        cd textengines/ && ( test -e Makefile || /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile /home/user/Downloads/QWT/qwt-6.1.3/textengines/textengines.pro ) && make -f Makefile
                        make[1]: Entering directory '/home/user/Downloads/QWT/qwt-6.1.3/textengines'
                        /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile textengines.pro
                        make[1]: Nothing to be done for 'first'.
                        make[1]: Leaving directory '/home/user/Downloads/QWT/qwt-6.1.3/textengines'
                        cd doc/ && ( test -e Makefile || /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile /home/user/Downloads/QWT/qwt-6.1.3/doc/doc.pro ) && make -f Makefile
                        make[1]: Entering directory '/home/user/Downloads/QWT/qwt-6.1.3/doc'
                        /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile doc.pro
                        make[1]: Nothing to be done for 'first'.
                        make[1]: Leaving directory '/home/user/Downloads/QWT/qwt-6.1.3/doc'

                        1 Reply Last reply
                        0
                        • sierdzioS Offline
                          sierdzioS Offline
                          sierdzio
                          Moderators
                          wrote on last edited by
                          #33

                          Oh, they are not printing the build commands in Qwt :-( Don't they have some verbose mode or something?

                          If yes, please use it and paste the output here. If no, then please paste the beginning of Makefile that is produced - the section where all compilers and flags are set up.

                          (Z(:^

                          S 1 Reply Last reply
                          1
                          • sierdzioS sierdzio

                            Oh, they are not printing the build commands in Qwt :-( Don't they have some verbose mode or something?

                            If yes, please use it and paste the output here. If no, then please paste the beginning of Makefile that is produced - the section where all compilers and flags are set up.

                            S Offline
                            S Offline
                            shivaVMC
                            wrote on last edited by
                            #34

                            @sierdzio

                            Beginning lines of Makefile are as below

                            MAKEFILE = Makefile

                            first: make_first
                            QMAKE = /home/user/raspi_QtBuild/qt5/bin/qmake
                            DEL_FILE = rm -f
                            CHK_DIR_EXISTS= test -d
                            MKDIR = mkdir -p
                            COPY = cp -f
                            COPY_FILE = cp -f
                            COPY_DIR = cp -f -R
                            INSTALL_FILE = install -m 644 -p
                            INSTALL_PROGRAM = install -m 755 -p
                            INSTALL_DIR = cp -f -R
                            QINSTALL = /home/user/raspi_QtBuild/qt5/bin/qmake -install qinstall
                            QINSTALL_PROGRAM = /home/user/raspi_QtBuild/qt5/bin/qmake -install qinstall -exe
                            DEL_FILE = rm -f
                            SYMLINK = ln -f -s
                            DEL_DIR = rmdir
                            MOVE = mv -f
                            TAR = tar -cf
                            COMPRESS = gzip -9f
                            DISTNAME = qwt1.0.0
                            DISTDIR = /home/user/Downloads/QWT/qwt-6.1.3/.tmp/qwt1.0.0
                            SUBTARGETS =
                            sub-src
                            sub-textengines
                            sub-doc

                            sub-src-qmake_all: FORCE
                            @test -d src/ || mkdir -p src/
                            cd src/ && $(QMAKE) -o Makefile /home/user/Downloads/QWT/qwt-6.1.3/src/src.pro
                            cd src/ && $(MAKE) -f Makefile qmake_all

                            1 Reply Last reply
                            0
                            • sierdzioS Offline
                              sierdzioS Offline
                              sierdzio
                              Moderators
                              wrote on last edited by
                              #35

                              It still does not list the compiler anywhere... look deeper :-) I'm basically trying to verify whether qmake is building for cross-compilation here or not. Because it should.

                              Look for CC = or CXX = or something.

                              (Z(:^

                              S 1 Reply Last reply
                              1
                              • sierdzioS sierdzio

                                It still does not list the compiler anywhere... look deeper :-) I'm basically trying to verify whether qmake is building for cross-compilation here or not. Because it should.

                                Look for CC = or CXX = or something.

                                S Offline
                                S Offline
                                shivaVMC
                                wrote on last edited by
                                #36

                                @sierdzio
                                This is the beginning of Makefile created by my PROJECT, when I pass below command
                                /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile PROJECT.pro

                                MAKEFILE = Makefile

                                ####### Compiler, tools and options

                                CC = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc
                                CXX = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++
                                DEFINES = -DQWT_NO_SVG -DQWT_DLL -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB
                                CFLAGS = -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/home/user/raspi_QtBuild/sysroot -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
                                CXXFLAGS = -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/home/user/raspi_QtBuild/sysroot -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
                                INCPATH = -I. -Isrc -I/usr/local/qwt-6.1.3/include -I../../../../raspi_QtBuild/qt5pi/include -I../../../../raspi_QtBuild/qt5pi/include/QtPrintSupport -I../../../../raspi_QtBuild/qt5pi/include/QtSvg -I../../../../raspi_QtBuild/qt5pi/include/QtWidgets -I../../../../raspi_QtBuild/qt5pi/include/QtGui -I../../../../raspi_QtBuild/qt5pi/include/QtNetwork -I../../../../raspi_QtBuild/qt5pi/include/QtConcurrent -I../../../../raspi_QtBuild/qt5pi/include/QtCore -I. -I=/opt/vc/include -I=/opt/vc/include/interface/vcos/pthreads -I=/opt/vc/include/interface/vmcs_host/linux -I. -I../../../../raspi/qt5/mkspecs/devices/linux-rpi3-g++
                                QMAKE = /home/user/raspi_QtBuild/qt5/bin/qmake
                                DEL_FILE = rm -f
                                CHK_DIR_EXISTS= test -d
                                MKDIR = mkdir -p
                                COPY = cp -f
                                COPY_FILE = cp -f
                                COPY_DIR = cp -f -R
                                INSTALL_FILE = install -m 644 -p
                                INSTALL_PROGRAM = install -m 755 -p
                                INSTALL_DIR = cp -f -R
                                QINSTALL = /home/user/raspi_QtBuild/qt5/bin/qmake -install qinstall
                                QINSTALL_PROGRAM = /home/user/raspi_QtBuild/qt5/bin/qmake -install qinstall -exe
                                DEL_FILE = rm -f
                                SYMLINK = ln -f -s
                                DEL_DIR = rmdir
                                MOVE = mv -f
                                TAR = tar -cf
                                COMPRESS = gzip -9f
                                DISTNAME = PROJECT1.0.0
                                DISTDIR = /home/user/Desktop/proj/raspi_proj/PROJECT_V_00.00.007/.tmp/PROJECT1.0.0
                                LINK = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++
                                LFLAGS = -Wl,-rpath-link,/home/user/raspi_QtBuild/sysroot/opt/vc/lib -Wl,-rpath-link,/home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/user/raspi_QtBuild/sysroot/lib/arm-linux-gnueabihf -mfloat-abi=hard --sysroot=/home/user/raspi_QtBuild/sysroot -Wl,-O1 -Wl,-rpath,/usr/local/qt5pi/lib
                                LIBS = $(SUBLIBS) -L=/opt/vc/lib -L/home/user/Desktop/proj/raspi_proj/PROJECT_V_00.00.007/lib -L/usr/local/qwt-6.1.3/lib -lqwt -L/home/user/raspi_QtBuild/qt5pi/lib -lQt5PrintSupport -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Concurrent -lQt5Core -L/home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf -lGLESv2 -lpthread
                                AR = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-ar cqs
                                RANLIB =
                                SED = sed
                                STRIP = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-strip

                                sierdzioS 1 Reply Last reply
                                0
                                • S shivaVMC

                                  @sierdzio
                                  This is the beginning of Makefile created by my PROJECT, when I pass below command
                                  /home/user/raspi_QtBuild/qt5/bin/qmake -o Makefile PROJECT.pro

                                  MAKEFILE = Makefile

                                  ####### Compiler, tools and options

                                  CC = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc
                                  CXX = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++
                                  DEFINES = -DQWT_NO_SVG -DQWT_DLL -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB
                                  CFLAGS = -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/home/user/raspi_QtBuild/sysroot -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
                                  CXXFLAGS = -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/home/user/raspi_QtBuild/sysroot -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
                                  INCPATH = -I. -Isrc -I/usr/local/qwt-6.1.3/include -I../../../../raspi_QtBuild/qt5pi/include -I../../../../raspi_QtBuild/qt5pi/include/QtPrintSupport -I../../../../raspi_QtBuild/qt5pi/include/QtSvg -I../../../../raspi_QtBuild/qt5pi/include/QtWidgets -I../../../../raspi_QtBuild/qt5pi/include/QtGui -I../../../../raspi_QtBuild/qt5pi/include/QtNetwork -I../../../../raspi_QtBuild/qt5pi/include/QtConcurrent -I../../../../raspi_QtBuild/qt5pi/include/QtCore -I. -I=/opt/vc/include -I=/opt/vc/include/interface/vcos/pthreads -I=/opt/vc/include/interface/vmcs_host/linux -I. -I../../../../raspi/qt5/mkspecs/devices/linux-rpi3-g++
                                  QMAKE = /home/user/raspi_QtBuild/qt5/bin/qmake
                                  DEL_FILE = rm -f
                                  CHK_DIR_EXISTS= test -d
                                  MKDIR = mkdir -p
                                  COPY = cp -f
                                  COPY_FILE = cp -f
                                  COPY_DIR = cp -f -R
                                  INSTALL_FILE = install -m 644 -p
                                  INSTALL_PROGRAM = install -m 755 -p
                                  INSTALL_DIR = cp -f -R
                                  QINSTALL = /home/user/raspi_QtBuild/qt5/bin/qmake -install qinstall
                                  QINSTALL_PROGRAM = /home/user/raspi_QtBuild/qt5/bin/qmake -install qinstall -exe
                                  DEL_FILE = rm -f
                                  SYMLINK = ln -f -s
                                  DEL_DIR = rmdir
                                  MOVE = mv -f
                                  TAR = tar -cf
                                  COMPRESS = gzip -9f
                                  DISTNAME = PROJECT1.0.0
                                  DISTDIR = /home/user/Desktop/proj/raspi_proj/PROJECT_V_00.00.007/.tmp/PROJECT1.0.0
                                  LINK = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++
                                  LFLAGS = -Wl,-rpath-link,/home/user/raspi_QtBuild/sysroot/opt/vc/lib -Wl,-rpath-link,/home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/user/raspi_QtBuild/sysroot/lib/arm-linux-gnueabihf -mfloat-abi=hard --sysroot=/home/user/raspi_QtBuild/sysroot -Wl,-O1 -Wl,-rpath,/usr/local/qt5pi/lib
                                  LIBS = $(SUBLIBS) -L=/opt/vc/lib -L/home/user/Desktop/proj/raspi_proj/PROJECT_V_00.00.007/lib -L/usr/local/qwt-6.1.3/lib -lqwt -L/home/user/raspi_QtBuild/qt5pi/lib -lQt5PrintSupport -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Concurrent -lQt5Core -L/home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf -lGLESv2 -lpthread
                                  AR = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-ar cqs
                                  RANLIB =
                                  SED = sed
                                  STRIP = /home/user/raspi_QtBuild/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-strip

                                  sierdzioS Offline
                                  sierdzioS Offline
                                  sierdzio
                                  Moderators
                                  wrote on last edited by
                                  #37

                                  @shivaVMC said in Qwt from Windows to Linux Porting:

                                  This is the beginning of Makefile created by my PROJECT, when I pass below command

                                  Ooops I misunderstood :-) I thought you had errors when compiling Qwt, but now I see you have them when compiling your project. OK.

                                  Compiler setup looks OK.

                                  So you have everything correctly cross-compiled but still it complains about:

                                  /home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to `operator delete(void*, unsigned int)@CXXABI_1.3.9'
                                  
                                  /home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to `qTriangulate(QVectorPath const&, QTransform const&, double)@Qt_5_PRIVATE_API'
                                  

                                  Hm :-/ I'm out of ideas to be honest. Looks like Qt has disabled some part of the code, or there is ABI mismatch but both these possibilities seem weird.

                                  (Z(:^

                                  S 1 Reply Last reply
                                  0
                                  • sierdzioS sierdzio

                                    @shivaVMC said in Qwt from Windows to Linux Porting:

                                    This is the beginning of Makefile created by my PROJECT, when I pass below command

                                    Ooops I misunderstood :-) I thought you had errors when compiling Qwt, but now I see you have them when compiling your project. OK.

                                    Compiler setup looks OK.

                                    So you have everything correctly cross-compiled but still it complains about:

                                    /home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to `operator delete(void*, unsigned int)@CXXABI_1.3.9'
                                    
                                    /home/user/raspi_QtBuild/sysroot/usr/lib/arm-linux-gnueabihf/libQt5OpenGL.so.5: undefined reference to `qTriangulate(QVectorPath const&, QTransform const&, double)@Qt_5_PRIVATE_API'
                                    

                                    Hm :-/ I'm out of ideas to be honest. Looks like Qt has disabled some part of the code, or there is ABI mismatch but both these possibilities seem weird.

                                    S Offline
                                    S Offline
                                    shivaVMC
                                    wrote on last edited by
                                    #38

                                    @sierdzio

                                    Yeah,everything correctly cross-compiled but still it complains OpenGL issue.
                                    So,next what How shall I proceed ?
                                    Any alternate solution for this bug.

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #39

                                      Hi,

                                      Might be a silly question but are you sure you are using the same Qt version of building your application that was used to build Qwt ?

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      1

                                      • Login

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups
                                      • Search
                                      • Get Qt Extensions
                                      • Unsolved