TestMyQt / Qt-CreatorTMC

Qt Creator plugin for TestMyCode (TMC) at University of Helsinki
https://testmycode.github.io
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Strange linker behaviour on MacOS #79

Closed Razumihin closed 5 years ago

Razumihin commented 6 years ago

I've had now two times that the project seemingly for no reason seems to link under MacOS and clang x64.

This second time the tests for the fifth assingment of the first part did not link with the main project and I got an error message about not finding the signal/slot implementations.

For some reason, commenting out the CONFIG -= app_bundle line from the tests fixed the problem. I tried to reproduce the error after I got it working by removing the comment, but it seems to link fine now.

So just a heads up if other people experience strange behaviour on MacOS.

kimmoal commented 6 years ago

CONFIG += app_bundle: Puts the executable into a bundle (this is the default).

So it removes default behaviour, probably something we don't want to remove?

I don't know why the line was there in the first place as we are not developing on a macOS...

kimmoal commented 6 years ago

I think I understand, looks like we have the CONFIG -= app_bundle commented out in the student project but not in the tests, that might be the cause of the issue

kimmoal commented 6 years ago

Here the definition is explained https://www.ics.com/designpatterns/book/qmake.html

kimmoal commented 5 years ago

We shall take this behavior into consideration in the exercises, not relevant in this repo