← All tasks
cppdfranx/SHADERed #10Not a task: not reproduced

Undefined references building in Arch Linux

envgap__dfranx__SHADERed-10

01 / FAILURE SIGNATURE

As reported upstream

main.cpp:(.text+0x185): undefined reference to `SDL_CreateRGBSurfaceWithFormatFrom'
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
d6414d7e78bc92c7091a12dcfeef66add8761fee
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

dfranx/SHADERed #10 · read the original issue
Hello, I am having the following problem trying to make this application (I'm using Manjaro/Arch Linux)

After executing `cmake .` I got:  



-- Found SFML 2.5.1 in /usr/lib64/cmake/SFML  

-- Google Mock was not found - tests based on that will not build  

-- spirv-tools not linked - illegal SPIRV may be generated for HLSL  

-- Configuring done

-- Generating done

-- Build files have been written to: /home/cmoralesmx/git/SHADERed



Then, `make` works as expected until it reaches main.cpp.o 

An abreviated copy and paste of the log follows



[100%] Linking CXX executable bin/SHADERed  

/usr/bin/ld: CMakeFiles/SHADERed.dir/main.cpp.o: in function `setIcon(SDL_Window*)':  

main.cpp:(.text+0x185): undefined reference to `SDL_CreateRGBSurfaceWithFormatFrom'  

/usr/bin/ld: main.cpp:(.text+0x26c): undefined reference to `SDL_SetWindowIcon'  

/usr/bin/ld: main.cpp:(.text+0x278): undefined reference to `SDL_FreeSurface'  

/usr/bin/ld: CMakeFiles/SHADERed.dir/main.cpp.o: in function `main':  

main.cpp:(.text+0x738): undefined reference to `SDL_Init'  



A larger version of the log is available in [this pastebin](https://pastebin.com/BLmjyM8S)



Any help would be greatly appreciated. Thanks
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]