nathan-osman / NitroShare-Mac

Mac OS X project files and source code for building NitroShare.
3 stars 2 forks source link

Build error with Qt 5.2.1 (Hope this project is still running) #17

Open Napoleon-BlownApart opened 10 years ago

Napoleon-BlownApart commented 10 years ago

Hi, I'm really excited about getting this going. I downloaded the source and am compiling according to the steps given but using Qt 5.2.1 and I'm getting errors. :(

In the source file /qjson/qobjecthelper.cpp (line 69) I'm got the following error: no member named 'toAscii' in 'QString' int pIdx = metaobject->indexOfProperty( inter.key().toAscii() );

I fixed this by using toStdString().c_str() instead of .toAscii()

But then my next error was 'QHttp' file not found #include in qxmlrpc/client.h This is telling me that there are more significant changes from the version of Qt you used and the one I'm using now.

I will see if I can find an older version of Qt to run on my Mac.

Cheers, Nap

mateosalta commented 10 years ago

Hi there should be a pre-compiled version that should work here, I believe I made it so it included the libraries it needed: https://launchpad.net/nitroshare/0.2/0.2/+download/nitroshare_0.2.app.dmg

Just drag it into your applications folder. But yeah, I believe there are quite significant differences between qt 4.8 and 5.2. - Also If you are using OSX over version Snow Leapord you need to give the app permision like this (as we aren't yet paying apple to "sign" the app): https://github.com/nathan-osman/NitroShare-Mac/issues/14 (also notifications via Growl 1.2.2 - the old free one...)

Otherwise Nathan Is doing a complete rewrite on the program for version 3 - so the project is in a "hibernation" not dead yet ;) and most of the linux/windows version stuff is going on here: https://launchpad.net/nitroshare/ and the new version here: https://github.com/nitroshare - so ignore my "development" branch here.

I'll try to get my external drive updated and give the new qt a shot, maybe we can sort through the changes.

Thanks for you interest -Mateo

Napoleon-BlownApart commented 10 years ago

Thanks Mateo, downloaded from launchpad and it almost works. I can send files from my OSX to Ubuntu, but when I go the other way, my Ubuntu says "Connection Refused" and OSX does not put up a dialog asking to accept (yes/no) the file.

I've got OSX 10.9.2 Mavericks installed. I know this isn't really a bug, but since I'm really new to OSX, I must ask: I have my OSX firewall turned off and all the other settings on that tab are allowing everything. Can you advise what else I need to set in OSX to enable it to receive files please?

mateosalta commented 10 years ago

make sure you don't have "block all incoming conections" on or look for app specific setting in -> system preferences -> security -> firewall -> advanced