Hi, > On 18.12.2014, at 04:19, yszh...@landhightech.com wrote: > > I use master source code to compile , it failed. > error message info: > /Users/lhtx/Desktop/yszhang/FreeRDP-master-ac-2014-12-17/client/X11/xf_client.c:147:44: > error: invalid argument type 'void' to unary expression > if (XSubtractRegion(reg1, reg2, reg1) && !XEmptyRegion(reg1)) > > compiling env: Mac OS X 10.10 > cmake version: 3.0
> the compiling process: > lhtxdeMac-mini:FreeRDP-master-ac-2014-12-17 lhtx$ cmake > -DCMAKE_OSX_ARCHITECTURES:STRING="x86_64" > -DCMAKE_INSTALL_PREFIX:PATH="/usr/local/freerdp" -DWITH_PCSC=ON > -DWITH_ALSA=OFF -DWITH_X11=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_DEBUG_TSG=on > -DCMAKE_OSX_SYSROOT:PATH="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk" > -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="10.9" -L . Just tried on 10.10 with latest Xcode, cmake 3.0.2 and commit ec3be62ff25b4fcaa8c11aacbf4f0abebd5bc0c6. No Problem. I was wondering what commit you are trying to build? > -- Finding optional feature X11 for X11 (X11 client and server) > -- Found X11: /opt/X11/lib/libX11.dylib > -- > CMake Warning at winpr/CMakeLists.txt:82 (export): > Cannot create package registry file: > /Users/lhtx/.cmake/packages/winpr/f5e00613bdec0c60a78a6f77947d63f2 > Permission denied > CMake Warning at rdtk/CMakeLists.txt:80 (export): > Cannot create package registry file: > /Users/lhtx/.cmake/packages/rdtk/81d04805ce6fa235a236b26bc1ba7e5e > Permission denied The two “Permission denied” look weird - haven’t never seen them.. You might want to check your permissions in ~/.cmake > [ 94%] Built target freerdp-client > Scanning dependencies of target xfreerdp-client > [ 94%] Building C object client/X11/CMakeFiles/xfreerdp-client.dir/xf_gdi.c.o > /Users/lhtx/Desktop/yszhang/FreeRDP-master-ac-2014-12-17/client/X11/xf_gdi.c:80:2: > warning: implicit declaration of function 'XSetFunction' is invalid in C99 > [-Wimplicit-function-declaration] > XSetFunction(xfc->display, xfc->gc, xf_rop2_table[rop2]); > ^ > /Users/lhtx/Desktop/yszhang/FreeRDP-master-ac-2014-12-17/client/X11/xf_gdi.c:282:11: > warning: implicit declaration of function 'XCreatePixmap' is invalid in C99 > [-Wimplicit-function-declaration] > bitmap = XCreatePixmap(xfc->display, xfc->drawable, width, height, > xfc->depth); > ^ > /Users/lhtx/Desktop/yszhang/FreeRDP-master-ac-2014-12-17/client/X11/xf_gdi.c:293:11: > warning: implicit declaration of function 'XCreateImage' is invalid in C99 > [-Wimplicit-function-declaration] > image = XCreateImage(xfc->display, xfc->visual, xfc->depth, > … The warnings look like you X11 headers are not right for some reason. Can you show us the output of cmake -LA | grep -e X11 What version of Xquarz do you have installed? Best regards, Bernhard ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ FreeRDP-devel mailing list FreeRDP-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel