Menu

#6 configure fails to find QtCore

1.0
closed
nobody
None
2015-03-06
2014-10-11
Chris Mayo
No

For me on Gentoo Linux:

$ ./configure
....
configure:3797: checking for main in -lQtCore
configure:3816: x86_64-pc-linux-gnu-gcc -o conftest -march=core-avx-i -ftree-vectorize -O2 -pipe  -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu conftest.c -lQtCore  -lpthread  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtCore
collect2: error: ld returned 1 exit status
configure:3816: $? = 1
...
configure:3825: result: no
configure:3835: error: *** QtCore library not installed - please install QT4 first ***

Works with -L/usr/lib64/qt4 added to LIBS.

Using PKG_CHECK_MODULES as in the attached patch fixes this for me.

1 Attachments

Discussion

  • RCP Team

    RCP Team - 2014-10-19

    Unfortunately PKG_CHECK_MODULES wouldn't work on Debian 7. I put a small fix in version 1.1.1 for Gentoo. They had a similar ./configure problem, it might work also in your case. If not, I need to know where libQtCore.so is located in the filesystem.

    Thanks

     
  • RCP Team

    RCP Team - 2015-03-06
    • status: open --> closed
     

Log in to post a comment.