Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4 branch_leonox cmake fails to find GECKO

closed-fixed
nobody
None
5
2008-03-01
2007-10-08
Bruno Postle
No

cmake .
CMake Error: Could not find GECKO SDK

On a fedora 7 system, the GECKO headers are found in /usr/include/firefox-2.0.0.5 and the nspr files are found in /usr/include/nspr4.

So if I add these two paths to branch_leonox/CMakeScripts/FindGECKO.cmake then I can get the branch to build (something cleverer than this is required to do this portably).

Discussion

  • Bruno Postle
    Bruno Postle
    2007-11-13

    Logged In: YES
    user_id=35360
    Originator: YES

    Note that these include directories can be found with pkgconfig, so a workaround for systems with pkgconfig is to comment-out the find_package(GECKO REQUIRED) line from CMakeLists.txt and manually set the CXX_FLAGS like so:

    cmake -DCMAKE_CXX_FLAGS="`pkg-config --cflags firefox-plugin`" .

     
  • Leon Moctezuma
    Leon Moctezuma
    2007-11-19

    Logged In: YES
    user_id=1745688
    Originator: NO

    Thanks, at a first sight it looked like a good solution... but I have some problems maybe you can help me...

    $ pkg-config --cflags firefox-plugin
    -I/usr/include/firefox/java -I/usr/include/firefox/plugin -I/usr/include/firefox/nspr

    Ok, this returns just the directory where prthread.h is, but I also would need (in my case) "/usr/include/firefox" where npapi.h npupp.h are located. And I also need to link Xt library (actually is not a big problem to find it)...

    I also would prefer to have something simple like cmake . instead of cmake -DCMAKE_CXX_FLAGS="`pkg-config --cflags firefox-plugin`", other problem is what if the package is not found?

     
  • Bruno Postle
    Bruno Postle
    2007-11-19

    Logged In: YES
    user_id=35360
    Originator: YES

    Hi Leon, my -DCMAKE_CXX_FLAGS workaround isn't a proper fix, it is just a tip for packagers if they stumble on this report.

    I'm not familiar with cmake, but I'm sure there is a pkgconfig cmake module that will just do the right thing here.

    On my system there are multiple firefox pkgconfig targets, the xpcom one seems to find the base firefox headers (though I don't need this to compile freepv):

    $ pkg-config --cflags firefox-xpcom
    -I/usr/include/firefox-2.0.0.9 -I/usr/include/firefox-2.0.0.9/xpcom -I/usr/include/firefox-2.0.0.9/string -I/usr/include/nspr4

     
  • Bruno Postle
    Bruno Postle
    2008-03-01

    • status: open --> closed-fixed
     
  • Bruno Postle
    Bruno Postle
    2008-03-01

    Logged In: YES
    user_id=35360
    Originator: YES

    I've committed a fix in svn 131, though only tested on one system.