Skip to content

Commit

Permalink
fixed windows build problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend committed Jan 11, 2019
1 parent 982efb5 commit be0b79f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ if (MSVC)
platform/windows/common/DiscoveryAgent.h
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")

add_compile_definitions(_MBCS)
add_compile_options("/std:c++14")
include_directories(zlib)
message(${Qt5Widgets_INCLUDE_DIRS}/QtZlib)
Expand Down
8 changes: 6 additions & 2 deletions forms/mbientconfigpanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
// Created by michaelpollind on 21/12/18.
//

//I have no idea windows
#ifdef _WIN32
#include <windows.h>
#endif

#include "forms/mbientconfigpanel.h"
#include "ui_mbientconfigpanel.h"

Expand All @@ -25,7 +30,6 @@ const float MbientConfigPanel::ACC_ODR_RANGE[] = {2.0f, 4.0f, 8.0f, 16.0f};
const float MbientConfigPanel::ACC_FSR_RANGE[] = {12.5f, 50.f,100.0f,200.0f};
const float MbientConfigPanel::FUSION_RANGE[] = {8.0f,12.5f,50.0f,100.0f};


MbientConfigPanel::MbientConfigPanel(QWidget *parent) : QWidget(parent), ui(new Ui::MbientConfigPanel){
ui->setupUi(this);

Expand Down Expand Up @@ -352,6 +356,6 @@ float MbientConfigPanel::toFusionSampleRangeIndex(int index) {
if(index < 0 || index > 3){
return 0;
}
return FUSION_RANGE[index];
return MbientConfigPanel::FUSION_RANGE[index];
}

1 change: 1 addition & 0 deletions forms/mbientconfigpanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef SMART_MBIENTCONFIGPANEL_H
#define SMART_MBIENTCONFIGPANEL_H


#include <QWidget>
#include <QVariantMap>
#include <3rdparty/mbientlab/src/metawear/sensor/gyro_bmi160.h>
Expand Down
1 change: 0 additions & 1 deletion platform/windows/common/DiscoveryAgent.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#ifndef SMART_DISCOVERYAGENT_H
#define SMART_DISCOVERYAGENT_H


#include "common/BaseDiscoveryAgent.h"
#include <pplawait.h>
#include <Windows.Foundation.h>
Expand Down
1 change: 1 addition & 0 deletions platform/windows/common/metawearwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef SMART_QTMETAWEARWRAPPER_H
#define SMART_QTMETAWEARWRAPPER_H


#include <QtCore/QPointer>
#include "common/metawearwrapperbase.h"

Expand Down

0 comments on commit be0b79f

Please sign in to comment.