Comments (13)
As a hack to make rtknavi_qt
compile, I modified code2base
calls with add 0
as first missing parameter.
mondlg.cpp: line 1007:
code=code2obs(0,obs[i].code[k],NULL);
mondlg.cpp: line 1864:
char *code=code2obs(0, i-17,NULL);
from rtklib.
Workaround
ur need to compile the static lib libRTKLib.a:
cd <PATH_TO_RTKLIB_ROOT_DIR>
qmake RTKLib.pro
make
The build process will stopped with the same error:
ar cqs libRTKLib.a rtkcmn.o convkml.o convrnx.o convgpx.o datum.o download.o ephemeris.o geoid.o gis.o ionex.o lambda.o options.o pntpos.o postpos.o ppp.o ppp_ar.o ppp_corr.o preceph.o qzslex.o rcvraw.o rinex.o rtcm.o rtcm2.o rtcm3.o rtcm3e.o rtkpos.o rtksvr.o sbas.o solution.o stream.o streamsvr.o tides.o tle.o binex.o crescent.o gw10.o javad.o novatel.o nvs.o rcvlex.o rt17.o septentrio.o skytraq.o ss2.o ublox.o tersus.o comnav.o swiftnav.o cmr.o
make[1]: Verzeichnis „/home/yves/Apps/RTKLIB/src“ wird verlassen
cd app/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/yves/Apps/RTKLIB/app/app.pro ) && make -f Makefile
make[1]: Verzeichnis „/home/yves/Apps/RTKLIB/app“ wird betreten
make[1]: *** Keine Regel vorhanden, um das Ziel „../../src/libRTKLib.a“,
benötigt von „rtknavi_qt“, zu erstellen. Schluss.
Befor the error comes, it has create the libRTKLib.a
and u can find it in the src
dir:
$: find . -iname '*RTKLib.a*'
./src/libRTKLib.a
The build process stopped while building the app.pro
in the app
dir and try to link (?) the libRTKLib.a
in ../../libRTKLib.a
what is wrong (there is in ../src/
).
U can go into the rtknavi_qt dir and build it because there is a .pro file too:
cd app/rtknavi_qt
qmake rtknavi_qt.pro
make
Sry, i dont use QMake or QTCreator and dont know the hole build processes. but it works for me.
from rtklib.
Two quick questions. First are you using the right repository, or do you want cartoocm/RTKLIB-QT for this? Second, that error normally occurs when you are using Qt rev 4.x and fail to include the 3rd party serial stuff (it is now built into rev 5.x). [I do not know what version JensReimann used] You are better off going to Qt 5.x (currently at 5.9.1) if you can. Finally, as Qt is more of less a GUI development environment, many folks (most?) click on the *.pro file, pick the build tool chain you want (called kits now), and go on - rather than a command line.
from rtklib.
Thank you for you answer!
I think that I'm in the right repository because I use U-blox receivers.
I installed qt5-default
and did the same thing.
Now when I run
qmake ../app/rtknavi_qt/rtknavi_qt.pro
the error is:
Info: creating stash file /tmp/RTKLIB/build/.qmake.stash
Project ERROR: Unknown module(s) in QT: serialport
libqt5serialport5 is installed. (if that's useful to know)
libqt5serialport5/zesty,now 5.7.1~20161021-2build1~1 amd64 [installed,automatic]
UPDATE
I installed libqt5serialport5-dev
and I could generate the "Makefile" with qmake
but when I run make
I got the following error:
make: *** No rule to make target '../../src/libRTKLib.a', needed by 'rtknavi_qt'. Stop.
from rtklib.
I
Thank you for you answer!
I think that I'm in the right repository because I use U-blox receivers.
I installedqt5-default
and did the same thing.
Now when I run
qmake ../app/rtknavi_qt/rtknavi_qt.pro
the error is:Info: creating stash file /tmp/RTKLIB/build/.qmake.stash Project ERROR: Unknown module(s) in QT: serialport
libqt5serialport5 is installed. (if that's useful to know)
libqt5serialport5/zesty,now 5.7.1~20161021-2build1~1 amd64 [installed,automatic]
UPDATE
I installedlibqt5serialport5-dev
and I could generate the "Makefile" with qmake
but when I runmake
I got the following error:
make: *** No rule to make target '../../src/libRTKLib.a', needed by 'rtknavi_qt'. Stop.
I came across the same problem, so have you solved this?
from rtklib.
Thanks for the solution
qmake *.pro
make
from rtklib.
Next error...
rtknavi_qt
compilation fails in mondlg.cpp
because of incompatible call for function code2obs()
defined in rtklib.h
:
mondlg.cpp:1864:38: error: too few arguments to function ‘char* code2obs(int, unsigned char, int*)’
In file included from mondlg.cpp:7:0:
../../src/rtklib.h:1453:14: note: declared here
EXPORT char *code2obs(int sys, unsigned char code, int *freq);
^~~~~~~~
Makefile:884: recipe for target 'mondlg.o' failed
from rtklib.
Next error:
rtknavi_qt
compilation fails because missing libgd
solution (easy):
sudo apt-get install libgd-dev
from rtklib.
As the main RTKLib.pro has been deleted, one must compile library and apps this way:
git clone https://github.com/rtklibexplorer/RTKLIB.git
cd RTKLIB/
pushd .
cd src
qmake && make
popd
cd app/qtapp
qmake && make
from rtklib.
Hi, I'm getting an error trying to build the RTKLIB-demo5 qt apps on Ubuntu 18.04 LTS,
$ qmake && make
[...]
cd rtknavi_qt/ && make -f Makefile
make[1]: Entering directory '[...]/RTKLIB-demo5/app/qtapp/rtknavi_qt'
g++ -c -m64 -pipe -g -Wall -W -D_REENTRANT -D_RTLDLL -DNO_STRICT -DTRACE -DENAGLO -DENAQZS -DENAGAL -DENACMP -DENAIRN -DNFREQ=5 -DNEXOBS=3 -DSVR_REUSEADDR -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../../src -I../appcmn_qt -I. -I. -o serioptdlg.o ../appcmn_qt/serioptdlg.cpp
../appcmn_qt/serioptdlg.cpp:12:10: fatal error: QSerialPortInfo: No such file or directory
#include <QSerialPortInfo>
^~~~~~~~~~~~~~~~~
compilation terminated.
the QSerialPortInfo header is installed at /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPortInfo
by the libqt5serialport5-dev
package. Qt5 version 5.9.5.
any ideas?
thanks,
Hamish
from rtklib.
ah, the rtk*_qt apps' Makefiles are all written including qt4, but the source code uses qt5 functions. The system's qmake is using Qt4 as linked by qtchooser?
from rtklib.
Ok, got it built, I needed to install the qt5-default package as per
https://rtklibexplorer.wordpress.com/2020/12/18/building-rtklib-code-in-linux/
from rtklib.
Qt apps are no longer supported in the 2.4.3 and demo5 versions of RTKLIB
from rtklib.
Related Issues (20)
- How does RTKLIB determine the weight of single-differenced observation?
- Feature Request: Add -V/-v or --version on CLI apps
- New version dont convert RTCM 1074 HOT 2
- There are differences between demo5_b34e and demo5_b34i in the analysis of obs observation data HOT 1
- How to compile and run on visual studio 2022 HOT 3
- rtkplot_qt observation type codes not handled well HOT 2
- rtkpost_qt demo5 b34j does not generate a solution for several base station files if ? wildcard character is specified HOT 4
- rtkpost_qt demo5 b34j "sh: crx2rnx: not found" message HOT 3
- rtkpost_qt demo5 b34j decimalPoint problem for base station coordinates HOT 3
- rtkpost_qt demo5 b34j Base Station X/Y/Z-ECEF are not converted to Lat/Lon/Heigth (deg/m) HOT 7
- rtkpost_qt demo5 b34j cannot enter a comma in the lon field of the base station HOT 2
- rtkpost_qt demo5 b34j Plot button does not run rtkplot_qt HOT 2
- rtkplot_qt demo5 b34j the position graph is drawn in black HOT 2
- rtkplot_qt demo5 b34j Time Span/Interval... window is always displayed in the upper left corner of the screen HOT 5
- rtkplot_qt demo5 b34j Default value of start time of Time Span/Interval... window is different from the chart HOT 7
- rtkconv_qt demo5 b34j "QMetaObject::invokeMethod: No such method MainWindow::showMessage(QString)" HOT 2
- rtkconv_qt demo5 b34j Unable to uncheck the path with the sbs file HOT 3
- rtkplot_qt feature request - text statistics selectable
- static char *obscodes[], the 37th element "8L" is inconsistent with the code "8I" of the macro CODE_L8I
- the receiver height should be used in unit of km in function "extern double ionppp(...)" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtklib.