Skip to content

macOS: Qt from Qt Online Installer causes fatal error: 'QAbstractAnimation' file not found #269

@bitflying

Description

@bitflying

I am new to try to use miqt.

After installing Qt6.10.0, I ran

$ go run github.com/mappu/miqt/examples/helloworld6 

and got error repeatly

# github.com/mappu/miqt/qt6
gen_qabstractanimation.cpp:1:10: fatal error: 'QAbstractAnimation' file not found

Can not fixed it.

I have set enviroment in my .bash_profile as follow:

################################################
# Qt6 from official installer (UPDATE VERSION AND PATH)
export QT_DIR="$HOME/Qt6/6.10.0/macos"
export Qt6_DIR="$QT_DIR"
export PATH="$QT_DIR/bin:$PATH"
export LDFLAGS="-L$QT_DIR/lib"
export CPPFLAGS="-I$QT_DIR/include"
export PKG_CONFIG_PATH="$QT_DIR/lib/pkgconfig"

# CGO flags for miqt
export CGO_CXXFLAGS="-std=c++17 -I$QT_DIR/include"
export CGO_LDFLAGS="-F$QT_DIR/lib -L$QT_DIR/lib"

And tried Qt6.9.3, got same error.

tried:

$ pkg-config --cflags Qt6Core

-DQT_CORE_LIB -I/Users/qt/work/install/lib/QtCore.framework/Headers -I/Users/qt/work/install/lib/QtCore.framework -I/Users/qt/work/install/mkspecs/macx-clang -I/Users/qt/work/install/include

may be prefix error: should be "$HOME/Qt6/6.10.0/macos" instead of "/Users/qt/work/install"

I do not know how to fix it, any one can help ?

Thanks in advance!

My Mac:

1. an old intel mac-pro
2. run macOS Sonoma 14
3. go version go1.24.6 darwin/amd64
4.  Qt6 verson 6.10.0 installed via qt-online-installer     

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existstroubleshootingInvestigating an issue to determine its status

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions