-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qml library files are installed in the wrong directory #162
Comments
Thank you for this patch. It seems that qml path is system dependend. Will check on all platforms. |
@martinkg Also, you can try this in |
Hi ntadej, the %cmake macro on Fedora set the following variables: rpm -E "%cmake" CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic}" ; export CFLAGS ; you uses CMAKE_INSTALL_PREFIX and not CMAKE_INSTALL_LIBDIR, i patched this in Dependencies.cmake diff -Naur config/Dependencies.cmake.orig config/Dependencies.cmake
maybe you can change this in your code ? otherwise i must set -DCMAKE_INSTALL_PREFIX:PATH=%{_libdir} and this is really not correct. |
If you use I will let you know, when I have a new version to test. |
test with las git version 5cdcadb cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON . -DBUILD_TESTS:BOOL=ON -DSYSTEM_QML:BOOL=OFF only compiles fine with this patch: --- config/Dependencies.cmake.orig 2016-08-14 21:29:13.990185529 +0200
otherwise, the libraries libVLCQt.so* are installed to /usr/lib and not to /usr/lib64 not correct: |
You need to set SYSTEM_QML ON not OFF! |
I used this command to build: cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON . -DBUILD_TESTS:BOOL=ON -DSYSTEM_QML:BOOL=ON this is the result: Makefile:74: recipe for target "install" failed If i use this patch all is fine:
|
sorry don"t no how to post a patch here and all is fine. |
I will setup a virtual machine to test this so I will not bother you anymore, but I"m busy at the moment, so give me a week. |
Sorry did not work with your mentioned changes in rpm spec file with last git ff15c34:
RPM build errors: [martin@fc24 SPECS]$ find /home/martin/rpmbuild/BUILDROOT/vlc-qt-1.1.0-0.2gitff15c34.fc24.x86_64/ -name libVLCQt.so.1.1 -print /home/martin/rpmbuild/BUILDROOT/vlc-qt-1.1.0-0.2gitff15c34.fc24.x86_64/usr/qml/VLCQt/libVLCQt.so.1.1 could you please give me access to your rpm spec file ? |
works now, thanks. |
OK, I will release this in 1.1.1 soon as I test it on Ubuntu and Windows. |
Hi,
with the recent version vlc-qt-1.1.0 the qml libraries will be installed on Fedora 24 to the following folder:
/usr/qml/VLCQt/libVLCQt.so
/usr/qml/VLCQt/libVLCQt.so.1.1
/usr/qml/VLCQt/libVLCQt.so.1.1.0
/usr/qml/VLCQt/qmldir
but this shoult be:
/usr/lib64/qml/VLCQt/libVLCQt.so
/usr/lib64/qml/VLCQt/libVLCQt.so.1.1
/usr/lib64/qml/VLCQt/libVLCQt.so.1.1.0
/usr/lib64/qml/VLCQt/qmldir
the attached patch corrects this.
vlc-qt-1.1.0-CMakeLists.patch.txt
The text was updated successfully, but these errors were encountered: