Bernhard Miklautz<bernhard.mikla...@shacknet.at> 

Thank you very much. You really helped me out.
I finally compiled successfully.

1. chmod -R 755 ~/cmake
2. uninstall X11 (or called Xquarz , my old version is  2.7.7)
3. install X11 version 2.7.6
4. cmake ....  && make && make install

Now I know why  the compliling alway showed errers . Some versions of softwares 
are not right .

1. cmake 3.0.2
2. Xquarz 2.7.6  (2.7.7 compiling error)
3. openssl 1.0.1j 15 Oct 2014
4. Mac OS X 10.10


But xfreerdp for Mac OS X 10.10  is not perfect.
1. When I run the following command, there is only one blue dialog and can not 
any operations.

 xfreerdp \
/app:"||mspaint" \
/v:APP220.vsdevel.corp.landhightech.com \
/d:vsdevel.corp.landhightech.com \
/u:adldaptest1 \
/p:dell_456 \
/g:RDGW.vsdevel.corp.landhightech.com \
/gd:vsdevel.corp.landhightech.com \
/gu:adldaptest1 \
/gp:dell_456 


2.When I run the following command, although there is one dialog , it is 
terrible and can not any operations.

xfreerdp /u:adldaptest1 /d:vsdevel.corp.landhightech.com /p:dell_456 
/app:"||mspaint" /v:192.168.1.222:3389




yszh...@landhightech.com
 
From: Bernhard Miklautz
Date: 2014-12-18 18:22
To: yszh...@landhightech.com
CC: freerdp-devel@lists.sourceforge.net
Subject: Re: [FreeRDP-devel] master source code complied error in Mac OS X
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

Reply via email to