Install Qt library(qwt-6.0.1) in windows 7 - qt

I downloaded “Qt 5.0.0 Beta 2” and I downloaded MinGw with gcc version 4.6.2. I extracted the latest “qwt-6.0.1” to the Qt installed folder. All the paths are set.
Now I opened "Qt 5.0.0 for Desktop(MSVC 2010)" command prompt. After changing the directory to qwt-6.0.1 steps i follwed=>
1) qmake qwt.pro => with this makefile is created
2)make => giving the error... also instead of this step i tried "mingw32-make" command in the same prompt.. both are giving the same error following error :
Error : "cd src\ && ( if not exist Makefile C:\QtSDK\5.0.0-beta2\msvc2010\bin\qmake.exe C
:\QtSDK\qwt-6.0.0-rc5\src\src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory C:/QtSDK/qwt-6.0.0-rc5/src'
make -f Makefile.Release all
make[2]: Entering directoryC:/QtSDK/qwt-6.0.0-rc5/src'
Makefile.Release:255: * missing separator. Stop.
make[2]: Leaving directory C:/QtSDK/qwt-6.0.0-rc5/src'
make[1]: *** [release-all] Error 2
make[1]: Leaving directoryC:/QtSDK/qwt-6.0.0-rc5/src'
make: * [sub-src-make_first-ordered] Error 2"

Qwt from SVN trunk ( aka 6.1 ) works with Qt 4 and 5.

You are trying to use qwt, an independent library, with Qt 5. Well Qt 5 is recent and not widespread yet, so don't expect much.
It seems that the latest version of qwt on the repository use Qt 4.8 (see install in svn repository).It will not work with Qt 5.

Related

Qt move label with mouse

So here's the thing: I downloaded the Qt 4.7 tar and I'm installing on Ubuntu 16. I unzip the downloaded folder and installed all libs that were preventing me to run the ./configure
After I could run the configure, the make runs but get an error at some point. Here's what I get when I run 'make configure' or 'make':
root#ubuntu:/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0# make configure
/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/linux-g++-64 -o Makefile projects.pro
make: /home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake: Command not found
Makefile:1063: recipe for target 'Makefile' failed
make: *** [Makefile] Error 127
root#ubuntu:/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0# make
/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/linux-g++-64 -o Makefile projects.pro
make: /home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake: Command not found
Makefile:1063: recipe for target 'Makefile' failed
make: *** [Makefile] Error 127
I really appreciate the help, Ty :D

Errors building QT 5.5.1 source code on Win32

I'm trying building new version 5.5.1 on win32
After
configure -static -release -opensource -qt-sql-sqlite –platform win32-g++ -opengl desktop
and
MinGW-make
after just one minute:
c:\mingw\include\math.h: In function 'float hypotf(float, float)':
c:\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
{ return (float)(_hypot (x, y)); }
^
Makefile.Release:316: recipe for target '.obj/release/moc.o' failed
mingw32-make[4]: *** [.obj/release/moc.o] Error 1
mingw32-make[4]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src/tools/moc'
Makefile:34: recipe for target 'release' failed
mingw32-make[3]: *** [release] Error 2
mingw32-make[3]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src/tools/moc'
Makefile:86: recipe for target 'sub-moc-make_first' failed
mingw32-make[2]: *** [sub-moc-make_first] Error 2
mingw32-make[2]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase'
Makefile:68: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2
I read that maybe possibly perform construction msvc or try mingw64 but I need it on Windows 32 with platform win32-g++
You really can not build this version with win32 and win32-g++ platform??
Any suggestions please, welcome any help.
SOLUTION.................................................................................................................................................
You can compile QT 5.5.1 with MinGW-64 project.
This project also works on 32 bits.
It´s not possible to compile with the "typical" version minimalist, neither changing the libraries. MinGW-64 project is not available from MinGW Installation Manager, I do not understand this and dislike me as an advocate for alternatives like mingw, I could always download from this manager all I need, now this manager... should improve.
After installing MinGW-64 project in all programs MinGW-64 project Run terminal
cd pathQTconfigure
configure -static -release -opensource –platform win32-g++ -opengl desktop
mingw-make
THANKS TO ALL :)

rspec and capybara with QT warning about using 4.8.2 but qt5 is installed

