when i run qt quick simple example using qt 6.8 i am getting below error:
":-1: error: CMakeFiles/appRectangle.dir/main.cpp.o: undefined reference to symbol '_ZdlPvm@@CXXABI_1.3.9'
:-1: error: /usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line
:-1: error: collect2: error: ld returned 1 exit status
:-1: error: [CMakeFiles/appRectangle.dir/build.make:266: appRectangle] Error 1"
Solution: adding stdc++ in below code
target_link_libraries(appRectangle
PRIVATE Qt6::Quick stdc++
)
why compile out put generate this many lines :
CCACHE_NODISABLE=true
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/
DESKTOP_SESSION=gnome
DISPLAY=:0
EDITOR=/usr/bin/nano
EMSDK=/home/ma/WebAssembly/emsdk
EMSDK_NODE=/home/ma/WebAssembly/emsdk/node/16.20.0_64bit/bin/node
EM_CACHE=/home/ma/WebAssembly/emsdk/upstream/emscripten/cache
EM_CONFIG=/home/ma/WebAssembly/emsdk/.emscripten
GDMSESSION=gnome
GDM_LANG=en_US.UTF-8
GIO_LAUNCHED_DESKTOP_FILE=/home/ma/.local/share/applications/org.qt-project.qtcreator.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=4957
GITHUB_TOKEN=ghp_YDxEGA24MePZ5
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_SETUP_DISPLAY=:1
HISTCONTROL=ignoredups
HISTSIZE=1000
HOME=/home/ma
HOSTNAME=fedora
INVOCATION_ID=ea7079b8c6
JFROG_API_KEY=AKCpM
JFROG_USERNAME=ma
JOURNAL_STREAM=8:16781
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/home/ma/Qt6.8.3/6.8.3/gcc_64/lib:/usr/lib::/usr/local/lib
LESSOPEN=||/usr/bin/lesspipe.sh %s
LOCAL_DEV_MACHINE=true
LOGNAME=ma
MAIL=/var/spool/mail/ma
MANAGERPID=2085
MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed
PATH=/home/ma/WebAssembly/emsdk:/home/ma/WebAssembly/emsdk/upstream/emscripten:/home/ma/WebAssembly/emsdk/node/16.20.0_64bit/bin:/home/ma/.local/bin:/home/ma/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin
PWD=/home/ma
QTDIR=/home/ma/Qt6.8.3/6.8.3/gcc_64
QT_IM_MODULE=ibus
QT_QPA_PLATFORM=xcb
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2268,unix/unix:/tmp/.ICE-unix/2268
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SYSTEMD_EXEC_PID=2329
USER=ma
USERNAME=ma
WAYLAND_DISPLAY=wayland-0
XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.C1SZ32
XDG_CURRENT_DESKTOP=GNOME
XDG_DATA_DIRS=/home/ma/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=gnome
XDG_SESSION_TYPE=wayland
XMODIFIERS=@im=ibus
_QTC_LD_LIBRARY_PATH=/home/ma/Qt6.8.3/6.8.3/gcc_64/lib
why in older version it works fine without adding it? what is correct solution for it on linux?
question 2: why cmake modules in qt creator get invisible in latest version qt 6.8?