Skip to content

Commit

Permalink
Fixed connection issue & docker / ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
vranki committed Sep 9, 2019
1 parent b695ff2 commit 717c244
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ExtPlane.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ versionAtLeast(QT_VERSION, 5.8.0) {
warning(Qt 5.8.0 needed to build extplane-transformer - skipping $$QT_VERSION)
}

OTHER_FILES += README.md clients/extplane-client-qt/README
OTHER_FILES += README.md clients/extplane-client-qt/README Dockerfile scripts/*
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ binaries.
docker build -t extplane .
docker run -it -v $PWD:/ExtPlane -w /ExtPlane extplane ./scripts/ci-build.sh
```
You should end up with extplane-transformer.zip and extplane-plugin.zip with both linux & windows versions inside.

### Debian/Ubuntu Linux ###
```bash
Expand Down
3 changes: 3 additions & 0 deletions clients/extplane-client-qt/simulatedextplaneconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ void SimulatedExtPlaneConnection::stopConnection() {
emit connectionMessage("Stopped simulated");
}

void SimulatedExtPlaneConnection::connectionChangedSlot() { // Host or port changed -reconnect
}

void SimulatedExtPlaneConnection::keyPress(int id) {
emit connectionMessage(QString("Simulated key press id %1").arg(id));
}
Expand Down
2 changes: 2 additions & 0 deletions clients/extplane-client-qt/simulatedextplaneconnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public slots:

private slots:
void tickTime();
virtual void connectionChangedSlot();

private:
virtual void writeLine(QString line);
virtual ClientDataRef *createDataRef(QString name, double accuracy=0);
Expand Down
9 changes: 4 additions & 5 deletions scripts/cross-compile-win64-from-lin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
# Good luck!
#

if [ ! -d ../ExtPlane-Panel ] ; then
echo "Run this from ExtPlane-Panel subdirectory is. Read the comments in script."
if [ ! -d ../ExtPlane ] ; then
echo "Run this from ExtPlane subdirectory is. Read the comments in script."
exit -1
fi
echo "Cleaning up build dir"
Expand All @@ -33,7 +33,7 @@ if [ -d ../mxe ] ; then
MXEDIR=`pwd`/../mxe
else
if [ -d /usr/lib/mxe ] ; then
MXEDIR = /usr/lib/mxe
MXEDIR=/usr/lib/mxe
fi
fi

Expand All @@ -54,8 +54,7 @@ popd
PATH=$MXEDIR/usr/bin/:$PATH

echo
echo Starting ExtPlane-Panel build
echo Starting ExtPlane build
echo $PATH
$MXEDIR/usr/$TARGET/qt5/bin/qmake "CONFIG+=release" -recursive
make

0 comments on commit 717c244

Please sign in to comment.