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
3d2866df
Commit
3d2866df
authored
Apr 11, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finally fixed the Mac OS 32bit/64bit chaos
parent
a6eaccb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
21 deletions
+37
-21
mavground.pri
mavground.pri
+17
-7
Core.cc
src/Core.cc
+11
-10
MainWindow.cc
src/ui/MainWindow.cc
+9
-4
No files found.
mavground.pri
View file @
3d2866df
...
...
@@ -37,8 +37,8 @@ LANGUAGE = C++
#CONFIG += static debug
#CONFIG += static release console
CONFIG += static debug_and_release console
QMAKE_CFLAGS += -j8
QMAKE_CXXFLAGS += -j8
#
QMAKE_CFLAGS += -j8
#
QMAKE_CXXFLAGS += -j8
OBJECTS_DIR = $$BUILDDIR/obj
MOC_DIR = $$BUILDDIR/moc
...
...
@@ -60,10 +60,20 @@ message(Qt version $$[QT_VERSION])
# MAC OS X
macx {
message(Building for Mac OS X 64bit)
CONFIG += x86 #x86_64
CONFIG -= static phonon
CONFIG += x86_64
CONFIG -= x86 static phonon
HARDWARE_PLATFORM = $$system(uname -a)
contains( HARDWARE_PLATFORM, x86_64 ) {
# x64 Mac OS X Snow Leopard 10.6 and later
CONFIG += x86_64
CONFIG -= x86 static phonon
message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later)
} else {
# x86 Mac OS X Leopard 10.5 and earlier
CONFIG += x86 static phonon
message(Building for Mac OS X 32bit/Leopard 10.5 and earlier)
}
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
...
...
@@ -88,8 +98,6 @@ macx {
# GNU/Linux
linux-g++ {
message(Building for GNU/Linux)
debug {
DESTDIR = $$BASEDIR
...
...
@@ -105,10 +113,12 @@ linux-g++ {
# 64-bit Linux
LIBS += \
-L$$BASEDIR/lib/flite/linux64
message(Building for GNU/Linux 64bit/x64)
} else {
# 32-bit Linux
LIBS += \
-L$$BASEDIR/lib/flite/linux32
message(Building for GNU/Linux 32bit/i386)
}
LIBS += -lm \
-lflite_cmu_us_awb \
...
...
src/Core.cc
View file @
3d2866df
...
...
@@ -61,6 +61,14 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv)
this
->
setApplicationName
(
"OpenMAV Ground Control Station"
);
this
->
setApplicationVersion
(
"v. 0.0.5"
);
this
->
setOrganizationName
(
QLatin1String
(
"OpenMAV Association"
));
this
->
setOrganizationDomain
(
"http://qgroundcontrol.org"
);
// Show splash screen
QPixmap
splashImage
(
":images/splash.png"
);
QSplashScreen
*
splashScreen
=
new
QSplashScreen
(
splashImage
,
Qt
::
WindowStaysOnTopHint
);
splashScreen
->
show
();
splashScreen
->
showMessage
(
tr
(
"Loading application fonts"
),
Qt
::
AlignLeft
|
Qt
::
AlignBottom
,
QColor
(
62
,
93
,
141
));
QSettings
::
setDefaultFormat
(
QSettings
::
IniFormat
);
// Exit main application when last window is closed
connect
(
this
,
SIGNAL
(
lastWindowClosed
()),
this
,
SLOT
(
quit
()));
...
...
@@ -73,17 +81,12 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv)
fontDatabase
.
addApplicationFont
(
fontFileName
);
setFont
(
fontDatabase
.
font
(
fontFamilyName
,
"Roman"
,
12
));
// Show splash screen
QPixmap
splashImage
(
":images/splash.png"
);
QSplashScreen
*
splashScreen
=
new
QSplashScreen
(
splashImage
,
Qt
::
WindowStaysOnTopHint
);
splashScreen
->
show
();
// Start the comm link manager
splashScreen
->
showMessage
(
tr
(
"Starting Communication Links"
));
splashScreen
->
showMessage
(
tr
(
"Starting Communication Links"
)
,
Qt
::
AlignLeft
|
Qt
::
AlignBottom
,
QColor
(
62
,
93
,
141
)
);
startLinkManager
();
// Start the UAS Manager
splashScreen
->
showMessage
(
tr
(
"Starting UAS Manager"
));
splashScreen
->
showMessage
(
tr
(
"Starting UAS Manager"
)
,
Qt
::
AlignLeft
|
Qt
::
AlignBottom
,
QColor
(
62
,
93
,
141
)
);
startUASManager
();
// Start audio output
...
...
@@ -93,7 +96,7 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv)
//tarsus->start();
// Start the user interface
splashScreen
->
showMessage
(
tr
(
"Starting User Interface"
));
splashScreen
->
showMessage
(
tr
(
"Starting User Interface"
)
,
Qt
::
AlignLeft
|
Qt
::
AlignBottom
,
QColor
(
62
,
93
,
141
)
);
startUI
();
// Remove splash screen
...
...
@@ -140,7 +143,5 @@ void Core::startUI()
{
// Start UI
mainWindow
=
new
MainWindow
();
// Make UI visible
mainWindow
->
show
();
}
src/ui/MainWindow.cc
View file @
3d2866df
...
...
@@ -60,6 +60,9 @@ This file is part of the PIXHAWK project
MainWindow
::
MainWindow
(
QWidget
*
parent
)
:
QMainWindow
(
parent
)
{
this
->
hide
();
this
->
setVisible
(
false
);
// Quick hack
//comp = new LogCompressor("/home/pixhawk/Desktop/test.txt");
...
...
@@ -142,10 +145,6 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
// Add status bar
setStatusBar
(
createStatusBar
());
// Load widgets
loadWidgets
();
// Adjust the size
adjustSize
();
// Create actions
connectActions
();
...
...
@@ -173,6 +172,12 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
//CommConfigurationWindow* simulationWidget = new CommConfigurationWindow(simulationLink, mavlink, this);
//ui.menuNetwork->addAction(commWidget->getAction());
simulationLink
->
connect
();
// Load widgets and show application window
loadWidgets
();
// Adjust the size
adjustSize
();
}
MainWindow
::~
MainWindow
()
...
...
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