Hi zero,

I compiled yesterday for Win64 and I had to add
#include <stdint.h>
after
#include <QtCore>
just in 2 header files: CFitBaseType.h und fit_const.h

I expect that the author of the fit Feature will fix this soon.


Best regards,

Helmut

Am 15.01.2016 um 18:16 schrieb zero:
Hello,

This time most of the build errors are gone, but these ones :

  >  CFitByteDataTransformer.cpp
2>C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45):
error C2146: syntax error : missing ';' before identifier 'getSint8'
2>C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
2>C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45):
warning C4183: 'getSint8': missing return type; assumed to be a member
function returning 'int'
2>C:\buildQMS\QMapShack\src\gis\fit\decoder\CFitByteDataTransformer.cpp(49):
error C2352: 'CFitByteDataTransformer::getSint8' : illegal call of
non-static member function
2>
C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45)
: see declaration of 'CFitByteDataTransformer::getSint8'
2>C:\buildQMS\QMapShack\src\gis\fit\decoder\CFitByteDataTransformer.cpp(93):
error C2556: 'qint8 CFitByteDataTransformer::getSint8(quint8 *)' :
overloaded function differs only by return type from 'int
CFitByteDataTransformer::getSint8(quint8 *)'
2>
C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45)
: see declaration of 'CFitByteDataTransformer::getSint8'
2>C:\buildQMS\QMapShack\src\gis\fit\decoder\CFitByteDataTransformer.cpp(93):
error C2371: 'CFitByteDataTransformer::getSint8' : redefinition;
different basic types
2>
C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45)
: see declaration of 'CFitByteDataTransformer::getSint8'
2>C:\buildQMS\QMapShack\src\gis\fit\decoder\CFitByteDataTransformer.cpp(94):
error C2146: syntax error : missing ';' before identifier 'rawData'
2>  CFitFieldBuilder.cpp
2>C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45):
error C2146: syntax error : missing ';' before identifier 'getSint8'
2>C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
2>C:\buildQMS\QMapShack\src\gis/fit/decoder/CFitByteDataTransformer.h(45):
warning C4183: 'getSint8': missing return type; assumed to be a member
function returning 'int'


Thanks for your support

Le 10/01/2016 17:49, Oliver Eichler a écrit :
Hi,

ok, that one slipped my attention during code review. I have asked Ivo to use
the portable Qt types. As he is fixing other problems, too, we have to wait
until the next pull request.

Oliver


Am Sonntag, 10. Januar 2016, 17:41:28 schrieb zero:
Hello,1

I managed to build GDAL, PROJ and Routino, got a QMapShack.sln file from
CMake.
But when I right click->build on "ALL_BUILD" in MS Visual Studio I get
hundreds of message concerning file related to FIT files :

/1>------ Build started: Project: QMS, Configuration: Release x64 ------//
//1>  CMouseNormal.cpp//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(46): error
C2061: syntax error : identifier 'uint8_t'//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(50): error
C2146: syntax error : missing ';' before identifier 'size'//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(50): error
C4430: missing type specifier - int assumed. Note: C++ does not support
default-int//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(50): warning
C4183: 'size': missing return type; assumed to be a member function
returning 'int'//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(52): error
C2143: syntax error : missing ';' before '*'//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(52): error
C4430: missing type specifier - int assumed. Note: C++ does not support
default-int//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(52): warning
C4183: 'invalidValueBytes': missing return type; assumed to be a member
function returning 'int'//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(63): error
C2143: syntax error : missing ';' before '*'//
//1>C:\buildQMS\QMapShack\src\gis/fit/defs/CFitBaseType.h(63): error
C4430: missing type specifier - int assumed. Note: C++ does not support
default-int////
/
etc...

What should I do to make it work ?

Thanks for your help



---
L'absence de virus dans ce courrier électronique a été vérifiée par le
logiciel antivirus Avast. https://www.avast.com/antivirus

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Qlandkartegt-users mailing list
Qlandkartegt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Qlandkartegt-users mailing list
Qlandkartegt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

/**********************************************************************************************
   Copyright (C) 2015 Ivo Kronenberg

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.

**********************************************************************************************/

#ifndef FIT_CONST_H
#define FIT_CONST_H

#include <QtCore>
#include <stdint.h>

/*
 * 0: does not print any decoded fit messages and defintions
 * 1: prints fit messages and defintions after finishing decoding
 * 2: 1 + prints fit messages and defintions during decoing (just after 
finshing one)
 */
#define FITDEBUGLVL 1

#define FITDEBUG(level, cmd) if(FITDEBUGLVL >= level) { cmd; }

static const uint8_t fitLocalMesgNrInvalid = 255;
static const uint16_t fitGlobalMesgNrInvalid = 0xffff;
static const uint8_t fitFieldDefNrInvalid = 255;

typedef enum
{
    eFitArchEndianLittle = 0,
    eFitArchEndianBig = 1
}fit_arch_e;

#endif // FIT_CONST_H
/**********************************************************************************************
   Copyright (C) 2015 Ivo Kronenberg

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.

**********************************************************************************************/

#ifndef CFITBASETYPE_H
#define CFITBASETYPE_H

#include <QtCore>
#include <stdint.h>

typedef enum
{
    TypeEnum = 0,
    TypeSint8 = 1,
    TypeUint8 = 2,
    TypeSint16 = 3,
    TypeUint16 = 4,
    TypeSint32 = 5,
    TypeUint32 = 6,
    TypeString = 7,
    TypeFloat32 = 8,
    TypeFloat64 = 9,
    TypeUint8z = 10,
    TypeUint16z = 11,
    TypeUint32z = 12,
    TypeByte = 13,
    TypeInvalid = 0xff
} BaseTypeNr;

class CFitBaseType
{
public:
    CFitBaseType(BaseTypeNr baseTypeNr, uint8_t* invalidBytes, uint8_t size, 
QString name);
    CFitBaseType();
    ~CFitBaseType();

    uint8_t size() const;
    BaseTypeNr nr() const;
    uint8_t* invalidValueBytes() const;
    bool isInteger() const;
    bool isSignedInt() const;
    bool isUnsignedInt() const;
    bool isFloat() const;
    bool isNumber() const;
    bool isString() const;
    bool isByte() const;
    QString name() const;

private:
    uint8_t* invalidBytes;
    uint8_t typeSize;
    BaseTypeNr baseTypeNr;
    QString namestr;
};


extern CFitBaseType EnumType;
extern CFitBaseType Sint8Type;
extern CFitBaseType Uint8Type;
extern CFitBaseType Sint16Type;
extern CFitBaseType Uint16Type;
extern CFitBaseType Sint32Type;
extern CFitBaseType Uint32Type;
extern CFitBaseType StringType;
extern CFitBaseType Float32Type;
extern CFitBaseType Float64Type;

extern CFitBaseType Uint8zType;
extern CFitBaseType Uint16zType;
extern CFitBaseType Uint32zType;
extern CFitBaseType ByteType; // Field is invalid if all bytes are invalid.

extern CFitBaseType InvalidType;

class CFitBaseTypeMap
{
public:
    static const uint8_t fitBaseTypeNumMask =0x1F; // 0000 0000 0001 1111

    /**
     * param nr: either the "real" base type number (0 -13) or the masked base 
type byte.
     */
    static CFitBaseType* get(uint8_t nr);
private:
    static QMap<uint8_t, CFitBaseType> baseTypes;
};


#endif //CFITBASETYPE_H
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Qlandkartegt-users mailing list
Qlandkartegt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to