Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why strip is not identify header file format on Ubuntu?
Forum Updated to NodeBB v4.3 + New Features

Why strip is not identify header file format on Ubuntu?

Scheduled Pinned Locked Moved Solved General and Desktop
linuxqt5.13.1
18 Posts 6 Posters 3.8k Views 2 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.
  • Christian EhrlicherC Christian Ehrlicher

    Ah, can it be that your header files are marked as executable because you copied the files over from windows?

    Y Offline
    Y Offline
    Yash001
    wrote on last edited by
    #9

    @Christian-Ehrlicher

    I download from sudo svn checkout svn://svn.code.sf.net/p/qwt/code/branches/qwt-6.1.

    However, Yes it is marked as executable. Here the output of ls -al command.

    /usr/local/qwt-6.1.5-svn/include$ ls -al
    total 540
    drwxr-xr-x 2 root root  4096 Sep 29 11:54 .
    drwxr-xr-x 6 root root  4096 Sep 29 00:33 ..
    -rwxr-xr-x 1 root root  2030 Sep 29 00:22 qwt_abstract_legend.h
    -rwxr-xr-x 1 root root  3606 Sep 29 00:22 qwt_abstract_scale_draw.h
    -rwxr-xr-x 1 root root  2904 Sep 29 00:22 qwt_abstract_scale.h
    -rwxr-xr-x 1 root root  4398 Sep 29 00:22 qwt_abstract_slider.h
    -rwxr-xr-x 1 root root  2168 Sep 29 00:22 qwt_analog_clock.h
    -rwxr-xr-x 1 root root  1424 Sep 29 00:22 qwt_arrow_button.h
    -rwxr-xr-x 1 root root  1062 Sep 29 00:22 qwt_clipper.h
    -rwxr-xr-x 1 root root  5109 Sep 29 00:22 qwt_color_map.h
    -rwxr-xr-x 1 root root  3818 Sep 29 00:22 qwt_column_symbol.h
    -rwxr-xr-x 1 root root  2071 Sep 29 00:22 qwt_compass.h
    -rwxr-xr-x 1 root root  2196 Sep 29 00:22 qwt_compass_rose.h
    -rwxr-xr-x 1 root root  1064 Sep 29 00:22 qwt_compat.h
    -rwxr-xr-x 1 root root  4325 Sep 29 00:22 qwt_counter.h
    -rwxr-xr-x 1 root root  3763 Sep 29 00:22 qwt_curve_fitter.h
    -rwxr-xr-x 1 root root  3522 Sep 29 00:22 qwt_date.h
    -rwxr-xr-x 1 root root  2207 Sep 29 00:22 qwt_date_scale_draw.h
    -rwxr-xr-x 1 root root  2662 Sep 29 00:22 qwt_date_scale_engine.h
    -rwxr-xr-x 1 root root  4958 Sep 29 00:22 qwt_dial.h
    -rwxr-xr-x 1 root root  4081 Sep 29 00:22 qwt_dial_needle.h
    -rwxr-xr-x 1 root root  2363 Sep 29 00:22 qwt_dyngrid_layout.h
    -rwxr-xr-x 1 root root  5950 Sep 29 00:22 qwt_event_pattern.h
    -rwxr-xr-x 1 root root  1077 Sep 29 00:22 qwt_global.h
    -rwxr-xr-x 1 root root  5706 Sep 29 00:22 qwt_graphic.h
    -rwxr-xr-x 1 root root   510 Sep 29 00:22 qwt.h
    -rwxr-xr-x 1 root root  7166 Sep 29 00:22 qwt_interval.h
    -rwxr-xr-x 1 root root  2250 Sep 29 00:22 qwt_interval_symbol.h
    -rwxr-xr-x 1 root root  4747 Sep 29 00:22 qwt_knob.h
    -rwxr-xr-x 1 root root  2187 Sep 29 00:22 qwt_legend_data.h
    -rwxr-xr-x 1 root root  3439 Sep 29 00:22 qwt_legend.h
    -rwxr-xr-x 1 root root  1967 Sep 29 00:22 qwt_legend_label.h
    -rwxr-xr-x 1 root root  2426 Sep 29 00:22 qwt_magnifier.h
    -rwxr-xr-x 1 root root  3372 Sep 29 00:22 qwt_math.h
    -rwxr-xr-x 1 root root  2009 Sep 29 00:22 qwt_matrix_raster_data.h
    -rwxr-xr-x 1 root root  3411 Sep 29 00:22 qwt_null_paintdevice.h
    -rwxr-xr-x 1 root root  3802 Sep 29 00:22 qwt_painter_command.h
    -rwxr-xr-x 1 root root  6127 Sep 29 00:22 qwt_painter.h
    -rwxr-xr-x 1 root root  2938 Sep 29 00:22 qwt_panner.h
    -rwxr-xr-x 1 root root  9533 Sep 29 00:22 qwt_picker.h
    -rwxr-xr-x 1 root root  5686 Sep 29 00:22 qwt_picker_machine.h
    -rwxr-xr-x 1 root root  2329 Sep 29 00:22 qwt_pixel_matrix.h
    -rwxr-xr-x 1 root root  2635 Sep 29 00:22 qwt_plot_abstract_barchart.h
    -rwxr-xr-x 1 root root  3544 Sep 29 00:22 qwt_plot_barchart.h
    -rwxr-xr-x 1 root root  4961 Sep 29 00:22 qwt_plot_canvas.h
    -rwxr-xr-x 1 root root 10296 Sep 29 00:22 qwt_plot_curve.h
    -rwxr-xr-x 1 root root  1656 Sep 29 00:22 qwt_plot_dict.h
    -rwxr-xr-x 1 root root  3156 Sep 29 00:22 qwt_plot_directpainter.h
    -rwxr-xr-x 1 root root  3633 Sep 29 00:22 qwt_plot_glcanvas.h
    -rwxr-xr-x 1 root root  2413 Sep 29 00:22 qwt_plot_grid.h
    -rwxr-xr-x 1 root root  8468 Sep 29 00:22 qwt_plot.h
    -rwxr-xr-x 1 root root  4278 Sep 29 00:22 qwt_plot_histogram.h
    -rwxr-xr-x 1 root root  3994 Sep 29 00:22 qwt_plot_intervalcurve.h
    -rwxr-xr-x 1 root root  8333 Sep 29 00:22 qwt_plot_item.h
    -rwxr-xr-x 1 root root  3225 Sep 29 00:22 qwt_plot_layout.h
    -rwxr-xr-x 1 root root  3707 Sep 29 00:22 qwt_plot_legenditem.h
    -rwxr-xr-x 1 root root  1393 Sep 29 00:22 qwt_plot_magnifier.h
    -rwxr-xr-x 1 root root  3422 Sep 29 00:22 qwt_plot_marker.h
    -rwxr-xr-x 1 root root  4018 Sep 29 00:22 qwt_plot_multi_barchart.h
    -rwxr-xr-x 1 root root  1504 Sep 29 00:22 qwt_plot_panner.h
    -rwxr-xr-x 1 root root  2806 Sep 29 00:22 qwt_plot_picker.h
    -rwxr-xr-x 1 root root  4785 Sep 29 00:22 qwt_plot_rasteritem.h
    -rwxr-xr-x 1 root root  4548 Sep 29 00:22 qwt_plot_renderer.h
    -rwxr-xr-x 1 root root  3871 Sep 29 00:22 qwt_plot_rescaler.h
    -rwxr-xr-x 1 root root  2645 Sep 29 00:22 qwt_plot_scaleitem.h
    -rwxr-xr-x 1 root root  1982 Sep 29 00:22 qwt_plot_seriesitem.h
    -rwxr-xr-x 1 root root  3267 Sep 29 00:22 qwt_plot_shapeitem.h
    -rwxr-xr-x 1 root root  2136 Sep 29 00:22 qwt_plot_spectrocurve.h
    -rwxr-xr-x 1 root root  3586 Sep 29 00:22 qwt_plot_spectrogram.h
    -rwxr-xr-x 1 root root  1546 Sep 29 00:22 qwt_plot_svgitem.h
    -rwxr-xr-x 1 root root  1842 Sep 29 00:22 qwt_plot_textlabel.h
    -rwxr-xr-x 1 root root  5211 Sep 29 00:22 qwt_plot_tradingcurve.h
    -rwxr-xr-x 1 root root  1755 Sep 29 00:22 qwt_plot_zoneitem.h
    -rwxr-xr-x 1 root root  4290 Sep 29 00:22 qwt_plot_zoomer.h
    -rwxr-xr-x 1 root root  3961 Sep 29 00:22 qwt_point_3d.h
    -rwxr-xr-x 1 root root  3588 Sep 29 00:22 qwt_point_data.h
    -rwxr-xr-x 1 root root  2682 Sep 29 00:22 qwt_point_mapper.h
    -rwxr-xr-x 1 root root  4570 Sep 29 00:22 qwt_point_polar.h
    -rwxr-xr-x 1 root root  2684 Sep 29 00:22 qwt_raster_data.h
    -rwxr-xr-x 1 root root  1956 Sep 29 00:22 qwt_round_scale_draw.h
    -rwxr-xr-x 1 root root  4960 Sep 29 00:22 qwt_samples.h
    -rwxr-xr-x 1 root root  1475 Sep 29 00:22 qwt_sampling_thread.h
    -rwxr-xr-x 1 root root  2754 Sep 29 00:22 qwt_scale_div.h
    -rwxr-xr-x 1 root root  3168 Sep 29 00:22 qwt_scale_draw.h
    -rwxr-xr-x 1 root root  6293 Sep 29 00:22 qwt_scale_engine.h
    -rwxr-xr-x 1 root root  3776 Sep 29 00:22 qwt_scale_map.h
    -rwxr-xr-x 1 root root  3547 Sep 29 00:22 qwt_scale_widget.h
    -rwxr-xr-x 1 root root  9389 Sep 29 00:22 qwt_series_data.h
    -rwxr-xr-x 1 root root  5151 Sep 29 00:22 qwt_series_store.h
    -rwxr-xr-x 1 root root  3493 Sep 29 00:22 qwt_slider.h
    -rwxr-xr-x 1 root root  2433 Sep 29 00:22 qwt_spline.h
    -rwxr-xr-x 1 root root  6209 Sep 29 00:22 qwt_symbol.h
    -rwxr-xr-x 1 root root  1425 Sep 29 00:22 qwt_system_clock.h
    -rwxr-xr-x 1 root root  4853 Sep 29 00:22 qwt_text_engine.h
    -rwxr-xr-x 1 root root  6188 Sep 29 00:22 qwt_text.h
    -rwxr-xr-x 1 root root  1845 Sep 29 00:22 qwt_text_label.h
    -rwxr-xr-x 1 root root  4686 Sep 29 00:22 qwt_thermo.h
    -rwxr-xr-x 1 root root  3603 Sep 29 00:22 qwt_transform.h
    -rwxr-xr-x 1 root root  4850 Sep 29 00:22 qwt_wheel.h
    -rwxr-xr-x 1 root root  4058 Sep 29 00:22 qwt_widget_overlay.h
    
    
    aha_1980A 1 Reply Last reply
    0
    • JonBJ JonB

      @Yash001
      I don't know anything about making Qt, but the Unix strip command is for running on executables, to remove bytes you don't need on final release code. It would never be run on a .h source file. Nor on a .pri or .prf file. So something is wrong.

      Y Offline
      Y Offline
      Yash001
      wrote on last edited by
      #10

      @JonB

      Thank you for for explain strip command in detail. Yes, My header files are marked as executable thats why it may executable on all header files.

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #11

        Then remove the executable bit. qmake thinks it's an executable otherwise.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        Y 1 Reply Last reply
        4
        • Y Yash001

          @Christian-Ehrlicher

          I download from sudo svn checkout svn://svn.code.sf.net/p/qwt/code/branches/qwt-6.1.

          However, Yes it is marked as executable. Here the output of ls -al command.

          /usr/local/qwt-6.1.5-svn/include$ ls -al
          total 540
          drwxr-xr-x 2 root root  4096 Sep 29 11:54 .
          drwxr-xr-x 6 root root  4096 Sep 29 00:33 ..
          -rwxr-xr-x 1 root root  2030 Sep 29 00:22 qwt_abstract_legend.h
          -rwxr-xr-x 1 root root  3606 Sep 29 00:22 qwt_abstract_scale_draw.h
          -rwxr-xr-x 1 root root  2904 Sep 29 00:22 qwt_abstract_scale.h
          -rwxr-xr-x 1 root root  4398 Sep 29 00:22 qwt_abstract_slider.h
          -rwxr-xr-x 1 root root  2168 Sep 29 00:22 qwt_analog_clock.h
          -rwxr-xr-x 1 root root  1424 Sep 29 00:22 qwt_arrow_button.h
          -rwxr-xr-x 1 root root  1062 Sep 29 00:22 qwt_clipper.h
          -rwxr-xr-x 1 root root  5109 Sep 29 00:22 qwt_color_map.h
          -rwxr-xr-x 1 root root  3818 Sep 29 00:22 qwt_column_symbol.h
          -rwxr-xr-x 1 root root  2071 Sep 29 00:22 qwt_compass.h
          -rwxr-xr-x 1 root root  2196 Sep 29 00:22 qwt_compass_rose.h
          -rwxr-xr-x 1 root root  1064 Sep 29 00:22 qwt_compat.h
          -rwxr-xr-x 1 root root  4325 Sep 29 00:22 qwt_counter.h
          -rwxr-xr-x 1 root root  3763 Sep 29 00:22 qwt_curve_fitter.h
          -rwxr-xr-x 1 root root  3522 Sep 29 00:22 qwt_date.h
          -rwxr-xr-x 1 root root  2207 Sep 29 00:22 qwt_date_scale_draw.h
          -rwxr-xr-x 1 root root  2662 Sep 29 00:22 qwt_date_scale_engine.h
          -rwxr-xr-x 1 root root  4958 Sep 29 00:22 qwt_dial.h
          -rwxr-xr-x 1 root root  4081 Sep 29 00:22 qwt_dial_needle.h
          -rwxr-xr-x 1 root root  2363 Sep 29 00:22 qwt_dyngrid_layout.h
          -rwxr-xr-x 1 root root  5950 Sep 29 00:22 qwt_event_pattern.h
          -rwxr-xr-x 1 root root  1077 Sep 29 00:22 qwt_global.h
          -rwxr-xr-x 1 root root  5706 Sep 29 00:22 qwt_graphic.h
          -rwxr-xr-x 1 root root   510 Sep 29 00:22 qwt.h
          -rwxr-xr-x 1 root root  7166 Sep 29 00:22 qwt_interval.h
          -rwxr-xr-x 1 root root  2250 Sep 29 00:22 qwt_interval_symbol.h
          -rwxr-xr-x 1 root root  4747 Sep 29 00:22 qwt_knob.h
          -rwxr-xr-x 1 root root  2187 Sep 29 00:22 qwt_legend_data.h
          -rwxr-xr-x 1 root root  3439 Sep 29 00:22 qwt_legend.h
          -rwxr-xr-x 1 root root  1967 Sep 29 00:22 qwt_legend_label.h
          -rwxr-xr-x 1 root root  2426 Sep 29 00:22 qwt_magnifier.h
          -rwxr-xr-x 1 root root  3372 Sep 29 00:22 qwt_math.h
          -rwxr-xr-x 1 root root  2009 Sep 29 00:22 qwt_matrix_raster_data.h
          -rwxr-xr-x 1 root root  3411 Sep 29 00:22 qwt_null_paintdevice.h
          -rwxr-xr-x 1 root root  3802 Sep 29 00:22 qwt_painter_command.h
          -rwxr-xr-x 1 root root  6127 Sep 29 00:22 qwt_painter.h
          -rwxr-xr-x 1 root root  2938 Sep 29 00:22 qwt_panner.h
          -rwxr-xr-x 1 root root  9533 Sep 29 00:22 qwt_picker.h
          -rwxr-xr-x 1 root root  5686 Sep 29 00:22 qwt_picker_machine.h
          -rwxr-xr-x 1 root root  2329 Sep 29 00:22 qwt_pixel_matrix.h
          -rwxr-xr-x 1 root root  2635 Sep 29 00:22 qwt_plot_abstract_barchart.h
          -rwxr-xr-x 1 root root  3544 Sep 29 00:22 qwt_plot_barchart.h
          -rwxr-xr-x 1 root root  4961 Sep 29 00:22 qwt_plot_canvas.h
          -rwxr-xr-x 1 root root 10296 Sep 29 00:22 qwt_plot_curve.h
          -rwxr-xr-x 1 root root  1656 Sep 29 00:22 qwt_plot_dict.h
          -rwxr-xr-x 1 root root  3156 Sep 29 00:22 qwt_plot_directpainter.h
          -rwxr-xr-x 1 root root  3633 Sep 29 00:22 qwt_plot_glcanvas.h
          -rwxr-xr-x 1 root root  2413 Sep 29 00:22 qwt_plot_grid.h
          -rwxr-xr-x 1 root root  8468 Sep 29 00:22 qwt_plot.h
          -rwxr-xr-x 1 root root  4278 Sep 29 00:22 qwt_plot_histogram.h
          -rwxr-xr-x 1 root root  3994 Sep 29 00:22 qwt_plot_intervalcurve.h
          -rwxr-xr-x 1 root root  8333 Sep 29 00:22 qwt_plot_item.h
          -rwxr-xr-x 1 root root  3225 Sep 29 00:22 qwt_plot_layout.h
          -rwxr-xr-x 1 root root  3707 Sep 29 00:22 qwt_plot_legenditem.h
          -rwxr-xr-x 1 root root  1393 Sep 29 00:22 qwt_plot_magnifier.h
          -rwxr-xr-x 1 root root  3422 Sep 29 00:22 qwt_plot_marker.h
          -rwxr-xr-x 1 root root  4018 Sep 29 00:22 qwt_plot_multi_barchart.h
          -rwxr-xr-x 1 root root  1504 Sep 29 00:22 qwt_plot_panner.h
          -rwxr-xr-x 1 root root  2806 Sep 29 00:22 qwt_plot_picker.h
          -rwxr-xr-x 1 root root  4785 Sep 29 00:22 qwt_plot_rasteritem.h
          -rwxr-xr-x 1 root root  4548 Sep 29 00:22 qwt_plot_renderer.h
          -rwxr-xr-x 1 root root  3871 Sep 29 00:22 qwt_plot_rescaler.h
          -rwxr-xr-x 1 root root  2645 Sep 29 00:22 qwt_plot_scaleitem.h
          -rwxr-xr-x 1 root root  1982 Sep 29 00:22 qwt_plot_seriesitem.h
          -rwxr-xr-x 1 root root  3267 Sep 29 00:22 qwt_plot_shapeitem.h
          -rwxr-xr-x 1 root root  2136 Sep 29 00:22 qwt_plot_spectrocurve.h
          -rwxr-xr-x 1 root root  3586 Sep 29 00:22 qwt_plot_spectrogram.h
          -rwxr-xr-x 1 root root  1546 Sep 29 00:22 qwt_plot_svgitem.h
          -rwxr-xr-x 1 root root  1842 Sep 29 00:22 qwt_plot_textlabel.h
          -rwxr-xr-x 1 root root  5211 Sep 29 00:22 qwt_plot_tradingcurve.h
          -rwxr-xr-x 1 root root  1755 Sep 29 00:22 qwt_plot_zoneitem.h
          -rwxr-xr-x 1 root root  4290 Sep 29 00:22 qwt_plot_zoomer.h
          -rwxr-xr-x 1 root root  3961 Sep 29 00:22 qwt_point_3d.h
          -rwxr-xr-x 1 root root  3588 Sep 29 00:22 qwt_point_data.h
          -rwxr-xr-x 1 root root  2682 Sep 29 00:22 qwt_point_mapper.h
          -rwxr-xr-x 1 root root  4570 Sep 29 00:22 qwt_point_polar.h
          -rwxr-xr-x 1 root root  2684 Sep 29 00:22 qwt_raster_data.h
          -rwxr-xr-x 1 root root  1956 Sep 29 00:22 qwt_round_scale_draw.h
          -rwxr-xr-x 1 root root  4960 Sep 29 00:22 qwt_samples.h
          -rwxr-xr-x 1 root root  1475 Sep 29 00:22 qwt_sampling_thread.h
          -rwxr-xr-x 1 root root  2754 Sep 29 00:22 qwt_scale_div.h
          -rwxr-xr-x 1 root root  3168 Sep 29 00:22 qwt_scale_draw.h
          -rwxr-xr-x 1 root root  6293 Sep 29 00:22 qwt_scale_engine.h
          -rwxr-xr-x 1 root root  3776 Sep 29 00:22 qwt_scale_map.h
          -rwxr-xr-x 1 root root  3547 Sep 29 00:22 qwt_scale_widget.h
          -rwxr-xr-x 1 root root  9389 Sep 29 00:22 qwt_series_data.h
          -rwxr-xr-x 1 root root  5151 Sep 29 00:22 qwt_series_store.h
          -rwxr-xr-x 1 root root  3493 Sep 29 00:22 qwt_slider.h
          -rwxr-xr-x 1 root root  2433 Sep 29 00:22 qwt_spline.h
          -rwxr-xr-x 1 root root  6209 Sep 29 00:22 qwt_symbol.h
          -rwxr-xr-x 1 root root  1425 Sep 29 00:22 qwt_system_clock.h
          -rwxr-xr-x 1 root root  4853 Sep 29 00:22 qwt_text_engine.h
          -rwxr-xr-x 1 root root  6188 Sep 29 00:22 qwt_text.h
          -rwxr-xr-x 1 root root  1845 Sep 29 00:22 qwt_text_label.h
          -rwxr-xr-x 1 root root  4686 Sep 29 00:22 qwt_thermo.h
          -rwxr-xr-x 1 root root  3603 Sep 29 00:22 qwt_transform.h
          -rwxr-xr-x 1 root root  4850 Sep 29 00:22 qwt_wheel.h
          -rwxr-xr-x 1 root root  4058 Sep 29 00:22 qwt_widget_overlay.h
          
          
          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #12

          @Yash001 and do yourself a favor and build programs as normal user, not as root.

          you can compile everything in your home and just exec sudo make install afterwards.

          Regards

          Qt has to stay free or it will die.

          Y 1 Reply Last reply
          5
          • aha_1980A aha_1980

            @Yash001 and do yourself a favor and build programs as normal user, not as root.

            you can compile everything in your home and just exec sudo make install afterwards.

            Regards

            Y Offline
            Y Offline
            Yash001
            wrote on last edited by
            #13

            @aha_1980
            some time without root permission I am getting other error.
            qmake give permission to header file as executable as @Christian-Ehrlicher said.

            what is correct location to install the Qt in Linux /opt/Qt or ~/ or any other location.

            Currently my Qt is install at ```/opt/Qt`` location. If I will run qt as normal user then it is not open the serial port. If I will run my qt as root user then it is open the serial port.

            Are you recommended to change the Qt location?

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

              Hi,

              If it's only a question of serial port access, you should update your user groups to include the one allowed to access the serial port rather than running application as root.

              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
              4
              • Christian EhrlicherC Christian Ehrlicher

                Then remove the executable bit. qmake thinks it's an executable otherwise.

                Y Offline
                Y Offline
                Yash001
                wrote on last edited by
                #15

                @Christian-Ehrlicher
                Thank you for quick response.
                I will change the the permission of all header files. I am just trying to figure out my Qt location is not install at wrong location. I am curious to know. how permission is assign to newly created file in Linux. Is it inherited from parent folder?

                aha_1980A 1 Reply Last reply
                0
                • Y Yash001

                  @aha_1980
                  some time without root permission I am getting other error.
                  qmake give permission to header file as executable as @Christian-Ehrlicher said.

                  what is correct location to install the Qt in Linux /opt/Qt or ~/ or any other location.

                  Currently my Qt is install at ```/opt/Qt`` location. If I will run qt as normal user then it is not open the serial port. If I will run my qt as root user then it is open the serial port.

                  Are you recommended to change the Qt location?

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #16

                  @Yash001

                  If I will run my qt as root user then it is open the serial port.

                  Add yourself to the group dialout and you're done.

                  Do not run programs as root until you know what you are doing. You will brick your system and your data. There is no safety net.

                  Regards

                  Qt has to stay free or it will die.

                  Y 1 Reply Last reply
                  4
                  • Y Yash001

                    @Christian-Ehrlicher
                    Thank you for quick response.
                    I will change the the permission of all header files. I am just trying to figure out my Qt location is not install at wrong location. I am curious to know. how permission is assign to newly created file in Linux. Is it inherited from parent folder?

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #17

                    @Yash001

                    Is it inherited from parent folder?

                    Short answer: yes.

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    2
                    • aha_1980A aha_1980

                      @Yash001

                      If I will run my qt as root user then it is open the serial port.

                      Add yourself to the group dialout and you're done.

                      Do not run programs as root until you know what you are doing. You will brick your system and your data. There is no safety net.

                      Regards

                      Y Offline
                      Y Offline
                      Yash001
                      wrote on last edited by
                      #18

                      @aha_1980
                      Thank you so much sir, for giving clear idea on access application or utility without root.

                      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