This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Trouble with examples build

Tags: None
(comma "," separated)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Trouble with examples build

Fri Apr 11, 2014 11:30 am
Please purge all elements of your Marble installation from /usr/local, delete your Marble build directory and fully recompile it. It appears that Qt 4 has become involved at some point during the build process.

If this fails to correct the issue, we'll need to get some assistance from the Marble developers.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 12:03 pm
I made
sudo apt-get autoremove qt4-*

And retryed to build marble and got an error
[ 51%] Building CXX object src/apps/marble-mobile/CMakeFiles/marble-mobile.dir/marble-mobile_automoc.o
make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libQtCore.so', needed by `src/apps/marble-mobile/marble-mobile'. Stop.
make[1]: *** [src/apps/marble-mobile/CMakeFiles/marble-mobile.dir/all] Error 2
make: *** [all] Error 2
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Trouble with examples build

Fri Apr 11, 2014 12:04 pm
Are you passing the correct arguments to CMake to ensure this is a Qt 5 only build?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 12:14 pm
Yes. There is cmake command, which I used last time
cmake -DCMAKE_BUILD_TYPE=Debug -DQTONLY=1 -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_PREFIX_PATH=~/qt5/qtbase/lib/cmake -DCMAKE_CXX_FLAGS='-fPIC' -DQT5BUILD=1 ../sources/
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build  Topic is solved

Mon Apr 14, 2014 8:11 am
Marble built, installed successfull.
I deleted Qt 4.8, cleared enviromental variables, cmake files, old marble libraries, added Qt5 to PATH and LD_LIBRARY_PATH.
My app run successfull too.

Thank you Ben, thank you Adam.
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Mon Apr 14, 2014 8:47 am
But why cmake says
Could NOT find QextSerialPort (missing: QEXTSERIALPORT_INCLUDE_DIR QEXTSERIALPORT_LIBRARIES)

if Qt5 include QtSerialport (not QextSerialPort)?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Trouble with examples build

Thu Apr 17, 2014 10:59 am
QextSerialPort is different to QtSerialPort, and can be found here - https://code.google.com/p/qextserialport/
As far as I know they are incompatible with each other.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]