build problem on Ubuntu 22.04.3 LTS

All about Linux portage
Post Reply
paul_Clouds
Posts: 2
Joined: Mon Jan 15, 2024 3:14 pm

build problem on Ubuntu 22.04.3 LTS

Post by paul_Clouds »

Thanks for the great software.
I am trying to build on Ubuntu 22.04.3 LTS (WSL on windows 11).
Firstly I could not find qt5-default. I tried several suggestions on Google but none fixed the cmake build errors found below.

Then I did the cmake steps as mentioned in the BUILD.md file

Several components build fine, but then I get:

Code: Select all

 Building CXX object qCC/CMakeFiles/CloudCompare.dir/CloudCompare_autogen/mocs_compilation.cpp.o
In file included from /home/paulus/projects/cloudcompare/CloudCompare/build/qCC/CloudCompare_autogen/EWIEGA46WW/../../../../qCC/ccGraphicalTransformationTool.h:24,
                 from /home/paulus/projects/cloudcompare/CloudCompare/build/qCC/CloudCompare_autogen/EWIEGA46WW/moc_ccGraphicalTransformationTool.cpp:9,
                 from /home/paulus/projects/cloudcompare/CloudCompare/build/qCC/CloudCompare_autogen/mocs_compilation.cpp:27:
/home/paulus/projects/cloudcompare/CloudCompare/build/qCC/ui_graphicalTransformationDlg.h: In member function ‘void Ui_GraphicalTransformationDlg::setupUi(QDialog*)’:
/home/paulus/projects/cloudcompare/CloudCompare/build/qCC/ui_graphicalTransformationDlg.h:322:29: error: ‘class QDoubleSpinBox’ has no member named ‘setStepType’; did you mean ‘setStyle’?
  322 |         incrementalRotSpin->setStepType(QAbstractSpinBox::AdaptiveDecimalStepType);
      |                             ^~~~~~~~~~~
      |                             setStyle
Any ideas?
The output from my qtdiag is

Code: Select all

paulus@roomys2:build$ qtdiag
Failed to create Vulkan instance: -9
Failed to create platform Vulkan instance
Failed to create Vulkan instance: -9
Failed to create platform Vulkan instance
Vulkan instance is not valid
Qt 5.15.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.3.0) on "xcb"
OS: Ubuntu 22.04.3 LTS [linux version 5.15.133.1-microsoft-standard-WSL2]

Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2

Environment:
  QT_SELECT="5"

Features: QT_NO_EXCEPTIONS

Features: QT_NO_EXCEPTIONS

Library info:
  PrefixPath: /usr
  DocumentationPath: /usr/share/qt5/doc
  HeadersPath: /usr/include/x86_64-linux-gnu/qt5
  LibrariesPath: /usr/lib/x86_64-linux-gnu
  LibraryExecutablesPath: /usr/lib/x86_64-linux-gnu/qt5/libexec
  BinariesPath: /usr/lib/qt5/bin
  PluginsPath: /usr/lib/x86_64-linux-gnu/qt5/plugins
  ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/imports
  Qml2ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/qml
  ArchDataPath: /usr/lib/x86_64-linux-gnu/qt5
  DataPath: /usr/share/qt5
  TranslationsPath: /usr/share/qt5/translations
  ExamplesPath: /usr/lib/x86_64-linux-gnu/qt5/examples
  TestsPath: /usr/tests
  SettingsPath: /etc/xdg

Standard paths [*...* denote writable entry]:
  DesktopLocation: "Desktop" */home/paulus/Desktop*
  DocumentsLocation: "Documents" */home/paulus/Documents*
  FontsLocation: "Fonts" */home/paulus/.local/share/fonts* /home/paulus/.fonts /usr/local/share/fonts /usr/share/fonts /var/lib/snapd/desktop/fonts
  ApplicationsLocation: "Applications" */home/paulus/.local/share/applications* /usr/local/share/applications /usr/share/applications /var/lib/snapd/desktop/applications
  MusicLocation: "Music" */home/paulus/Music*
  MoviesLocation: "Movies" */home/paulus/Videos*
  PicturesLocation: "Pictures" */home/paulus/Pictures*
  TempLocation: "Temporary Directory" */tmp*
  HomeLocation: "Home" */home/paulus*
  AppLocalDataLocation: "Application Data" */home/paulus/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag
  CacheLocation: "Cache" */home/paulus/.cache/QtProject/qtdiag*
  GenericDataLocation: "Shared Data" */home/paulus/.local/share* /usr/local/share /usr/share /var/lib/snapd/desktop
  RuntimeLocation: "Runtime" */mnt/wslg/runtime-dir*
  ConfigLocation: "Configuration" */home/paulus/.config* /etc/xdg
  DownloadLocation: "Download" */home/paulus/Downloads*
  GenericCacheLocation: "Shared Cache" */home/paulus/.cache*
  GenericConfigLocation: "Shared Configuration" */home/paulus/.config* /etc/xdg
  AppDataLocation: "Application Data" */home/paulus/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag
  AppConfigLocation: "Application Configuration" */home/paulus/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag

File selectors (increasing order of precedence):
  en_US unix linux ubuntu

Network:
  Using "OpenSSL 3.0.2 15 Mar 2022", version: 0x30000020

Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition

