Bug #422 - Release Build Settings Incorrect for OS X
- Duplicates: Bug #414 - Synergy will not compile on Mac OS X due to extra compiler options
Google user: snes350
Under XCode on OS X, if you set the build settings to "Release" rather than
"Debug", the build fails. I have not tried any other methods of compiling
under OS X, and I can compile Debug just fine.
I believe the problem is the last line in CMakeLists.txt, the
SET(CMAKECXXFLAGS_RELEASE "/MD /O2 /Ob2") . When building in XCode, g++
complains that it cannot find /MD, /O2 and /Ob2. It seems to think that
they are directories.
This problem does not appear to affect compiling in Visual Studio in
Windows, though I got an error compiling the launcher which I am not sure
about when compiling the Release configuration.
#1
Google user: filipetinypad
I believe the reason compiling fails is because "/MD /O2 /Ob2" are for the visual C++
compiler. I made a patch some time ago that fixed this issue for me.
"http://code.google.com/p/synergy-plus/issues/detail?id=405":http://code.google.com/p/synergy-plus/issues/detail?id=405
Also, it has to be compiled as 32bit on os x.
Write comment