I'm using Ubuntu 14.04 and I need to get rspec and capybara working with QT5. I have installed QT5. but when I run rspec/feature/whatever_test get this warning:
WARNING: The next major version of capybara-webkit will require at least version 5.0 of Qt. You're using version 4.8.6.
However:
~ % TDIR=/usr/share/qtX qmake --version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
~ % qtchooser -l
4
5
default
qt4-i386-linux-gnu
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
I have tried the qtchooser -qt=qt5 does not change anything.
How can I switch to qt5, and have capybara use it?
thanks guys
So after installing qt5, you can verify by commands above. I had to uninstall capybara-webkit gem uninstall capybara-webkit. Upon reinstalling I got this mess:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/chris/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20151007-20641-1jdvtt5.rb extconf.rb
cd src/ && ( test -e Makefile.webkit_server || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/chris/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/capybara-webkit-1.6.0/src/webkit_server.pro -o Makefile.webkit_server ) && make -f Makefile.webkit_server
Project ERROR: Unknown module(s) in QT: webkitwidgets
make: *** [sub-src-webkit_server-pro-make_first-ordered] Error 3
Command 'make' failed
make "DESTDIR=" clean
cd src/ && ( test -e Makefile.webkit_server || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/chris/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/capybara-webkit-1.6.0/src/webkit_server.pro -o Makefile.webkit_server ) && make -f Makefile.webkit_server clean
Project ERROR: Unknown module(s) in QT: webkitwidgets
make: *** [sub-src-webkit_server-pro-clean-ordered] Error 3
make "DESTDIR="
cd src/ && ( test -e Makefile.webkit_server || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/chris/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/capybara-webkit-1.6.0/src/webkit_server.pro -o Makefile.webkit_server ) && make -f Makefile.webkit_server
Project ERROR: Unknown module(s) in QT: webkitwidgets
make: *** [sub-src-webkit_server-pro-make_first-ordered] Error 3
key here was: Project ERROR: Unknown module(s) in QT: webkitwidgets
see this
What you need to do is run sudo apt-get install libqt5webkit5-dev then bundle install or gem install capybara-webkit.
Capybara doesn't use qt, the capybara-WebKit driver does. You need to uninstall and rebuild capybara-webkit

native client tutorial can't find libstdc++

I'm new to native client. I'm trying to follow the official tutorial on my newly installed ubuntu 14.
I'm getting the following when running "make serve" under the getting_started folder. I googled, it seems to be related to 32/64 bit. my system is 64bit, but pnacl seems to think it is 32.
Anyway I couldn't find a solution. do you know how?
/media/shi/work/nacl_sdk/pepper_34/toolchain/linux_pnacl/bin/pnacl-clang++ -o hello_tutorial.bc hello_tutorial.cc -O2 -I/media/shi/work/nacl_sdk/pepper_34/include -L/media/shi/work/nacl_sdk/pepper_34/lib/pnacl/Release -lppapi_cpp -lppapi
/media/shi/work/nacl_sdk/pepper_34/toolchain/linux_pnacl/host_x86_32/bin/clang: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
make[1]: * [hello_tutorial.bc] Error 127
make[1]: Leaving directory `/media/shi/work/nacl_sdk/pepper_34/getting_started/part1'
make: * [part1_ALL_TARGET] Error 2
It's probably easiest to install the i386 C/C++ libraries:
sudo apt-get install libc6:i386 libstdc++6:i386
There are 64-bit binaries included in the SDK as well (in toolchain/linux_pnacl/bin64/), but they are not run by default (and I'm not certain of an easy way to make the SDK use them).

Undefined reference to QIconvCodec during Qt embedded make?

I'm trying to configure my Qt for Embedded Linux with a virtual framebuffer according to these instructions. From the Qt for Embedded source folder, I'm trying:
./configure -embedded -opensource -confirm-license -verbose -qvfb
make
I get the following error which prevents me from doing make install:
.obj/release-shared-emb-x86/qtextcodec.o: In function `setup()':
qtextcodec.cpp:(.text+0x23cc): undefined reference to `QIconvCodec::QIconvCodec()'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtCore.so.4.8.4] Error 1
make[1]: Leaving directory `/home/cstjean/qt/src/corelib'
make: *** [sub-corelib-all-ordered] Error 2
If I do:
./configure -embedded -opensource -confirm-license -verbose -qvfb
make -no-iconv
sudo make install -no-iconv
...This works. But when I go into QtCreator, Tools > Options > Build & Run > Qt Versions, I try to select qmake for Qt Embedded (for me it's in /home/cstjean/qt/bin/qmake) and it tells me:
Qt version is not properly installed, please run make install
I've tried googling this like crazy. There are a lot of suggestions to download various libraries, which I've tried to no avail, but perhaps I'm missing something because this is a pretty fresh installation of Ubuntu I'm using.
Thanks.
I solved this problem by installing Gnome and starting over from scratch for my Qt Embedded for Linux installation.
I googled gnome for ubuntu 12.04 and found these instructions. You'll have to see which version of Ubuntu you have and search for that of course. You can see which version you have by typing into a command line:
lsb_release -a
Once I had gnome installed, I restarted my computer and signed in using Gnome.
Then I completely uninstalled and removed all traces of Qt Embedded:
cd yourQtEmbeddedDir
sudo make uninstall
cd ..
rm -r yourQtEmbeddedDir sourceFileTarYouHadDownloaded.tar.gz
I redownloaded the source file tar for Qt Embedded for Linux (from here) and proceeded to install according to these instructions after extracting the source files from the tar:
./configure -embedded -opensource -confirm-license -verbose -qvfb
make
sudo make install
Now, if you tell QtCreator about qmake from this installation, then QtCreator will no longer complain about a bad installation! Ta da!
Note: If you're attempting to the do the Virtual Framebuffer business too, then this is not the end of the road. You need to have Qt for X11 installed as well in order to compile qvfb.
Long story short: You need Gnome if you're trying to install Qt Embedded for Linux with a Virtual Framebuffer on Ubuntu!

Resources