Menu

#298 libqwt.so excluded after make install on Linux

None
closed
nobody
None
5
2018-11-04
2018-09-02
Anonymous
No

When building qwt 6.1.3 with QT 5.10.1 and running make install, the libqwt.so file is excluded from the lib/ directory, giving rise to a library not found error on my application'n build. This has been tested on Fedora 28 and Mint 19 (g++ 8 and 7, respectively).

Steps to reproduce:

tar xjvf qwt-6.1.3.tar.bz2
cd qwt-6.1.3
~/Qt/5.10.1/gcc_64/bin/qmake qwt.pro
make
make install

Output:

ad@ad-VB:~/qwt-6.1.3$ ll lib
total 8
drwxr-xr-x 2 ad ad 4096 Sep 2 14:53 ./
drwxr-xr-x 12 ad ad 4096 Sep 2 14:53 ../
lrwxrwxrwx 1 ad ad 15 Sep 2 14:53 libqwt.so -> libqwt.so.6.1.3
lrwxrwxrwx 1 ad ad 15 Sep 2 14:53 libqwt.so.6 -> libqwt.so.6.1.3
lrwxrwxrwx 1 ad ad 15 Sep 2 14:53 libqwt.so.6.1 -> libqwt.so.6.1.3
(The links are broken)

ad@ad-VB:~/qwt-6.1.3$ ll lib/libqwt.so.6.1.3
ls: cannot access 'lib/libqwt.so.6.1.3': No such file or directory

Discussion

  • Anonymous

    Anonymous - 2018-09-02

    Here is some relevant output from 'make install'.

    cd src/ && ( test -e Makefile || /home/administrator/Qt/5.10.1/gcc_64/bin/qmake -o Makefile /home/administrator/qwt-6.1.3/src/src.pro ) && make -f Makefile install
    make[1]: Entering directory '/home/administrator/qwt-6.1.3/src'
    rm -f libqwt.so.6.1.3 libqwt.so libqwt.so.6 libqwt.so.6.1
    linking ../lib/libqwt.so.6.1.3
    ln -s libqwt.so.6.1.3 libqwt.so
    ln -s libqwt.so.6.1.3 libqwt.so.6
    ln -s libqwt.so.6.1.3 libqwt.so.6.1
    rm -f ../lib/libqwt.so.6.1.3
    mv -f libqwt.so.6.1.3  ../lib/
    rm -f ../lib/libqwt.so
    rm -f ../lib/libqwt.so.6
    rm -f ../lib/libqwt.so.6.1
    mv -f libqwt.so ../lib/
    mv -f libqwt.so.6 ../lib/
    mv -f libqwt.so.6.1 ../lib/
    /home/administrator/Qt/5.10.1/gcc_64/bin/qmake -install qinstall -exe ../lib/libqwt.so.6.1.3 /home/administrator/qwt-6.1.3/lib/libqwt.so.6.1.3
    Error copying ../lib/libqwt.so.6.1.3 to /home/administrator/qwt-6.1.3/lib/libqwt.so.6.1.3: Cannot open ../lib/libqwt.so.6.1.3 for input
    Makefile:14184: recipe for target 'install_target' failed
    
     
  • Uwe Rathmann

    Uwe Rathmann - 2018-09-03

    I can't confirm this issue on my box with ( here Qt 5.10.0 ).

    But the obvious reason for the error seems to be, that lib/libqwt.so.6.1.3 does not exist on your box - even if the command sequence above clearly indicates that it is build right there.

    Maybe you can do the following to find out what is going wrong:

    cd src
    qmake

    Now edit the Makefile: search for "ln -s" and add some commands that give you more information to understand, what happens with your lib - like f.e adding a "ls -l ../lib/*" at the end.

    make

     

    Last edit: Uwe Rathmann 2018-09-03
  • Pedro O S

    Pedro O S - 2018-09-05

    Thanks. I'll have a look.

     
  • Uwe Rathmann

    Uwe Rathmann - 2018-11-04
    • status: open --> closed
    • Group: -->
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB