Closed Adlyq closed 1 year ago
/usr/bin/ld: CMakeFiles/linux-wallpaperengine.dir/main.cpp.o: in function initGLFW()': main.cpp:(.text+0x612): undefined reference toFreeImage_Initialise' /usr/bin/ld: CMakeFiles/linux-wallpaperengine.dir/main.cpp.o: in function main': main.cpp:(.text+0x195d): undefined reference toFreeImage_DeInitialise' /usr/bin/ld: CMakeFiles/linux-wallpaperengine.dir/src/WallpaperEngine/Assets/CTexture.cpp.o: in function WallpaperEngine::Assets::CTexture::CTexture(void*)': CTexture.cpp:(.text+0x524): undefined reference toFreeImage_OpenMemory' /usr/bin/ld: CTexture.cpp:(.text+0x549): undefined reference to FreeImage_LoadFromMemory' /usr/bin/ld: CTexture.cpp:(.text+0x559): undefined reference toFreeImage_FlipVertical' /usr/bin/ld: CTexture.cpp:(.text+0x565): undefined reference to FreeImage_ConvertTo32Bits' /usr/bin/ld: CTexture.cpp:(.text+0x575): undefined reference toFreeImage_GetBits' /usr/bin/ld: CTexture.cpp:(.text+0x585): undefined reference to FreeImage_GetWidth' /usr/bin/ld: CTexture.cpp:(.text+0x597): undefined reference toFreeImage_GetHeight' /usr/bin/ld: CTexture.cpp:(.text+0x6f8): undefined reference to FreeImage_Unload' /usr/bin/ld: CTexture.cpp:(.text+0x704): undefined reference toFreeImage_Unload' /usr/bin/ld: CTexture.cpp:(.text+0x710): undefined reference to `FreeImage_CloseMemory' collect2: 错误:ld 返回 1 make[2]: [CMakeFiles/linux-wallpaperengine.dir/build.make:1171:linux-wallpaperengine] 错误 1 make[1]: [CMakeFiles/Makefile2:83:CMakeFiles/linux-wallpaperengine.dir/all] 错误 2 make: *** [Makefile:91:all] 错误 2
initGLFW()': main.cpp:(.text+0x612): undefined reference to
main': main.cpp:(.text+0x195d): undefined reference to
WallpaperEngine::Assets::CTexture::CTexture(void*)': CTexture.cpp:(.text+0x524): undefined reference to
FreeImage_LoadFromMemory' /usr/bin/ld: CTexture.cpp:(.text+0x559): undefined reference to
FreeImage_ConvertTo32Bits' /usr/bin/ld: CTexture.cpp:(.text+0x575): undefined reference to
FreeImage_GetWidth' /usr/bin/ld: CTexture.cpp:(.text+0x597): undefined reference to
FreeImage_Unload' /usr/bin/ld: CTexture.cpp:(.text+0x704): undefined reference to
Try cmake .. && make again to solve
/usr/bin/ld: CMakeFiles/linux-wallpaperengine.dir/main.cpp.o: in function
initGLFW()': main.cpp:(.text+0x612): undefined reference to
FreeImage_Initialise' /usr/bin/ld: CMakeFiles/linux-wallpaperengine.dir/main.cpp.o: in functionmain': main.cpp:(.text+0x195d): undefined reference to
FreeImage_DeInitialise' /usr/bin/ld: CMakeFiles/linux-wallpaperengine.dir/src/WallpaperEngine/Assets/CTexture.cpp.o: in functionWallpaperEngine::Assets::CTexture::CTexture(void*)': CTexture.cpp:(.text+0x524): undefined reference to
FreeImage_OpenMemory' /usr/bin/ld: CTexture.cpp:(.text+0x549): undefined reference toFreeImage_LoadFromMemory' /usr/bin/ld: CTexture.cpp:(.text+0x559): undefined reference to
FreeImage_FlipVertical' /usr/bin/ld: CTexture.cpp:(.text+0x565): undefined reference toFreeImage_ConvertTo32Bits' /usr/bin/ld: CTexture.cpp:(.text+0x575): undefined reference to
FreeImage_GetBits' /usr/bin/ld: CTexture.cpp:(.text+0x585): undefined reference toFreeImage_GetWidth' /usr/bin/ld: CTexture.cpp:(.text+0x597): undefined reference to
FreeImage_GetHeight' /usr/bin/ld: CTexture.cpp:(.text+0x6f8): undefined reference toFreeImage_Unload' /usr/bin/ld: CTexture.cpp:(.text+0x704): undefined reference to
FreeImage_Unload' /usr/bin/ld: CTexture.cpp:(.text+0x710): undefined reference to `FreeImage_CloseMemory' collect2: 错误:ld 返回 1 make[2]: [CMakeFiles/linux-wallpaperengine.dir/build.make:1171:linux-wallpaperengine] 错误 1 make[1]: [CMakeFiles/Makefile2:83:CMakeFiles/linux-wallpaperengine.dir/all] 错误 2 make: *** [Makefile:91:all] 错误 2