Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
4cfee50e
Commit
4cfee50e
authored
Jul 14, 2011
by
LM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed last compile issues on Windows 7 / VS2008
parent
1adc836d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
9 deletions
+24
-9
qgroundcontrol.pri
qgroundcontrol.pri
+4
-2
qextserialenumerator.h
src/libs/qextserialport/qextserialenumerator.h
+7
-5
qextserialenumerator_win.cpp
src/libs/qextserialport/qextserialenumerator_win.cpp
+11
-2
qgroundcontrol-qserialport.pri
thirdParty/qserialport/qgroundcontrol-qserialport.pri
+2
-0
No files found.
qgroundcontrol.pri
View file @
4cfee50e
...
...
@@ -340,7 +340,8 @@ win32-msvc2008 {
#"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include"
LIBS += -L$$BASEDIR/lib/sdl/msvc/lib \
-lSDLmain -lSDL
-lSDLmain -lSDL \
-lsetupapi
exists($$BASEDIR/lib/osg123) {
message("Building support for OSG")
...
...
@@ -403,7 +404,8 @@ win32-g++ {
#"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include"
LIBS += -L$$BASEDIR/lib/sdl/win32 \
-lmingw32 -lSDLmain -lSDL -mwindows
-lmingw32 -lSDLmain -lSDL -mwindows \
-lsetupapi
CONFIG += windows
...
...
src/libs/qextserialport/qextserialenumerator.h
View file @
4cfee50e
...
...
@@ -10,11 +10,13 @@
#include <QtCore/qglobal.h>
#ifdef QEXTSERIALPORT_LIB
# define QEXTSERIALPORT_EXPORT Q_DECL_EXPORT
#else
# define QEXTSERIALPORT_EXPORT Q_DECL_IMPORT
#endif
//#ifdef QEXTSERIALPORT_LIB
//# define QEXTSERIALPORT_EXPORT Q_DECL_EXPORT
//#else
//# define QEXTSERIALPORT_EXPORT Q_DECL_IMPORT
//#endif
#define QEXTSERIALPORT_EXPORT
#include <QString>
#include <QList>
...
...
src/libs/qextserialport/qextserialenumerator_win.cpp
View file @
4cfee50e
...
...
@@ -7,7 +7,7 @@
#include <objbase.h>
#include <initguid.h>
#include "qextserialport.h"
//
#include "qextserialport.h"
#include <QRegExp>
QextSerialEnumerator
::
QextSerialEnumerator
(
)
...
...
@@ -192,7 +192,16 @@ bool QextSerialEnumerator::getDeviceDetailsWin( QextPortInfo* portInfo, HDEVINFO
portInfo
->
enumName
=
getDeviceProperty
(
devInfo
,
devData
,
SPDRP_ENUMERATOR_NAME
);
QString
hardwareIDs
=
getDeviceProperty
(
devInfo
,
devData
,
SPDRP_HARDWAREID
);
HKEY
devKey
=
SetupDiOpenDevRegKey
(
devInfo
,
devData
,
DICS_FLAG_GLOBAL
,
0
,
DIREG_DEV
,
KEY_READ
);
portInfo
->
portName
=
QextSerialPort
::
fullPortNameWin
(
getRegKeyValue
(
devKey
,
TEXT
(
"PortName"
))
);
QRegExp
rx
(
"^COM(
\\
d+)"
);
QString
fullName
(
getRegKeyValue
(
devKey
,
TEXT
(
"PortName"
)));
if
(
fullName
.
contains
(
rx
))
{
int
portnum
=
rx
.
cap
(
1
).
toInt
();
if
(
portnum
>
9
)
// COM ports greater than 9 need \\.\ prepended
fullName
.
prepend
(
"
\\\\
.
\\
"
);
}
portInfo
->
portName
=
fullName
;
QRegExp
idRx
(
"VID_(
\\
w+)&PID_(
\\
w+)"
);
if
(
hardwareIDs
.
toUpper
().
contains
(
idRx
)
)
{
...
...
thirdParty/qserialport/qgroundcontrol-qserialport.pri
View file @
4cfee50e
...
...
@@ -2,6 +2,8 @@
# Automatically generated by qmake (2.01a) Sa. Apr 2 10:42:30 2011
######################################################################
DEFINES += QSERIALPORT_STATIC
DEPENDPATH += . \
include/QtSerialPort \
src/common \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment