Проблема с make на BeIDE
Дамоклас 1 октября, 2008 - 21:22.1. Пробую собрать
/boot/optional/sample–code/screen_savers/Ball/Ball_x86.proj
выдает ошибки (при сборке скринсейверов):
Error : /boot/optional/sample–code/screen_savers/Ball/(Objects.Ball_x86)/Ball.o:(.gnu.linkonce.d._vt.4Ball+0x6c): undefined reference to `BScreenSaver::_ReservedScreenSaver1(void)'
Error : /boot/optional/sample–code/screen_savers/Ball/(Objects.Ball_x86)/Ball.o:(.gnu.linkonce.d._vt.4Ball+0x74): undefined reference to `BScreenSaver::_ReservedScreenSaver2(void)'
Error : /boot/optional/sample–code/screen_savers/Ball/(Objects.Ball_x86)/Ball.o:(.gnu.linkonce.d._vt.4Ball+0x7c): undefined reference to `BScreenSaver::_ReservedScreenSaver3(void)'
Error : /boot/optional/sample–code/screen_savers/Ball/(Objects.Ball_x86)/Ball.o:(.gnu.linkonce.d._vt.4Ball+0x84): undefined reference to `BScreenSaver::_ReservedScreenSaver4(void)'
Error : /boot/optional/sample–code/screen_savers/Ball/(Objects.Ball_x86)/Ball.o:(.gnu.linkonce.d._vt.4Ball+0x8c): undefined reference to `BScreenSaver::_ReservedScreenSaver5(void)'
Error : /boot/optional/sample–code/screen_savers/Ball/(Objects.Ball_x86)/Ball.o:(.gnu.linkonce.d._vt.4Ball+0x94): undefined reference to `BScreenSaver::_ReservedScreenSaver6(void)'
Error : /boot/optional/sample–code/screen_savers/Ball/(Objects.Ball_x86)/Ball.o:(.gnu.linkonce.d._vt.4Ball+0x9c): undefined reference to `BScreenSaver::_ReservedScreenSaver7(void)'
Error : /boot/optional/sample–code/screen_savers/Ball/(Objects.Ball_x86)/Ball.o:(.gnu.linkonce.d._vt.4Ball+0xa4): undefined reference to `BScreenSaver::_ReservedScreenSaver8(void)'
Error : collect2: ld returned 1 exit status
хотя через терминал набрав make всё собирается:
Welcome to the BeOS shell.
baron@unknown:/boot/optional/sample–code/screen_savers/Ball#
makegcc -c Ball.cpp -I./ -I- -I/boot/develop/headers/be/add–ons/screen_saver/ -O3 -Wall -Wno–multichar -Wno-ctor-dtor–privacy -o obj.x86/Ball.o
gcc -o «obj.x86/Ball» obj.x86/Ball.o -nostart -Xlinker -soname=Ball -L./ -lbe -lGL -lscreensaver
mimeset -f «obj.x86/Ball»
baron@unknown:/boot/optional/sample–code/screen_savers/Ball#
2. Не собираются (на BeOS с bone) и
/boot/optional/sample–code/network_kit
Что надо сделать?
3. Также вообще не собирается
/boot/optional/sample–code/interface_kit/CDButton
Welcome to the BeOS shell.
baron@unknown:/boot/optional/sample–code/interface_kit/CDButton#
makegcc -c CDButton.cpp -I./ -I- -O3 -Wall -Wno–multichar -Wno-ctor-dtor–privacy -o obj.x86/CDButton.o
In file included from /boot/develop/headers/be/net/NetEndpoint.h:17,
from /boot/optional/sample–code/interface_kit/CDButton/CDDBSupport.h:4,
from /boot/optional/sample–code/interface_kit/CDButton/CDEngine.h:20,
from /boot/optional/sample–code/interface_kit/CDButton/CDButton.h:16,
from /boot/optional/sample–code/interface_kit/CDButton/CDButton.cpp:23:
/boot/develop/headers/be/net/socket.h:81: warning: `NFDBITS' redefined
/boot/develop/headers/posix/sys/select.h:20: warning: this is the location of the previous definition
/boot/develop/headers/be/net/socket.h:89: warning: `FD_ZERO' redefined
/boot/develop/headers/posix/sys/select.h:34: warning: this is the location of the previous definition
/boot/develop/headers/be/net/socket.h:90: warning: `FD_SET' redefined
/boot/develop/headers/posix/sys/select.h:30: warning: this is the location of the previous definition
/boot/develop/headers/be/net/socket.h:91: warning: `FD_CLR' redefined
/boot/develop/headers/posix/sys/select.h:31: warning: this is the location of the previous definition
/boot/develop/headers/be/net/socket.h:92: warning: `FD_ISSET' redefined
/boot/develop/headers/posix/sys/select.h:32: warning: this is the location of the previous definition
In file included from /boot/develop/headers/be/net/NetEndpoint.h:17,
from /boot/optional/sample–code/interface_kit/CDButton/CDDBSupport.h:4,
from /boot/optional/sample–code/interface_kit/CDButton/CDEngine.h:20,
from /boot/optional/sample–code/interface_kit/CDButton/CDButton.h:16,
from /boot/optional/sample–code/interface_kit/CDButton/CDButton.cpp:23:
/boot/develop/headers/be/net/socket.h:83: redefinition of `struct fd_set'
/boot/develop/headers/posix/sys/select.h:28: previous definition here
make: *** [obj.x86/CDButton.o] Error 1
baron@unknown:/boot/optional/sample–code/interface_kit/CDButton#
как чинить?
В файле проекта BeIDE
В файле проекта BeIDE из семпл кода есть косяк — нехватает бублиотеки libscreensaver, Добавь ее и будет тебе счастье, а по поводу второго — это ты небойсь BONE на систему поставил а семпл под нетсервер заточен. Можно временно убрать из системы файл select.h, скомпилить а потом вернуть на место
Спасибо,
Спасибо, скринсейверы собираются. А вот уборка select.h не помогла.
Отправить комментарий