mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Remove Makefiles
They don't work for me (on Debian bullseye). For example, from the example/sdl-imageviewer directory: $ make g++ -lSDL2 -lSDL2_image sdl-imageviewer.cc -o sdl-imageviewer /usr/bin/ld: /tmp/cciX1mj2.o: in function `draw(SDL_Window*)': sdl-imageviewer.cc:(.text+0x36e44): undefined reference to `SDL_GetWindowSurface' /usr/bin/ld: sdl-imageviewer.cc:(.text+0x36e69): undefined reference to `SDL_CreateRenderer' /usr/bin/ld: sdl-imageviewer.cc:(.text+0x36e79): undefined reference to `SDL_RenderClear' etc collect2: error: ld returned 1 exit status make: *** [<builtin>: sdl-imageviewer] Error 1 Swapping the g++ args around to g++ sdl-imageviewer.cc -lSDL2 -lSDL2_image -o sdl-imageviewer works, but the recommended approach is to use the existing top-level build-example.sh script instead.
This commit is contained in:
1 parent
2453a8d52a
commit
68acf24515
3 files changed
+8
-19
No files matched your search
@@ -1,8 +0,0 @@
|
||||
SHELL = /bin/sh
|
||||
LDFLAGS = -lxcb -lxcb-image -lxcb-render -lxcb-render-util
|
||||
|
||||
all: imageviewer
|
||||
clean:
|
||||
rm -f imageviewer
|
||||
|
||||
.PHONY: all clean
|
||||
@@ -1,8 +0,0 @@
|
||||
SHELL = /bin/sh
|
||||
LDFLAGS = -lSDL2 -lSDL2_image
|
||||
|
||||
all: sdl-imageviewer
|
||||
clean:
|
||||
rm -f sdl-imageviewer
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in new issue
Block a user