[opensuse-packaging] Question about qmake an pathes
Hello Mates, atm i'm working on freediams, an medical Software. I'm using in the Spec: %build qmake -r -config release %{name}.pro "CONFIG+=LINUX_INTEGRATED" "INSTALL_ROOT_PATH=%{_prefix}" "LIBRARY_BASENAME=%{_lib}" %__make %{?jobs:-j %jobs} lrelease freediams.pro %install %makeinstall INSTALL_ROOT="%{buildroot}" The Package Building runs good. But if i try to run freediams i'm getting: sascha@linux-hob0:~/osc/home:saigkill:medical/freediams> freediams "Main" "Command line : freediams" "Main" "looking for plugins in path : /usr/bin/plugins" "Database" "Available drivers : QSQLITE ; QMYSQL3 ; QMYSQL" "Main" "Running release version" "Couldn't find 'Core.pluginspec' in /usr/bin/plugins" So i tried to make an ln -s from /usr/lib64/freediams/Core.pluginspec to /usr/bin/plugins, That runs. But now i'm getting: sascha@linux-hob0:/usr/lib64/freediams> freediams "Main" "Command line : freediams" "Main" "looking for plugins in path : /usr/bin/plugins" "Database" "Available drivers : QSQLITE ; QMYSQL3 ; QMYSQL" "Main" "Running release version" "The shared library was not found. Library base name: /usr/bin/plugins/libCore.so" main "The shared library was not found. Library base name: /usr/bin/plugins/libCore.so" Now i think to make an new ln -s from /usr/lib64/freediams/libCore.so to /usr/bin/plugins is not an good idea. The config_paths.pri says: # define some paths related to application sources BUILD_BINARY_PATH = $${SOURCES_ROOT_PATH}/bin BUILD_LIB_PATH = $${SOURCES_ROOT_PATH}/bin/plugins BUILD_PLUGIN_PATH = $${BUILD_LIB_PATH} Is that the right place who i can modify the Target? So i thought, that i can change the BUILD_LIB_PATH to $$(SOURCES_ROOT_PATH/usr/lib. But how can i modify this, that he checks if lib64 is available, and if not that he just use /usr/lib? Is my work right? Or not? Have a nice day.. -- Sincerely Yours Sascha Manns open-slx GmbH openSUSE Community & Support Agent openSUSE Marketing Team Maifeldstrasse 10 D-56 727 Mayen Phone: +49 2651 4014045 Email: Sascha.Manns@directbox.com Blog: http://saigkill.wordpress.com Web: http://www.open-slx.de (openSUSE Box Support German) Web: http://www.open-slx.com (openSUSE Box Support English) -- Sincerely yours Sascha Manns open-slx GmbH openSUSE Community & Support Agent openSUSE Marketing Team Blog: http://saigkill.wordpress.com Web: http://www.open-slx.de (openSUSE Box Support German) Web: http://www.open-slx.com (openSUSE Box Support English)
Hello, On Mon, 21 Jun 2010, Sascha 'saigkill' Manns wrote:
Hello Mates,
atm i'm working on freediams, an medical Software. I'm using in the Spec:
%build qmake -r -config release %{name}.pro "CONFIG+=LINUX_INTEGRATED" "INSTALL_ROOT_PATH=%{_prefix}" "LIBRARY_BASENAME=%{_lib}" [..] "Couldn't find 'Core.pluginspec' in /usr/bin/plugins" [..] The config_paths.pri says: # define some paths related to application sources BUILD_BINARY_PATH = $${SOURCES_ROOT_PATH}/bin BUILD_LIB_PATH = $${SOURCES_ROOT_PATH}/bin/plugins BUILD_PLUGIN_PATH = $${BUILD_LIB_PATH}
Is that the right place who i can modify the Target? So i thought, that i can change the BUILD_LIB_PATH to $$(SOURCES_ROOT_PATH/usr/lib.
I'd guess it should be 'BUILD_LIB_PATH=$${SOURCES_ROOT_PATH}%{_lib}/freediams' or 'BUILD_LIB_PATH=$${INSTALL_ROOT_PATH}%{_lib}/freediams' HTH, -dnh -- RAID: Es geht immer genau eine Platte mehr kaputt als durch die Redundanz aufgefangen werden könnte. -- Andreas Dau -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
David Haller
-
Sascha 'saigkill' Manns