On Fri, Oct 2, 2009 at 6:50 PM, Francis Galiegue <[email protected]> wrote:
> With the 4.5.2 branch, I have the problem that the final link stage
> fails, because libstdc++.so.6 could not be found.
>
> After looking a little, I found out the problem: libstdc++.so.6 is
> located in /usr/lib64 on my system, and not /usr/lib. Qt, though, has
> no problem compiling.
>
> What does qt-jambi do differently than qt in this respect that can
> explain the problem?
>

OK, I've found out... The culprit is this function, in
com/trolltech/tools/ant/Util.java:

----
    public static File findInLibraryPath(String name) {
        String libraryPath = System.getProperty("java.library.path");

        // Make /usr/lib an implicit part of library path
        if (OSInfo.os() == OSInfo.OS.Linux || OSInfo.os() == OSInfo.OS.Solaris)
            libraryPath += File.pathSeparator + "/usr/lib";

        String PATH[] = libraryPath.split(File.pathSeparator);
        for (String p : PATH) {
            File f = new File(p, name);
            if (f.exists())
                return f;
        }
        return null;
    }
----

The java.library.path property, indeed, does not include /usr/lib64 when echoed.

-- 
Francis Galiegue, [email protected]
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to