Hi Guys

For more than 5 weeks there was introduced some bug on trunk, that makes 
kio_file and other plugins fails when loaded.

example:

Could not open library '/usr/local/kde4/lib/kde4/kio_file.so'.
QLibrary::load_sys: Cannot load /usr/local/kde4/lib/kde4/kio_file.so (Cannot 
open "/usr/local/kde4/lib/kde4/libkio_file.so")

i was asking on [EMAIL PROTECTED] thinking it was a Qt bug but it is not.

trollthech guys make a test app and i make the CMakeLists.txt and it works ok.
even with the libname without the lib prefix like kio_file.so is.

any ideas

thanks in advance
Manolito
-- 
Pues todo lo que el hombre sembrare, eso tambien segará
Gál. 6:7
---------------------------------------------------------
For whatever a man sows, that he will also reap.
Gal. 6:7
#include <QtGui>

typedef void (*func)();

int main(int argc, char **argv)
{
    QLibrary lib("bar");
    lib.load();
    qDebug() << "library loaded?" << lib.isLoaded();

    func f = (func)lib.resolve("hello");
    if (f)
        f();

    return 0;
}
#include <qdebug.h>

extern "C" void hello()
{
    qDebug("hello foo");
}
project(issue_test)

find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})

set(app_test_SRCS main.cpp)
set(lib_bar_SRCS lib.cpp)

include_directories(${QT_INCLUDES})

add_executable(test ${app_test_SRCS})

target_link_libraries(test ${QT_LIBRARIES} -lpthread)

add_library(bar SHARED ${lib_bar_SRCS})

set_target_properties(bar PROPERTIES PREFIX "")
_______________________________________________
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd

Reply via email to