LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-10-2013, 09:44 AM   #31
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320

Quote:
Originally Posted by yilez View Post
I've had other slackbuilds complain on multilib due to trying to build against 32bit libs instead of 64 bit libs. Had to:

mv /usr/lib /usr/lib_
run slackbuild
mv /usr/lib_ /usr/lib

to get one to build.

EDIT: This doesn't work, by the way
There's usually an easier way to solve that.

http://slackbuilds.org/faq/#multilib
 
Old 09-10-2013, 11:21 AM   #32
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
And if anyone's wondering about the WxWidgets GUI (-DENABLE_WX=ON), I can't even get r1199 to build with it.

Last edited by dugan; 09-10-2013 at 11:34 AM.
 
Old 09-10-2013, 02:40 PM   #33
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 99

Rep: Reputation: 23
I just compared our SlackBuild to Arch's PKGBUILD, and Arch does something peculiar:

Code:
# Fix SFML
  sed -i 's|/usr/include|/usr/include/sfml-1.6|' CMakeScripts/FindSFML.cmake
  sed -i 's|NAMES sfml-${LOWERCOMPONENT}|NAMES sfml-${LOWERCOMPONENT}-1.6|' CMakeScripts/FindSFML.cmake

  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS=" -I/usr/include/sfml-1.6"
I don't know if SFML touches libpng, but perhaps there's something to find there?
 
Old 09-10-2013, 03:03 PM   #34
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I guess Arch installs SFML in a nonstandard location so that you can install both SFML 1 and SFML 2 at the same time.

As for SFML being linked against libpng: not according to ldd.

Last edited by dugan; 09-10-2013 at 03:37 PM.
 
Old 09-10-2013, 03:27 PM   #35
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 127

Original Poster
Rep: Reputation: Disabled
Can anyone help test something?

I am trying to build on a non-multilib 64 bit slackware gtkmm - http://slackbuilds.org/repository/14.0/libraries/gtkmm/

All dependencies are installed, but this keeps failing. It is somewhere in the dependency tree for vbam. I am wondering if this is the cause. It builds fine on multilib, but not on pure 64. Can anyone else build it on non-multilib 64?

EDIT: The error is quite abrupt, too:

Code:
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with processed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [widget.lo] Error 1
make[2]: Leaving directory `/tmp/SBo/gtkmm-2.24.2/gtk/gtkmm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/gtkmm-2.24.2/'
make: *** [all] Error 2
Before that, it is compiling as happy as larry.

Last edited by yilez; 09-10-2013 at 03:47 PM.
 
Old 09-10-2013, 03:45 PM   #36
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
GTKmm was a dependency for the old GTK based UI. I highly doubt they removed the code for it.

As far as WxWidgets go, you may have to install WxPython or WxGTK to get it working. Not sure though as my luck with that emulator has been hit or miss randomly. Even then I'm at a loss.

Yilez are you building with flagged command "ARCH=x86_64 ./gtkmm.SlackBuild"?
 
Old 09-10-2013, 03:53 PM   #37
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by ReaperX7 View Post
As far as WxWidgets go, you may have to install WxPython or WxGTK to get it working.
I had WxPython from SBo installed.
 
Old 09-10-2013, 04:07 PM   #38
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Hmmm...

WxWidget's website says WxPython should have it as part of the projects, same as WxGTK, but you could try a raw build of WXWidgets itself.

http://www.wxwidgets.org/

And I don't think we have a SlackBuild for this toolkit either...
 
Old 09-10-2013, 04:15 PM   #39
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
gtkmm builds fine on pure 64 bit. It might be an out of ram error.

I can get wxvbam to compile with WxGTK after editing the SlackBuild to have an extra --enable-graphics_ctx at the configure stage and also modifying the vbam CMakeLists.txt but I'm instantly met with a segmentation fault upon running.

Just out of curiosity, what window managers/desktop environments are you all using? It's strange that I can get gvbam working both for 32 and 64 bit. It also makes it rather difficult to fix.

I could probably look into a patch to remove the recent games menu but I don't know if that'll fix the problem.
 
Old 09-10-2013, 04:18 PM   #40
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Just out of curiosity, what window managers/desktop environments are you all using?
Xfce.
 
Old 09-10-2013, 05:07 PM   #41
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
Ok, I don't know why the errors happen but I think I've got it working.

Fluxbox - no errors.
xfce - gtk libpng warnings. gtkRecentManager makes gvbam burn and die. No menu icons.

Removing gtkRecentManager stuff from source seems to work. Still no menu icons and gtk libpng warnings appear whenever you use the menu, but it works.

Patch attached for r1199. No guarantees though.

EDIT: Patch also works for r1159.

EDIT: EDIT: There's a better way to solve this than removing the recent game menu. So don't use this patch! See post #45.
Attached Files
File Type: txt quick_fix.patch.txt (4.9 KB, 19 views)

Last edited by turtleli; 09-11-2013 at 09:40 AM.
 
1 members found this post helpful.
Old 09-11-2013, 03:25 AM   #42
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 127

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by turtleli View Post
Just out of curiosity, what window managers/desktop environments are you all using? It's strange that I can get gvbam working both for 32 and 64 bit. It also makes it rather difficult to fix.
xfce on one laptop, kde on the other. I will give fluxbox a go later (doing processing at the moment. Will take a couple of hours.)

I wasn't passing in any architecture flags to the slackbuild. It isn't something that I've ever had to do and it isn't mentioned on the readme.

RAM might be the problem. I just set up the VM with default RAM. I suppose I should have made sure it was 1 or 2 GB.

If it does build ok in Fluxbox, what does that mean? Are KDE and XFCE knackered? Is Fluxbox somehow more correct? Or broken enough to start working again?

I admit, I used fluxbox on my VM for the first time since 2002. I am liking it more than I ever thought possible. If XFCE and KDE are somehow broken, I might be switching permanently.
 
Old 09-11-2013, 07:58 AM   #43
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
I think the problem is a combination of the theme icons and the gtk recentmanager fallback.

If gtkRecentManager cannot load "text-x-generic" icon files when it does not know the file mime type it will reach a g_assert in the code which fails and the application dies. I think the vbam code does not attempt to work around this but it's not really their fault.

Fluxbox doesn't set up gtk themes for you so unless you do so gtk applications will use the fallback icon theme which is probably gnome-icon-theme. I'm not sure about KDE and Xfce, but I'm guessing some of the themes you can choose probably don't have text-x-generic icons in them.

EDIT: Well, can't get xfce to work even choosing gnome or tango icons so probably some other settings also matter. gtk fallback icons might be something else. I will probably stop digging.

Last edited by turtleli; 09-11-2013 at 08:21 AM.
 
1 members found this post helpful.
Old 09-11-2013, 08:28 AM   #44
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 127

Original Poster
Rep: Reputation: Disabled
So, I can confirm that it works fine in fluxbox on multilib.

I think this mostly rules out the VBAM slackbuild being dodgy. I don't know enough about the gnome-icon-theme or anything else to really help. I rebuilt it the other day, and that didn't help.

By the way, I'm still testing with version 1159. I haven't changed to 1199 at all.
 
Old 09-11-2013, 09:39 AM   #45
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
Better quick fix attached. Recent games menu retained. Simply don't show the icons! Tested on Xfce.

I'll really stop looking into this now.
Attached Files
File Type: txt better_fix.patch.txt (675 Bytes, 66 views)
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackbuild tuxbg Slackware 10 12-28-2012 03:11 PM
[SOLVED] 'Invalid Conversion' Error when Compiling vbam Source derstephen Linux - Software 1 11-12-2011 01:18 AM
*.SlackBuild SolitudeSensus Programming 3 07-17-2009 11:50 PM
OO 3.01 slackbuild ? brodo Slackware 4 02-01-2009 04:06 PM
SlackBuild CrEsPo Slackware 2 03-19-2006 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration