Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    312

    syntax error in VERSION script


    when cross compiling libpng i get this error. I googled for it but i didnt get exact answer. Anybody knows what will be the problem?
    Code:
    /mnt/freescale/toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld:libpng.vers:2: syntax error in VERSION script
    collect2: ld returned 1 exit status
    i have these content inside "libpng.vers"
    Code:
    PNG12_0 {global:
    local: *; };
    Thanks in advance...

  2. #2
    Dear shariefbe:

    I came across the same problem these days when cross-compiling libpng and found that it can be solved by simply remarking the line containing libpng.vers in your MAKEFILE (adding a # character in the beginning of that line). Your application will be able to link the compiled libpngl2.a and successfully run on ARM based devices.

    Good luck!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •