Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to build webrdp getting errors in rdp.go #1

Open
bmullan opened this issue Feb 22, 2016 · 1 comment
Open

trying to build webrdp getting errors in rdp.go #1

bmullan opened this issue Feb 22, 2016 · 1 comment

Comments

@bmullan
Copy link

bmullan commented Feb 22, 2016

First, I'm not a GO programmer/user but I think I finally have the GO environment & GOPATH etc setup right on my Ubuntu 15.10 system.

First, I built freerdp then I put webRDP into ~/webrdp.

Next, I edited the build.sh to point to the ~/FreeRDP directory

Finally I ran "build.sh" but it threw a bunch of errors that I'm not sure how to fix....

bmullan@ubuntu-vm:~/webrdp$ ./build.sh
/home/bmullan/webrdp
# _/home/bmullan/webrdp
In file included from $WORK/
/home/bmullan/webrdp/_obj/_cgo_export.c:2:0:
./rdp.go: In function ‘setFuncInClient’:
./rdp.go:51:33: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
instance->VerifyCertificate = web_verify_certificate;
^

# _/home/bmullan/webrdp
./rdp.go: In function ‘setFuncInClient’:
./rdp.go:51:33: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
instance->VerifyCertificate = web_verify_certificate;
^
# _/home/bmullan/webrdp
./rdp.go:193: cannot use _Cconst_TRUE (type int) as type C.BOOL in return argument
./rdp.go:210: cannot use _Cconst_TRUE (type int) as type C.BOOL in return argument
./rdp.go:216: cannot use _Cconst_TRUE (type int) as type C.BOOL in return argument
./rdp.go:222: cannot use _Cconst_TRUE (type int) as type C.BOOL in return argument
./rdp.go:228: cannot convert _Cconst_TRUE to type C.BOOL
./rdp.go:228: cannot convert _Cconst_TRUE (type int) to type C.BOOL
./rdp.go:228: cannot use C.BOOL(_Cconst_TRUE) (type int) as type C.BOOL in return argument
./rdp.go:240: cannot use _Cconst_TRUE (type int) as type C.BOOL in return argument
./rdp.go:310: cannot use _Cconst_TRUE (type int) as type C.BOOL in assignment
./rdp_bitmap.go:33: cannot use _Cconst_TRUE (type int) as type C.BOOL in return argument
./rdp_bitmap.go:33: too many errors
bmullan@ubuntu-vm:~/webrdp$

@gonewbee
Copy link
Owner

gonewbee commented Mar 1, 2016

Change function return C.TRUE to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants