Portál AbcLinuxu, 30. dubna 2025 12:41
Tiskni
Sdílej:
LD (client) client_linux_x64 /usr/bin/ld: cannot find -lSDL2_mixer collect2: error: ld returned 1 exit status make: *** [client] Error 1V ďalšom kroku som musel upraviť Makefile
CLIENT_LDFLAGS += -mwindows -lSDL2 -lSDL2_image -lSDL2_mixer na CLIENT_LDFLAGS += -mwindows -lSDL2 -lSDL2_image -lSDL_mixera
CLIENT_LDFLAGS += `sdl2-config --libs` -lSDL2_image -lSDL2_mixer -lz -lGL na CLIENT_LDFLAGS += `sdl2-config --libs` -lSDL2_image -lSDL_mixer -lz -lGLKompilácia po týchto úpravách prebehla úspešne.
Distributor ID: Debian Description: Debian GNU/Linux testing (jessie) Release: testing Codename: jessie
Linking CXX executable server_linux_x64 CMakeFiles/server_linux_x64.dir/__/engine/physics.cpp.o: In function `mmcollide(physent*, vec const&, float, octaentities&)': physics.cpp:(.text+0x8388): undefined reference to `loadmodel(char const*, bool)' CMakeFiles/server_linux_x64.dir/__/octaforge/of_entities.cpp.o: In function `entities::_lfn_set_model_name<143>::fun(lua_State*)': of_entities.cpp:(.text+0x406): undefined reference to `loadmodel(char const*, bool)' collect2: error: ld returned 1 exit status make[2]: *** [src/server/server_linux_x64] Error 1 make[1]: *** [src/server/CMakeFiles/server_linux_x64.dir/all] Error 2 make: *** [all] Error 2
CC (enet) enet/unix.o enet/unix.c:51:13: error: conflicting types for ‘socklen_t’ typedef int socklen_t; ^ In file included from /usr/include/sys/socket.h:39:0, from enet/unix.c:8: /usr/include/bits/socket.h:33:21: note: previous declaration of ‘socklen_t’ was here typedef __socklen_t socklen_t; ^ enet/unix.c: In function ‘enet_socket_get_address’: enet/unix.c:203:38: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] if (getsockname (socket, (struct sockaddr *) & sin, & sinLength) == -1) ^ In file included from enet/unix.c:8:0: /usr/include/sys/socket.h:128:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘socklen_t *’ extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^ enet/unix.c: In function ‘enet_socket_accept’: enet/unix.c:296:22: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign] address != NULL ? & sinLength : NULL); ^ In file included from enet/unix.c:8:0: /usr/include/sys/socket.h:244:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘socklen_t *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ make: *** [build/enet/unix.o] Error 1 make: *** Waiting for unfinished jobs....
Zaujal mě tvůj výběr notebooku. Proč ses rozhodl pro takovýho "exota"?
Ten vypadá fakt hezky. Určitě by nebyla marná nějaká recenze kdyžtak
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.