qt5_build/qtbase/lib/libQt5Core.so: No such file or directory
-
BackGround
Ubuntu 18.04 build Qt5 from source Code, couldn't found libQt5Core.so
(follow https://wiki.qt.io/Building_Qt_5_from_Git)
Issue:
make not success, couldn't found libQt5Core.so, but in the same directory, there is libQt5Core.so.5.15.7.
Could anyone give me some direction to c?
Steps
step1: sudo apt-get build-dep qtbase5-dev
step2: get git source, and update submodule
step3: run configure
walker@ubuntu:/mnt/hgfs/sync/qt5_build$ /home/walker/repo/qt5/configure -developer-build -opensource -nomake examples -nomake tests
step4: make, then show the wrong hintg++ -Wl,--enable-new-dtags -Wl,-rpath,/mnt/hgfs/sync/qt5_build/qtbase/lib -o ../../../bin/qlalr .obj/compress.o .obj/cppgenerator.o .obj/dotgraph.o .obj/lalr.o .obj/main.o .obj/parsetable.o .obj/recognizer.o .obj/grammar.o /mnt/hgfs/sync/qt5_build/qtbase/lib/libQt5Core.so -lpthread
g++: error: /mnt/hgfs/sync/qt5_build/qtbase/lib/libQt5Core.so: No such file or directory
Makefile:138: recipe for target '../../../bin/qlalr' failed
make[3]: *** [../../../bin/qlalr] Error 1
make[3]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase/src/tools/qlalr'
Makefile:227: recipe for target 'sub-qlalr-make_first' failed
make[2]: *** [sub-qlalr-make_first] Error 2
make[2]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase/src'
Makefile:50: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase'
Makefile:93: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2walker@ubuntu:/mnt/hgfs/sync/qt5_build$ ls -alF qtbase/lib
total 86465
drwxrwxrwx 1 root root 4096 Nov 2 07:21 ./
drwxrwxrwx 1 root root 4096 Nov 2 06:55 ../
drwxrwxrwx 1 root root 0 Nov 2 07:02 cmake/
-rwxrwxrwx 1 root root 4772546 Nov 2 07:01 libQt5Bootstrap.a*
-rwxrwxrwx 1 root root 602 Nov 2 06:55 libQt5Bootstrap.la*
-rwxrwxrwx 1 root root 1162 Nov 2 06:55 libQt5Bootstrap.prl*
-rwxrwxrwx 1 root root 651 Nov 2 07:02 libQt5Core.la*
-rwxrwxrwx 1 root root 1285 Nov 2 07:02 libQt5Core.prl*
-rwxrwxrwx 1 root root 82207840 Nov 2 07:21 libQt5Core.so.5.15.7*
-rwxrwxrwx 1 root root 1544096 Nov 2 07:02 libqtpcre2.a*
-rwxrwxrwx 1 root root 1004 Nov 2 07:02 libqtpcre2.prl*
drwxrwxrwx 1 root root 0 Nov 2 07:10 metatypes/ -
BackGround
Ubuntu 18.04 build Qt5 from source Code, couldn't found libQt5Core.so
(follow https://wiki.qt.io/Building_Qt_5_from_Git)
Issue:
make not success, couldn't found libQt5Core.so, but in the same directory, there is libQt5Core.so.5.15.7.
Could anyone give me some direction to c?
Steps
step1: sudo apt-get build-dep qtbase5-dev
step2: get git source, and update submodule
step3: run configure
walker@ubuntu:/mnt/hgfs/sync/qt5_build$ /home/walker/repo/qt5/configure -developer-build -opensource -nomake examples -nomake tests
step4: make, then show the wrong hintg++ -Wl,--enable-new-dtags -Wl,-rpath,/mnt/hgfs/sync/qt5_build/qtbase/lib -o ../../../bin/qlalr .obj/compress.o .obj/cppgenerator.o .obj/dotgraph.o .obj/lalr.o .obj/main.o .obj/parsetable.o .obj/recognizer.o .obj/grammar.o /mnt/hgfs/sync/qt5_build/qtbase/lib/libQt5Core.so -lpthread
g++: error: /mnt/hgfs/sync/qt5_build/qtbase/lib/libQt5Core.so: No such file or directory
Makefile:138: recipe for target '../../../bin/qlalr' failed
make[3]: *** [../../../bin/qlalr] Error 1
make[3]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase/src/tools/qlalr'
Makefile:227: recipe for target 'sub-qlalr-make_first' failed
make[2]: *** [sub-qlalr-make_first] Error 2
make[2]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase/src'
Makefile:50: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase'
Makefile:93: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2walker@ubuntu:/mnt/hgfs/sync/qt5_build$ ls -alF qtbase/lib
total 86465
drwxrwxrwx 1 root root 4096 Nov 2 07:21 ./
drwxrwxrwx 1 root root 4096 Nov 2 06:55 ../
drwxrwxrwx 1 root root 0 Nov 2 07:02 cmake/
-rwxrwxrwx 1 root root 4772546 Nov 2 07:01 libQt5Bootstrap.a*
-rwxrwxrwx 1 root root 602 Nov 2 06:55 libQt5Bootstrap.la*
-rwxrwxrwx 1 root root 1162 Nov 2 06:55 libQt5Bootstrap.prl*
-rwxrwxrwx 1 root root 651 Nov 2 07:02 libQt5Core.la*
-rwxrwxrwx 1 root root 1285 Nov 2 07:02 libQt5Core.prl*
-rwxrwxrwx 1 root root 82207840 Nov 2 07:21 libQt5Core.so.5.15.7*
-rwxrwxrwx 1 root root 1544096 Nov 2 07:02 libqtpcre2.a*
-rwxrwxrwx 1 root root 1004 Nov 2 07:02 libqtpcre2.prl*
drwxrwxrwx 1 root root 0 Nov 2 07:10 metatypes/@walker404 finally found the root cause, use the shared file path between virtual ubuntu and windows.
-
Hi and welcome to devnet,
What if you do not do a developer build ? (By the way, why a developer build ?)
-
BackGround
Ubuntu 18.04 build Qt5 from source Code, couldn't found libQt5Core.so
(follow https://wiki.qt.io/Building_Qt_5_from_Git)
Issue:
make not success, couldn't found libQt5Core.so, but in the same directory, there is libQt5Core.so.5.15.7.
Could anyone give me some direction to c?
Steps
step1: sudo apt-get build-dep qtbase5-dev
step2: get git source, and update submodule
step3: run configure
walker@ubuntu:/mnt/hgfs/sync/qt5_build$ /home/walker/repo/qt5/configure -developer-build -opensource -nomake examples -nomake tests
step4: make, then show the wrong hintg++ -Wl,--enable-new-dtags -Wl,-rpath,/mnt/hgfs/sync/qt5_build/qtbase/lib -o ../../../bin/qlalr .obj/compress.o .obj/cppgenerator.o .obj/dotgraph.o .obj/lalr.o .obj/main.o .obj/parsetable.o .obj/recognizer.o .obj/grammar.o /mnt/hgfs/sync/qt5_build/qtbase/lib/libQt5Core.so -lpthread
g++: error: /mnt/hgfs/sync/qt5_build/qtbase/lib/libQt5Core.so: No such file or directory
Makefile:138: recipe for target '../../../bin/qlalr' failed
make[3]: *** [../../../bin/qlalr] Error 1
make[3]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase/src/tools/qlalr'
Makefile:227: recipe for target 'sub-qlalr-make_first' failed
make[2]: *** [sub-qlalr-make_first] Error 2
make[2]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase/src'
Makefile:50: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/mnt/hgfs/sync/qt5_build/qtbase'
Makefile:93: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2walker@ubuntu:/mnt/hgfs/sync/qt5_build$ ls -alF qtbase/lib
total 86465
drwxrwxrwx 1 root root 4096 Nov 2 07:21 ./
drwxrwxrwx 1 root root 4096 Nov 2 06:55 ../
drwxrwxrwx 1 root root 0 Nov 2 07:02 cmake/
-rwxrwxrwx 1 root root 4772546 Nov 2 07:01 libQt5Bootstrap.a*
-rwxrwxrwx 1 root root 602 Nov 2 06:55 libQt5Bootstrap.la*
-rwxrwxrwx 1 root root 1162 Nov 2 06:55 libQt5Bootstrap.prl*
-rwxrwxrwx 1 root root 651 Nov 2 07:02 libQt5Core.la*
-rwxrwxrwx 1 root root 1285 Nov 2 07:02 libQt5Core.prl*
-rwxrwxrwx 1 root root 82207840 Nov 2 07:21 libQt5Core.so.5.15.7*
-rwxrwxrwx 1 root root 1544096 Nov 2 07:02 libqtpcre2.a*
-rwxrwxrwx 1 root root 1004 Nov 2 07:02 libqtpcre2.prl*
drwxrwxrwx 1 root root 0 Nov 2 07:10 metatypes/@walker404 finally found the root cause, use the shared file path between virtual ubuntu and windows.