Compiling lightspark for SalixOS

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
caitlyn
Posts: 209
Joined: 5. Dec 2009, 20:42
Location: Hunstville, Texas, USA

Compiling lightspark for SalixOS

Post by caitlyn »

gnash is not working out well for me as a replacement for Flash in 64-bit SalixOS. I decided to try lightspark but have run into issues compiling it. Here is what has worked so far:

1. Installed ocaml from the repository.
2. Used the script at SlackBuilds.org to build an llvm package and installed it.
3. cmake failed on three dependencies. nspr is part of seamonkey-solibs so I installed that from the repository. gtkglext was also packaged in the repository. Both are installed now and those errors disappeared.

I am stuck on the final dependency: a mozilla-plugin module.

The developers have packages for Ubuntu/Debian so I assume that is the platform they develop on. What package that I don't have installed already is likely to fulfill this dependency. Anyone know?

Here is what I get when I run cmake:

Code: Select all

-- Loaded CMakeASM-NASMInformation - ASM-NASM support is still experimental, please report issues
-- checking for modules 'gtk+-2.0;gtkglext-1.0'
--   found gtk+-2.0, version 2.18.9
--   found gtkglext-1.0, version 1.2.0
-- checking for modules 'nspr;mozilla-plugin'
--   package 'mozilla-plugin' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:259 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:311 (_pkg_check_modules_internal)
  plugin-dir/CMakeLists.txt:25 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
The instructions I was following are at: http://sourceforge.net/apps/trac/lights ... i/Building.

Any help/clues will be appreciated.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Compiling lightspark for SalixOS

Post by thenktor »

First idea: Try to install the seamonkey package, too. :|

EDIT: And try to create a link from /usr/lib64/pkgconfig/seamonkey-plugin.pc to /usr/lib64/pkgconfig/mozilla-plugin.pc
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
caitlyn
Posts: 209
Joined: 5. Dec 2009, 20:42
Location: Hunstville, Texas, USA

Re: Compiling lightspark for SalixOS

Post by caitlyn »

thenktor wrote:First idea: Try to install the seamonkey package, too. :|

EDIT: And try to create a link from /usr/lib64/pkgconfig/seamonkey-plugin.pc to /usr/lib64/pkgconfig/mozilla-plugin.pc
I did exactly as you suggested. I still get the same error from cmake. :(
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: Compiling lightspark for SalixOS

Post by gapan »

It could be that it needs something in xulrunner: http://slackbuilds.org/repository/13.1/ ... xulrunner/

You can also try the package from GSB: ftp://ftp.slackware.org.uk/gsb/gsb64-2. ... 4-2gsb.txz

Still just a guess though.
Image
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Compiling lightspark for SalixOS

Post by thenktor »

pkg_check_modules(MOZ_PLUGIN REQUIRED nspr mozilla-plugin)
cat /usr/lib64/pkgconfig/seamonkey-plugin.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64/seamonkey-2.0.4
includedir=/usr/include/seamonkey-2.0.4

Name: Mozilla Plug-In API
Description: Mozilla Plug-In API
Version: 2.0.4
Requires: seamonkey-nspr >= 4.7.1
Cflags: -I${includedir}/java -I${includedir}/plugin
Hmm, I'm quite sure the link should do the trick :|
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
caitlyn
Posts: 209
Joined: 5. Dec 2009, 20:42
Location: Hunstville, Texas, USA

Re: Compiling lightspark for SalixOS

Post by caitlyn »

thenktor wrote:Hmm, I'm quite sure the link should do the trick :|
I thought so too, but it didn't work. The link is there:

Code: Select all

root[pkgconfig]# ls -l moz*
lrwxrwxrwx 1 root root 39 2010-06-18 09:47 mozilla-plugin.pc -> usr/lib64/pkgconfig/seamonkey-plugin.pc
I'll try xulrunner from Slackbuilds.org next. gsb packages tend to have all sorts of interesting dependencies so I'd rather build the package from the script.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Compiling lightspark for SalixOS

Post by thenktor »

What happens if you change the plugin-dir/CMakeLists.txt file, so that it requires seamonkey-plugin instead of mozilla-plugin?
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Compiling lightspark for SalixOS

Post by Shador »

caitlyn wrote:mozilla-plugin.pc -> usr/lib64/pkgconfig/seamonkey-plugin.pc
Huh? Does that work? I think you've got a broken link there. It would evaluate to: ./usr/lib64/pkgconfig/seamonkey-plugin.pc (. (dot) being relative to the dir containing mozilla-plugin.pc). ;)
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Compiling lightspark for SalixOS

Post by thenktor »

Shador: eagle eyes :)
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
caitlyn
Posts: 209
Joined: 5. Dec 2009, 20:42
Location: Hunstville, Texas, USA

Re: Compiling lightspark for SalixOS

Post by caitlyn »

Good catch! However, gapan had it right. xulrunner created mozilla-plugin.pc when I installed it. There is no longer a link.

Sadly compilation still fails because it needs libpulse. I have more than a little trepidation about adding Pulse Audio.
Post Reply