trebleshot / desktop

An Open-Source file sharing software for Linux, macOS and Windows allowing you to send and receive files over available connections, and pause and resume transfer process even when an error is given
GNU General Public License v2.0
34 stars 6 forks source link

MacOS Support? #13

Open Fredolx opened 5 years ago

Fredolx commented 5 years ago

The title says it supports Mac OS, but I can't seem to compile it

Fredolx commented 5 years ago

I get the following errors when trying to compile:

In file included from /Users/fred/Downloads/TrebleShot-Desktop-continuous/cmake-build-debug/trebleshot_autogen/mocs_compilation.cpp:22:
In file included from /Users/fred/Downloads/TrebleShot-Desktop-continuous/cmake-build-debug/trebleshot_autogen/YPKJ5OE7LN/moc_MainWindow.cpp:9:
/Users/fred/Downloads/TrebleShot-Desktop-continuous/cmake-build-debug/trebleshot_autogen/YPKJ5OE7LN/../../../src/ui/MainWindow.h:92:2: error: 
      unknown type name 'DNSSDService'
        DNSSDService *m_discoveryService;
        ^
In file included from /Users/fred/Downloads/TrebleShot-Desktop-continuous/cmake-build-debug/trebleshot_autogen/mocs_compilation.cpp:22:
/Users/fred/Downloads/TrebleShot-Desktop-continuous/cmake-build-debug/trebleshot_autogen/YPKJ5OE7LN/moc_MainWindow.cpp:219:25: error: 
      cannot initialize object parameter of type 'QMainWindow' with an expression of type 'MainWindow'
    return QMainWindow::qt_metacast(_clname);
                        ^~~~~~~~~~~
/Users/fred/Downloads/TrebleShot-Desktop-continuous/cmake-build-debug/trebleshot_autogen/YPKJ5OE7LN/moc_MainWindow.cpp:224:24: error: 
      cannot initialize object parameter of type 'QMainWindow' with an expression of type 'MainWindow'
    _id = QMainWindow::qt_metacall(_c, _id, _a);
                       ^~~~~~~~~~~
/Users/fred/Downloads/TrebleShot-Desktop-continuous/cmake-build-debug/trebleshot_autogen/YPKJ5OE7LN/moc_MainWindow.cpp:229:32: error: 
      cannot initialize a parameter of type 'QObject *' with an rvalue of type 'MainWindow *'
            qt_static_metacall(this, _c, _id, _a);
                               ^~~~
/Users/fred/Downloads/TrebleShot-Desktop-continuous/cmake-build-debug/trebleshot_autogen/YPKJ5OE7LN/moc_MainWindow.cpp:163:46: note: 
      passing argument to parameter '_o' here
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
                                             ^
4 errors generated.
velitasali commented 5 years ago

Hi,

I haven't tested on a Mac machine before. So I might need help to make appropriate changes. There should not be anything so problematic to do so since TrebleShot already works on both Linux and Windows.

And in this case, it seems to be a misconfiguration problem. I will push changes.

Fredolx commented 5 years ago

Hi,

I haven't tested on a Mac machine before. So I might need help to make appropriate changes. There should not be anything so problematic to do so since TrebleShot already works on both Linux and Windows.

And in this case, it seems to be a misconfiguration problem. I will push changes.

Thank you for the quick reply. I will be available if you need someone to test on Mac OS.

Fredolx commented 5 years ago

Any news? @velitasali

velitasali commented 5 years ago

Any news? @velitasali

If I am planning to work on CI for Mac. https://docs.travis-ci.com/user/reference/osx/

freewind commented 5 years ago

Waiting for the mac version too.

Tried to run "build_trebleshot.sh" on mac, but got this error:

CMake Error at CMakeLists.txt:188 (add_subdirectory):
  The source directory

    /Users/user/workspace/TrebleShot-Desktop/qmdnsengine

  does not contain a CMakeLists.txt file.