You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, January 7th 2006, 8:38pm

konstruct dies on knight

konstruct dies when trying to compile knight. I really don't care about this game but because it will not compile due to code errors I cannot proceed and complete a "make install" with everything. Is there a way to tell konstruct to not build this game and go on and finish making 3.5?


g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde/kde3.4-beta2/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -I/usr/local/kde/kde3.4-beta2/include -I/usr/X11R6/include -I/usr/local/kde/kde3.4-beta2/include -I/usr/X11R6/include -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -I/usr/local/kde/kde3.4-beta2/include -I/usr/X11R6/include -L/usr/local/kde/kde3.4-beta2/lib -L/usr/X11R6/lib -O2 -pipe -fomit-frame-pointer -march=pentium4 -I/usr/local/kde/kde3.4-beta2/include -I/usr/X11R6/include -L/usr/local/kde/kde3.4-beta2/lib -L/usr/X11R6/lib -O2 -pipe -fomit-frame-pointer -march=pentium4 -fno-exceptions -fno-check-new -c -o core.o `test -f core.cpp || echo './'`core.cpp
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
core.cpp: In member function `void core::createNewIO(int, int, int, int)':
core.cpp:93: error: ISO C++ forbids cast to non-reference type used as lvalue
core.cpp:117: error: ISO C++ forbids cast to non-reference type used as lvalue
core.cpp:122: error: ISO C++ forbids cast to non-reference type used as lvalue
make[4]: *** [core.o] error 1
make[4]: Leaving directory `/home/maroni/download/systemowe/konstruct/apps/games/knights/work/knights-0.6/knights'
make[3]: *** [all-recursive] error 1
make[3]: Leaving directory `/home/maroni/download/systemowe/konstruct/apps/games/knights/work/knights-0.6'
make[2]: *** [all] error 2
make[2]: Leaving directory `/home/maroni/download/systemowe/konstruct/apps/games/knights/work/knights-0.6'
make[1]: *** [build-work/knights-0.6/Makefile] error 2
make[1]: Leaving directory `/home/maroni/download/systemowe/konstruct/apps/games/knights'
make: *** [dep-../../apps/games/knights] error 2
[root@localhost everything]#

Lethe

Beginner

Posts: 41

Location: Pompey, England

Occupation: IT network/sysadmin

  • Send private message

2

Sunday, January 8th 2006, 1:14am

RE: konstruct dies on knight

Yes, I had the same problem.

Depending on your build, if you used /meta/kde or /meta/everything go into the directory and open up the Makefile.

You will see a line of all the files to build 'LIBDEPS = ... ...'

Just remove the Knights file from that line, then issue 'make' again...

I have attached my /meta/everything/Makefile for you to see what I remove on stuff that failed for me.

Nick
Lethe has attached the following file:
  • Makefil. (3.4 kB - 34 times downloaded - latest: Jun 20th 2008, 8:38am)

This post has been edited 1 times, last edit by "Lethe" (Jan 8th 2006, 1:14am)


3

Sunday, January 8th 2006, 4:42am

Duh! Thanks for pointing that out. I've been looking everywhere except the obvious. I'm not that experienced using gcc. Should have figured that out. Thanks for the help. I've been thinking how stupid this is that I can't build the install simply because I couldn't get a dumb game to compile.

Lethe

Beginner

Posts: 41

Location: Pompey, England

Occupation: IT network/sysadmin

  • Send private message

4

Sunday, January 8th 2006, 12:10pm

Also if you are using Konstruct, there is a bug in the code that doesn't allow you to run 'make buildclean' to just clean out the build directories and run it all again WITHOUT downloading all the tarball files again (basically they get kept).

Here is my bug report and fix for this issue:

http://bugs.kde.org/show_bug.cgi?id=117784

This has been around for a while, and I mailed the owner and this bug report, but it still hasn't been fixed :rolleyes:

Nick

5

Sunday, January 8th 2006, 11:50pm

I wondered about that. I noticed on the build I did that digikam did not build but it finished. It may have been my fault. I cntl-c'ed a kde build part way through when I got your note and then did a restart with a make everything. I'm guessing that it was at that point when I killed it. Should have just deleted everything and started again. Anyway, I did a hack on the makefile to just make digikam and tried to do a make clean but it would not do it as it thinks it has built it. It was never installed into the kde/bin directory so I know it did not finish it. Is there a different way to fake it out so I can just build digikam?