openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.95k stars 2.55k forks source link

Error while building with Qt Creator #6733

Open mattmatt0 opened 3 years ago

mattmatt0 commented 3 years ago

System: ArchLinux x86_64 IDE: Qt Creator Issues occurs on stable and master branches.

Hello, I recently tried to use OpenFrameworks in Qt Creator. So I downloaded the github repo, compiled openFrameworks, installed the templates, everything worked fine.

However, in Qt Creator, when I create a project and try to compile & run it from Qt Creator, the program fails to start (no executable specified). So I try running it, and get this error:

error while loading shared libraries: libfmod.so.12: cannot open shared object file: No such file or directory

It shoudn't even try to use fmod in the first place. But even if it should, there's a libfmod.so.12 file in the bin directory.

The "weird" thing is that if I go to the project directory and use make to build the project, everything works fine.

Note the project is in (openFrameworks directory)/apps/myApps/, so Qt automatically detects openFrameworks.

ofTheo commented 3 years ago

Hi @mattmatt0

This is an issue we are looking into right now.

There is a temporary fix ( I believe ) in the first part of this post here: https://forum.openframeworks.cc/t/build-run-from-qtcreator-libfmod-so-12/37565/7

Basically should disable fmod for linux in Qt Creator. But still trying to track down why we are getting this error now.