[csw-maintainers] CSWsynergy
Jan Holzhueter
jh at opencsw.org
Tue Apr 30 14:56:14 CEST 2013
Hi,
Am 29.04.13 22:59, schrieb Jeffrey Veiss:
> Hi Jan,
>
> It took quite some effort but I was finally able to compile the latest
> (1.4.11) version of synergy on Solaris 10 sparc. Well, I was able
> to generate the binaries synergyc, synergyd and synergys which is
> all I really wanted. The compilation bombed again on micro/uSynergy.c.
>
> Here's some of the things I needed to do:
>
> o I installed CSW gcc 4.6.3
>
> o Set the following environment variables:
>
> export CMAKE_C_FLAGS="-I/usr/openwin/share/include -I/usr/X11/include -lresolv -lsocket -lnsl -lrt"
> export CMAKE_CXX_FLAGS="-I/usr/openwin/share/include -I/usr/X11/include -lresolv -lsocket -lnsl -lrt"
> export CMAKE_INCLUDE_PATH=/usr/openwin/share/include:/usr/X11/include
> export CC=/opt/csw/bin/gcc
>
> o Added /opt/csw/bin to $PATH and /opt/csw/lib to $LD_LIBRARY_PATH
>
> o Ran hm.sh conf -g1
>
> o Edited ./build/release/tools/CMakeFiles/cryptopp.dir/flags.make
> and removed "-march=native"
>
> o Ran ./hm.sh build
>
> In response to to the "is private" errors on CProtocolUtil::writef, I
> made changes to the following files:
>
> ./src/lib/ipc/CIpcClientProxy.cpp:147
> ./src/lib/ipc/CIpcServerProxy.cpp:94
> ./src/lib/server/CClientProxy1_4.cpp:105
>
> On each call to this function where only three parameters were
> provided, I added a fourth parameter of simply "". I also added
> static_cast directives to try and force it to use the public version
> of the function but that's likely not necessary. For example, from
> ipc/CIpcClientProxy.cpp:
>
> - CProtocolUtil::writef(&m_stream, kIpcMsgLogLine, &logLine);
>
> + CProtocolUtil::writef(static_cast<synergy::IStream*>(&m_stream), static_cast<const char*>(kIpcMsgLogLine), &logLine, "");
>
> It's been over a decade since I've done any C++ development so while
> I'm not sure if this is the right thing to do (and unlikely so), it
> seemed to satisfy the compiler and synergys 1.4.11 seems to be
> working OK with my Win 7 laptop (albeit the mouse is slow but that's
> likely a network issue).
thank you for that stuff.
I added it and it seems to build and not brake on sparc now.
It does not yet build on x86 atm. I thought back in the day I had it
work on x86 and not on sparc. Now it's the other way around.
I will see if I get this going and have a new package.
Greetings
Jan
More information about the maintainers
mailing list