The error "..ld.exe:./obj... /PNG. A: No such file: Permission denied "solution

Source: Internet
Author: User

Cocos2dx and cygwin compilation were used in win7 before, so there was no problem. Later, due to work reasons, the system re-installed XP, and the result was not compiled, and an error in the title was reported. It should be okay to generate obj. After a manual trial, all. A files under OBJ cannot be copied to other places. After some searches, the File Permission problem is found, so perform the following operations:

  • Open cygwin
  • Input: CD/cygdrive/drive letter of the project file/project file directory/obj/local/armeabi
  • Input: chmod 777 ./*

OK. The compilation is successful.

Although the problem was solved, it was too troublesome to manually modify the permissions for each compilation. Later, we found a solution to prohibit cygwin from using the POSIX System for permission management. As follows:

Open the cygwin installation directory \ etc \ fstab in the editor and add this line to it:

None/cygdrive binary, user, noacl, POSIX = 0 0 0

Ferry information:

Cygwin is a software that simulates the Linux environment in Microsoft Windows. It aims to re-compile the source code in the cygwin environment so that the software of the original Linux system can be transplanted to Microsoft Windows. At the same time, cygwin also provides a large number of mature and powerful Unix Command Line tools for Windows users.

Cygwin simulates the Linux permission management system, which is nothing bad, but does not deal with Microsoft Windows's default permission management. For example, let's take a look at the following. This is a permission table for a file created in cygwin a long time ago. It has two unrecognized users (two with question marks ), in fact, they are the users I used to reinstall the system, and the strings of numbers are their "ID card numbers ". Although my user names have never been changed, they are completely different for computers because they have different identities. The user list on my computer does not contain these two ID card numbers, so they are classified as "unidentifiable. The problem is that my current user name is not in the permission table, while the Everyone user only has the permission to read the file, so I cannot change the file content or delete the file. The solution to this problem is to first obtain the ownership of the file (ownership), and then grant yourself the "full control" permission.

One file is easy to handle, and multiple files are really terrible. A thorough solution is to prohibit cygwin from using POSIX System for permission management after cygwin is installed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.