Style hints:
  mouseDoubleClickInterval: 400
  mousePressAndHoldInterval: 800
  startDragDistance: 10
  startDragTime: 500
  startDragVelocity: 0
  keyboardInputInterval: 400
  keyboardAutoRepeatRate: 30
  cursorFlashTime: 1000
  showIsFullScreen: 0
  showIsMaximized: 0
  passwordMaskDelay: 0
  passwordMaskCharacter: U+25CF
  fontSmoothingGamma: 1.7
  useRtlExtensions: 0
  setFocusOnTouchRelease: 0
  tabFocusBehavior: Qt::TabFocusAllControls
  singleClickActivation: 0

Additional style hints (QPlatformIntegration):
  ReplayMousePressOutsidePopup: 0

Theme:
  Platforms requested : unknown,generic
            available : gtk3
  Styles requested    : Fusion,Windows
         available    : Windows,Fusion
  System font         : "Sans Serif" 9

Fonts:
  General font : "Sans Serif" 9
  Fixed font   : "monospace" 9
  Title font   : "DejaVu LGC Sans" 12
  Smallest font: "DejaVu LGC Sans" 12

Palette:
  QPalette::WindowText: #ff000000
  QPalette::Button: #ffefefef
  QPalette::Light: #ffffffff
  QPalette::Midlight: #ffcacaca
  QPalette::Dark: #ff9f9f9f
  QPalette::Mid: #ffb8b8b8
  QPalette::Text: #ff000000
  QPalette::BrightText: #ffffffff
  QPalette::ButtonText: #ff000000
  QPalette::Base: #ffffffff
  QPalette::Window: #ffefefef
  QPalette::Shadow: #ff767676
  QPalette::Highlight: #ff308cc6
  QPalette::HighlightedText: #ffffffff
  QPalette::Link: #ff0000ff
  QPalette::LinkVisited: #ffff00ff
  QPalette::AlternateBase: #fff7f7f7
  QPalette::NoRole: #ff000000
  QPalette::ToolTipBase: #ffffffdc
  QPalette::ToolTipText: #ff000000
  QPalette::PlaceholderText: #80000000

Screens: 1, High DPI scaling: inactive
# 0 "XWAYLAND0" Depth: 24 Primary: yes
  Manufacturer:
  Model:
  Serial number:
  Geometry: 2560x1440+0+0 Available: 2560x1440+0+0
  Physical size: 677x381 mm  Refresh: 59.9606 Hz Power state: 0
  Physical DPI: 96.0473,96 Logical DPI: 96.0473,96 Subpixel_None
  DevicePixelRatio: 1 Pixel density: 1
  Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0

LibGL Vendor: Microsoft Corporation
Renderer: D3D12 (NVIDIA GeForce RTX 2060)
Version: 4.2 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
Shading language: 4.20
Format: Version: 4.2 Profile: 2 Swap behavior: 0 Buffer size (RGB): 8,8,8
Profile: None (QOpenGLFunctions_4_2), Core (QOpenGLFunctions_4_2_Core), Compatibility (QOpenGLFunctions_4_2_Compatibility)

Unable to create a Vulkan instance, error code is-9


Qt Rendering Hardware Interface supported backends:
OpenGL (with default QSurfaceFormat):
  Min Texture Size: 1
  Max Texture Size: 16384
  Max Color Attachments: 8
  Frames in Flight: 1
  Uniform Buffer Alignment: 1
  Supported MSAA sample counts: 1,2,4,8
  Features:
    - MultisampleTexture
    v MultisampleRenderBuffer
    - DebugMarkers
    - Timestamps
    v Instancing
    - CustomInstanceStepRate
    - PrimitiveRestart
    v NonDynamicUniformBuffers
    v NonFourAlignedEffectiveIndexBufferOffset
    v NPOTTextureRepeat
    - RedOrAlpha8IsRed
    v ElementIndexUint
    - Compute
    v WideLines
    v VertexShaderPointSize
    v BaseVertex
    - BaseInstance
    v TriangleFanTopology
    v ReadBackNonUniformBuffer
    v ReadBackNonBaseMipLevel
  Texture formats: RGBA8 BGRA8 R8 R16 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 ETC2_RGB8 ETC2_RGB8A1 ETC2_RGBA8

I did add the QT_SELECT=5 environment variable myself to try and make up for the missing qt5_default.

Any help much appreciated.
regards
Paul
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: build problem on Ubuntu 22.04.3 LTS

Post by daniel »

Hi,

It would probably be more efficient to ask this on github (as I don't know how often the Linux gurus visit the forum).

It looks like an issue with Qt's version, but I don't know how to fix it personally as I don't use Linux...
Daniel, CloudCompare admin
paul_Clouds
Posts: 2
Joined: Mon Jan 15, 2024 3:14 pm

Re: build problem on Ubuntu 22.04.3 LTS

Post by paul_Clouds »

Thanks Daniel, I will try there... so you do most of your development on Windows?
regards
Paul
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: build problem on Ubuntu 22.04.3 LTS

Post by daniel »

Personally yes, I'm a Windows only developer ;)

But other supporting members (Romain, Thomas, Paul, etc.) work on Linux, and even sometimes on macOS.
Daniel, CloudCompare admin
Post Reply