Skip to content

Building oF Projects with QBS: undefined reference to __imp_* #7248

@aidan-nixon

Description

@aidan-nixon

I'm using the latest master branch of oF. I am attempting to use QBS with MINGW64 to build an empty project - the code was generated by projectGenerator. I had an issue a little while ago when trying to make a project with ofOpenALSoundPlayer, which was fixed by using one of the nightly builds. However, a more complex issue has now presented itself, where the MINGW64 linker seems to place __imp_* infront of most function references. For example, the QBS output is littered with C:/openFrameworks/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:39: undefined reference to __imp_alcProcessContext' , where the linker flags look like:
C:/msys64/mingw64/bin/g++.exe -Wl,-m,i386pep,-LC:/msys64/mingw64/lib,-LC:\msys64\/mingw32/lib -m64 -o C:/openFrameworks/apps/myApps/spaceRace/bin/spaceRace_debug c:/openFrameworks/apps/myApps/spaceRace/build/gcc_debug/debug/spaceRace.92ca53ff/f27fede2220bcd32/main.cpp.o c:/openFrameworks/apps/myApps/spaceRace/build/gcc_debug/debug/spaceRace.92ca53ff/f27fede2220bcd32/ofApp.cpp.o C:/openFrameworks/libs/openFrameworksCompiled/lib/msys2/libopenFrameworksDebug.a C:/openFrameworks/apps/myApps/spaceRace/../../../libs/kiss/lib/msys2/libkiss.a C:/openFrameworks/apps/myApps/spaceRace/../../../libs/tess2/lib/msys2/libtess2.a C:/openFrameworks/apps/myApps/spaceRace/../../../libs/videoInput/lib/msys2/libvideoinput.a -lcairo -lz -lglew32 -lglfw3 -lcurl -lssl -lcrypto -lrtaudio -lopengl32 -lgdi32 -lmsimg32 -lglu32 -lwinmm -lstrmiids -luuid -loleaut32 -lsetupapi -lwsock32 -lws2_32 -lIphlpapi -lComdlg32 -lfreeimage -lboost_filesystem-mt -lboost_system-mt -lfreetype -lpthread -lksuser -lole32 -ldsound.

As this is one of the first times I've tried to use oF, I am not too certain if anything is particularly concerning with this. Any pointers would be greatly appreciated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions