stefansundin / vlc-protocol

Open vlc:// links directly from your web browser.
https://tinyurl.com/hv8d778
GNU General Public License v3.0
193 stars 41 forks source link

Instructions on building on this on OSX #2

Closed mridang closed 7 years ago

mridang commented 7 years ago

Hi Stefan, I am unable to build this on a OSX as I get the error:

+ mkdir -p VLC-protocol-app/Contents/MacOS
+ gcc -framework Cocoa -o VLC-protocol-app/Contents/MacOS/vlc-protocol vlc-protocol.m
vlc-protocol.m:50:31: error: use of undeclared identifier 'NSWindowStyleMaskTitled'
                    styleMask:NSWindowStyleMaskTitled
                              ^
1 error generated.

Could you attached prebuild binaries to the releases page or provide instructions on how to build this? It would be very helpful. Thank you

stefansundin commented 7 years ago

Hi mridang.

Sure, I just released a zip here that you can use: https://github.com/stefansundin/vlc-protocol/releases/tag/v1.0.0

I'm just curious if you could help me determine why you can't compile it.

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Thanks!

mridang commented 7 years ago

I'm running Yosemite 10.10.5. Here's the gcc output:

Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

I think I have the Xcode tools installed ( not sure if the headers are bundled with this). Running xcode-select -p gives this:

/Library/Developer/CommandLineTools

stefansundin commented 7 years ago

Okay. Well, I'm not sure what is missing, but I hope the binaries worked for you at least. :)