Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build OSApp in Debug Mode since the move to Qt 6.3.0 #526

Closed
jmarrec opened this issue May 6, 2022 · 1 comment · Fixed by #527
Closed

Cannot build OSApp in Debug Mode since the move to Qt 6.3.0 #526

jmarrec opened this issue May 6, 2022 · 1 comment · Fixed by #527

Comments

@jmarrec
Copy link
Collaborator

jmarrec commented May 6, 2022

Issue overview

Current Behavior

I get a linked error, which is probably indicative of an actual issue in the code.

/usr/bin/ld: Products/libopenstudio_lib.a(ApplyMeasureNowDialog.cpp.o): in function `QtPrivate::assertObjectType<openstudio::OpenStudioApp>(QObject*)::{lambda(QObject*)#3}::operator()(QObject*) const':
/opt/Qt/6.3.0/gcc_64/include/QtCore/qobjectdefs_impl.h:150: undefined reference to `typeinfo for openstudio::OpenStudioApp'
/usr/bin/ld: Products/libopenstudio_lib.a(ApplyMeasureNowDialog.cpp.o): in function `void QtPrivate::assertObjectType<openstudio::OpenStudioApp>(QObject*)':
/opt/Qt/6.3.0/gcc_64/include/QtCore/qobjectdefs_impl.h:155: undefined reference to `openstudio::OpenStudioApp::staticMetaObject'
collect2: error: ld returned 1 exit status
[ 99%][555/557] Linking CXX executable Products/OpenStudioApp-1.4.0-rc1
ninja: build stopped: subcommand failed.
Failure, exit status 0

Possible Solution

There's probably a virtual function that's missing a definition in the current translation unit (TU)

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): Ubuntu at least
  • Version of OpenStudioApplication (if using an intermediate build, include SHA): v1.4.0-rc1
@jmarrec jmarrec self-assigned this May 6, 2022
@jmarrec jmarrec added this to the OpenStudio Application 1.4.0 milestone May 6, 2022
jmarrec added a commit that referenced this issue May 6, 2022
OSAppBase::relaodFile is a (pure) virtual function, so it'll work already.
jmarrec added a commit that referenced this issue May 6, 2022
OSAppBase::relaodFile is a (pure) virtual function, so it'll work already.
jmarrec added a commit that referenced this issue May 9, 2022
Fix #526 : do not use OpenStudioApp in openstudio_lib
@macumber
Copy link
Collaborator

Confirmed this is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants