Page 1 of 2

Compiling lightspark for SalixOS

Posted: 17. Jun 2010, 22:26
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.

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 07:39
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

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 13:50
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. :(

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 13:52
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.

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 14:36
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 :|

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 15:34
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.

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 16:40
by thenktor
What happens if you change the plugin-dir/CMakeLists.txt file, so that it requires seamonkey-plugin instead of mozilla-plugin?

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 17:08
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). ;)

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 17:39
by thenktor
Shador: eagle eyes :)

Re: Compiling lightspark for SalixOS

Posted: 18. Jun 2010, 17:43
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.