FreeRDP / FreeRDP-WebConnect

A gateway for seamless access to your RDP-Sessions in any HTML5-compliant browser
519 stars 1.62k forks source link

Compile the code error #15

Closed chufall closed 10 years ago

chufall commented 12 years ago

I have download the code, and compile the source code as README.

But when running the configure, it has given the following error:

checking for png_read_info in -lpng... yes ./configure: line 24179: syntax error near unexpected token fi' ./configure: line 24179:fi'

and I found the line 24179, it like this:

case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: fi

{ $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5

$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5

I don't know the "fi" is correct?

if I remove the "fi", and run the configure continuely, and the following error:

checking for png_read_info in -lpng... yes ./configure: line 24221: syntax error near unexpected token )' ./configure: line 24221:,,-lz -lm)'

and the code is : ...... if test "x$ac_cv_header_png_h" = x""yes; then png_ok=yes fi

,,-lz -lm; ) if test "$png_ok" = yes; then .....

So if I remove the ",,-lz -lm; )" , which give me the last error:

checking for png_read_info in -lpng... yes ./configure: line 30034: syntax error: unexpected end of file

Now I cannot fix it

Please do me a favour to fix it

My platform is Centos 6.2, and freerdp and any requires are installed .

thank you very much

Chu

felfert commented 12 years ago

The script "configure" is auto-generated by autotools (autoconf/automake etc.). This happens when you run make -f Makefile.am

So:

  1. Editing it manually is fruitless.
  2. If it generates errors, your autotools are most likely broken or incomplete.

=> Fix autotools, then run make -f Makefile.am again.

BTW: knowing bash syntax should help: "fi" is the the closing counterpart of "if" just like "esac" is to "case"...

Also: RPMs for Centos 6 can be found via this page: http://freerdp.net/download.html

alexpilotti commented 10 years ago

The build process changed quite a bit since this issue was opened.

Please reopen this issue if you still experience compilation problems.