Skip to content

Instantly share code, notes, and snippets.

@cnelson
Last active January 19, 2024 08:01
Show Gist options
  • Save cnelson/9b42986d3e98ee7431bf to your computer and use it in GitHub Desktop.
Save cnelson/9b42986d3e98ee7431bf to your computer and use it in GitHub Desktop.
Patches for ShowEQ 5.2.2.0 to run on Ubuntu 14.04

This was done on a stock ubuntu 14.04 cloud install, but should work on any distro (although you'd need to tweak the package install part to use yum or whatever and appropriate package names)

Install needed OS packages:

  • Install the packages needed for things to build

Oneliner:

apt-get update && apt-get install -y curl build-essential libx11-dev libxext-dev libpcap-dev zlib1g-dev libgdbm-dev

Build QT 3.2 with threading support:

Oneliner:

    #note: this is destructive, anything in /usr/local/qt will be replaced / destroyed!

     DIR=$(mktemp -d) && cd $DIR && curl http://ftp.gwdg.de/pub/linux/troll/qt/source/qt-x11-free-3.2.1.tar.gz | tar -xzvf - && rm -fr /usr/local/qt && mv qt-x11-free-3.2.1 /usr/local/qt && cd /usr/local/qt && curl https://gist.githubusercontent.com/cnelson/9b42986d3e98ee7431bf/raw/d8fb17006f22e50cb685b2091c6399666628913f/qt321.patch | patch -r - -p1; echo yes | ./configure -thread && make

Build SEQ:

Oneliner:

    DIR=$(mktemp -d) && cd $DIR && curl -L "http://downloads.sourceforge.net/project/seq/ShowEQ/ShowEQ-5.2.x%20-%20for%20project%201999/showeq-5.2.2.0.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fseq%2Ffiles%2FShowEQ%2FShowEQ-5.2.x%2520-%2520for%2520project%25201999%2F&ts=1405792273&use_mirror=iweb" | tar -jxvf - && cd showeq-5.2.2.0 && curl https://gist.githubusercontent.com/cnelson/9b42986d3e98ee7431bf/raw/28a433291b126a8fa22642bde2607c5624dd5153/showeq5220.patch | patch -p1; ./configure -with-qt-dir=/usr/local/qt && make && make install
diff -rupN orig/include/qmap.h hax/include/qmap.h
--- orig/include/qmap.h 2003-08-20 06:07:18.000000000 -0700
+++ hax/include/qmap.h 2014-07-19 11:27:45.682753342 -0700
@@ -51,6 +51,7 @@
#include <map>
#endif
+#include <stddef.h>
//#define QT_CHECK_MAP_RANGE
struct Q_EXPORT QMapNodeBase
diff -rupN orig/include/qvaluelist.h hax/include/qvaluelist.h
--- orig/include/qvaluelist.h 2003-08-20 06:07:16.000000000 -0700
+++ hax/include/qvaluelist.h 2014-07-19 11:27:41.610834040 -0700
@@ -49,6 +49,7 @@
#include <list>
#endif
+#include <stddef.h>
//#define QT_CHECK_VALUELIST_RANGE
#if defined(Q_CC_MSVC)
diff -rupN orig/include/qvaluevector.h hax/include/qvaluevector.h
--- orig/include/qvaluevector.h 2003-08-20 06:07:17.000000000 -0700
+++ hax/include/qvaluevector.h 2014-07-19 11:27:51.626637902 -0700
@@ -46,6 +46,8 @@
#include <vector>
#endif
+#include <stddef.h>
+
template <class T>
class QValueVectorPrivate : public QShared
{
diff -rupN orig/src/tools/qmap.h hax/src/tools/qmap.h
--- orig/src/tools/qmap.h 2003-08-20 06:07:18.000000000 -0700
+++ hax/src/tools/qmap.h 2014-07-19 11:27:45.682753342 -0700
@@ -51,6 +51,7 @@
#include <map>
#endif
+#include <stddef.h>
//#define QT_CHECK_MAP_RANGE
struct Q_EXPORT QMapNodeBase
diff -rupN orig/src/tools/qvaluelist.h hax/src/tools/qvaluelist.h
--- orig/src/tools/qvaluelist.h 2003-08-20 06:07:16.000000000 -0700
+++ hax/src/tools/qvaluelist.h 2014-07-19 11:27:41.610834040 -0700
@@ -49,6 +49,7 @@
#include <list>
#endif
+#include <stddef.h>
//#define QT_CHECK_VALUELIST_RANGE
#if defined(Q_CC_MSVC)
diff -rupN orig/src/tools/qvaluevector.h hax/src/tools/qvaluevector.h
--- orig/src/tools/qvaluevector.h 2003-08-20 06:07:17.000000000 -0700
+++ hax/src/tools/qvaluevector.h 2014-07-19 11:27:51.626637902 -0700
@@ -46,6 +46,8 @@
#include <vector>
#endif
+#include <stddef.h>
+
template <class T>
class QValueVectorPrivate : public QShared
{
diff -rupN orig/configure hax/configure
--- orig/configure 2005-10-29 15:21:08.000000000 -0700
+++ hax/configure 2014-07-19 11:56:03.329394591 -0700
@@ -26978,9 +26978,6 @@ if test -z "$SHOWEQ_RPATH" && test "$USE
SHOWEQ_RPATH="$SHOWEQ_RPATH -rpath \$(qt_libraries)"
fi
- if test -n "$X_LDFLAGS"; then
- SHOWEQ_RPATH="$SHOWEQ_RPATH -rpath \$(x_libraries)"
- fi
if test -n "$SHOWEQ_EXTRA_RPATH"; then
SHOWEQ_RPATH="$SHOWEQ_RPATH \$(SHOWEQ_EXTRA_RPATH)"
fi
diff -rupN orig/src/itemdbtool.cpp hax/src/itemdbtool.cpp
--- orig/src/itemdbtool.cpp 2005-09-13 08:23:11.000000000 -0700
+++ hax/src/itemdbtool.cpp 2014-07-19 11:48:48.569934810 -0700
@@ -444,10 +444,6 @@ void displayVersion(EQItemDB* itemDB)
#ifdef QT_VERSION_STR
printf ("\t\tUsing Qt version: %s\n", QT_VERSION_STR);
#endif
-#ifdef __linux__
- printf ("\t\tUsing headers from linux version: %s\n",
- UTS_RELEASE);
-#endif
printf ("\tUsing GDBM: %s\n", GDBMConvenience::Version());
#ifdef USE_DB3
printf ("\tUsing DB3: %s\n", DB3Convenience::Version());
diff -rupN orig/src/main.cpp hax/src/main.cpp
--- orig/src/main.cpp 2005-10-05 08:29:08.000000000 -0700
+++ hax/src/main.cpp 2014-07-19 11:48:53.757833131 -0700
@@ -763,10 +763,6 @@ void displayVersion(void)
#ifdef QT_VERSION_STR
printf ("\t\tUsing Qt version: %s\n", QT_VERSION_STR);
#endif
-#ifdef __linux__
- printf ("\t\tUsing headers from linux version: %s\n",
- UTS_RELEASE);
-#endif
printf ("\t\tUsing EQItemDB: %s\n", EQItemDB::Version());
printf ("\tUsing GDBM: %s\n", GDBMConvenience::Version());
#ifdef USE_DB3
diff -rupN orig/src/mapicon.h hax/src/mapicon.h
--- orig/src/mapicon.h 2005-09-16 18:28:44.000000000 -0700
+++ hax/src/mapicon.h 2014-07-19 11:49:31.873086193 -0700
@@ -208,7 +208,7 @@ class MapIcon
protected:
// static paint methods
typedef void (*IconImageFunction)(QPainter&p, const QPoint& point,
- int size, int size);
+ int size, int sizeWH);
static void paintNone(QPainter&p, const QPoint& point,
int size, int sizeWH);
static void paintCircle(QPainter&p, const QPoint& point,
diff -rupN orig/src/messagefilterdialog.h hax/src/messagefilterdialog.h
--- orig/src/messagefilterdialog.h 2003-11-30 00:11:29.000000000 -0800
+++ hax/src/messagefilterdialog.h 2014-07-19 11:50:30.759929574 -0700
@@ -46,7 +46,7 @@ class MessageFilterDialog : public QDial
void messageTypeSelectionChanged();
void existingFilterSelectionChanged(QListBoxItem * item);
void removedFilter(uint32_t mask, uint8_t filter);
- void addedFilter(uint32_t mask, uint8_t filter, const MessageFilter& filter);
+ void addedFilter(uint32_t mask, uint8_t filter, const MessageFilter& mfilter);
protected:
void clearFilter();
diff -rupN orig/src/messagefilter.h hax/src/messagefilter.h
--- orig/src/messagefilter.h 2003-11-28 07:22:27.000000000 -0800
+++ hax/src/messagefilter.h 2014-07-19 11:49:47.800773802 -0700
@@ -99,7 +99,7 @@ class MessageFilters : public QObject
signals:
void removed(uint32_t mask, uint8_t filter);
- void added(uint32_t mask, uint8_t filter, const MessageFilter& filter);
+ void added(uint32_t mask, uint8_t filter, const MessageFilter& mfilter);
protected:
MessageFilter* m_filters[maxMessageFilters];
diff -rupN orig/src/messages.h hax/src/messages.h
--- orig/src/messages.h 2003-11-17 15:34:20.000000000 -0800
+++ hax/src/messages.h 2014-07-19 11:50:05.496426109 -0700
@@ -49,7 +49,7 @@ class Messages : public QObject
protected slots:
void removedFilter(uint32_t mask, uint8_t filter);
- void addedFilter(uint32_t mask, uint8_t filter, const MessageFilter& filter);
+ void addedFilter(uint32_t mask, uint8_t filter, const MessageFilter& mfilter);
signals:
void newMessage(const MessageEntry& message);
diff -rupN orig/src/messagewindow.h hax/src/messagewindow.h
--- orig/src/messagewindow.h 2003-11-17 15:34:20.000000000 -0800
+++ hax/src/messagewindow.h 2014-07-19 11:50:16.240214935 -0700
@@ -180,7 +180,7 @@ class MessageWindow : public SEQWindow
void setCaption();
virtual void restoreFont();
void removedFilter(uint32_t mask, uint8_t filter);
- void addedFilter(uint32_t mask, uint8_t filter, const MessageFilter& filter);
+ void addedFilter(uint32_t mask, uint8_t filter, const MessageFilter& mfilter);
protected:
void addMessage(const MessageEntry& message);
diff -rupN orig/src/spawnmonitor.h hax/src/spawnmonitor.h
--- orig/src/spawnmonitor.h 2005-09-13 08:07:09.000000000 -0700
+++ hax/src/spawnmonitor.h 2014-07-19 11:49:18.441349529 -0700
@@ -98,7 +98,7 @@ class SpawnMonitor: public QObject
{
Q_OBJECT
public:
- SpawnMonitor::SpawnMonitor(const DataLocationMgr* dataLocMgr,
+ SpawnMonitor(const DataLocationMgr* dataLocMgr,
ZoneMgr* zoneMgr, SpawnShell* spawnShell,
QObject* parent = 0,
const char* name = "spawnmonitor" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment