This forum has been archived. All content is frozen. Please use KDE Discuss instead.

knights-kde4 freebsd amd64

Tags: None
(comma "," separated)
binyo66
Registered Member
Posts
54
Karma
0
OS

knights-kde4 freebsd amd64

Fri Mar 09, 2012 9:56 am
Hi I have installed knights-kde4 on two system.
1. FreeBSD/AMD64 8.2 Release, with KDE4.7.4 (upgrade from older KDE)
2. FreeBSD/AMD64 9.0 Release, with KDE4.7.4 (fresh from new system).
On both system, knights-kde4 compiled without any error, but when I run knights-kde4, it shows only big white-box (with title new Game? Knights), and after pressing enter it become small white-box (with the title White vs Black ?)

Someone know how to fix this?

(note: Old knights with QT3 that I used to install in machine-1, used to work fine);
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: knights-kde4 freebsd amd64

Fri Mar 09, 2012 10:08 pm
Have you installed the appropriate Chess backend engine?
Also, as I note you have self compiled Knights, have you installed it into the same prefix as your package maintained KDE? (Alternately, have you registered the prefix you have installed it in with KDE by setting the appropriate environment variables)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
binyo66
Registered Member
Posts
54
Karma
0
OS

Re: knights-kde4 freebsd amd64

Sat Mar 10, 2012 12:27 am
I just installed using portmaster, and make install. Both have the same results. No Errors, knights icon in the menu. What other things I have to install to make it work? and what environment do i need to set?
Note : If I launched from terminal
Code: Select all
$ /usr/local/kde4/bin/knights
knights(41377)/KSharedDataCache: Unable to find an appropriate lock to guard the shared cache.  This *should* be essentially impossible. :(
knights(41377)/KSharedDataCache: Unable to perform initial setup, this system probably does not really support process-shared pthreads or semaphores, even though it claims otherwise.
knights(41377)/KSharedDataCache: Unable to unmap shared memory segment 0x80c7bf000
QPixmap::handle(): Pixmap is not an X11 class pixmap
QPixmap::handle(): Pixmap is not an X11 class pixmap
QPixmap::handle(): Pixmap is not an X11 class pixmap
X Error: BadAccess (attempt to access private resource denied) 10
  Extension:    141 (MIT-SHM)
  Minor opcode: 1 (X_ShmAttach)
  Resource id:  0x117
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: knights-kde4 freebsd amd64

Sat Mar 10, 2012 10:37 am
Okay, if it appears in the menu then it is probably in the correct prefix. Have you installed any needed *-data packages which may be seperate to Knights itself?

Also, can you provide the output of "kde4-config --prefix".


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
binyo66
Registered Member
Posts
54
Karma
0
OS

Re: knights-kde4 freebsd amd64

Sat Mar 10, 2012 11:30 am
bcooksley wrote:Okay, if it appears in the menu then it is probably in the correct prefix. Have you installed any needed *-data packages which may be seperate to Knights itself?

Also, can you provide the output of "kde4-config --prefix".

How to install *-data packages?
Code: Select all
$ kde4-config --prefix
/usr/local/kde4
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: knights-kde4 freebsd amd64

Sat Mar 10, 2012 12:16 pm
These will be shown in your package manager if available. Some distributions split the game data out to make updates more efficient. Otherwise, they are probably included already.

Can you reproduce the broken Knights under a new user?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
binyo66
Registered Member
Posts
54
Karma
0
OS

Re: knights-kde4 freebsd amd64

Sat Mar 10, 2012 3:04 pm
I just created a new user, and run knight from the menu. The same thing happened.
Note:
Since old knight works (with QT3), so I know how to play. I press enter on the first white box, then try to click and hold something inside the second white box, and the cursor change to a "grab-hand".
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: knights-kde4 freebsd amd64

Sun Mar 11, 2012 6:15 am
Can you post a screenshot of the broken Knights? It sounds like this could perhaps be a graphics issue....


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
binyo66
Registered Member
Posts
54
Karma
0
OS

Re: knights-kde4 freebsd amd64

Sun Mar 11, 2012 9:21 am
how to post a screenshot? I can't attach file
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: knights-kde4 freebsd amd64

Sun Mar 11, 2012 9:54 am
Screenshots need to be posted using a seperate image hoster such as Imageshack, Imagebin, Picasa, etc.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
binyo66
Registered Member
Posts
54
Karma
0
OS
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: knights-kde4 freebsd amd64

Sun Mar 11, 2012 10:22 am
Okay, I am not sure why Knights is not working - from what I can see it is not drawing any components of the window. Have you tried disabling compositing if you use it?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
binyo66
Registered Member
Posts
54
Karma
0
OS

Re: knights-kde4 freebsd amd64

Sun Mar 11, 2012 11:09 am
I don't know about enable/disable komposite. The only thing I can recall about komposite is because I am using onbord video card, been recognized by X11 as mga. According to http://www.wonkity.com/~wblock/mgapatch/xorg-patch.txt that gives example of xorg.conf at http://www.wonkity.com/~wblock/mgapatch/xorg.conf-xorg-7.4 inside the example :
Code: Select all
Section "Extensions"
   Option "Composite" "Disable"
EndSection

Do I need to remove those lines?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: knights-kde4 freebsd amd64

Sun Mar 11, 2012 7:14 pm
No, that shouldn't be necessary - that indicates that compositing is certainly disabled.
I am out of ideas as to why Knights is displaying in that manner unfortunately.

It is definitely related to either your installation or system-wide configuration however.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
binyo66
Registered Member
Posts
54
Karma
0
OS

Re: knights-kde4 freebsd amd64

Sun Mar 11, 2012 10:31 pm
I just found out all KGAMES don't work, and same blank white window like viewtopic.php?f=21&t=98803, and run them from terminal also got the same output with that thread.
I know those games used to work before a major upgrade with xcb-util :(.

Note : sorry for duplicate thread


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]