LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   vbam Slackbuild (https://www.linuxquestions.org/questions/slackware-14/vbam-slackbuild-4175476221/)

dugan 09-10-2013 09:44 AM

Quote:

Originally Posted by yilez (Post 5025112)
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

dugan 09-10-2013 11:21 AM

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

jprzybylski 09-10-2013 02:40 PM

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?

dugan 09-10-2013 03:03 PM

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.

yilez 09-10-2013 03:27 PM

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.

ReaperX7 09-10-2013 03:45 PM

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"?

dugan 09-10-2013 03:53 PM

Quote:

Originally Posted by ReaperX7 (Post 5025473)
As far as WxWidgets go, you may have to install WxPython or WxGTK to get it working.

I had WxPython from SBo installed.

ReaperX7 09-10-2013 04:07 PM

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...

turtleli 09-10-2013 04:15 PM

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.

dugan 09-10-2013 04:18 PM

Quote:

Just out of curiosity, what window managers/desktop environments are you all using?
Xfce.

turtleli 09-10-2013 05:07 PM

1 Attachment(s)
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.

yilez 09-11-2013 03:25 AM

Quote:

Originally Posted by turtleli (Post 5025488)
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.

turtleli 09-11-2013 07:58 AM

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.

yilez 09-11-2013 08:28 AM

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.

turtleli 09-11-2013 09:39 AM

1 Attachment(s)
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.


All times are GMT -5. The time now is 11:33 PM.