libstlport_static.a: No such file: Permission denied

When compiling my android ndk project I have added

APP_STL := stlport_static

to my jni/ file which allows use of some STL stuff. however, when I clean and build I get an error libstlport_static.a: No such file: Permission denied I have found that a solution to this is to add


This is a fix, but rebuilding the stlport library every time is obviously very time consuming. Is there a better fix to this problem?

-------------Problems Reply------------

You haven't said which platform you are developing on, but I'm going to guess that it is Windows.

If you're using Vista or Windows 7, then the issue may genuinely be a permissions problem with the libstlport_static.a file. Either check the permissions on the file or try disabling User Account Control altogether.

Note that there are three versions of libstlport_static.a provided in the NDK. You should be able to work out which one(s) your application is using by referring to the APP_ABI setting in your file.

I solved this by changing the permissions of the source file. In that case:

chmod 777 <ndk-dir>/sources/cxx-stl/stlport/libs/armeabi/libstlport_satic.a

If you are using NDK r7c, another way (instead of turning off UAC) is call ndk-build in Windows' command prompt (cmd) instead from bash under cygwin.

In NDK r7 and above, ndk-build is no longer dependent on cygwin and therefore invoking it directly in cmd avoids the permission issue because tools now have the same permission as you. Note you still need cygwin if you want to debug your native code.

Category:android Views:0 Time:2011-11-18

Related post

  • "Error deleting file: Permission denied" with remove in C++ 2010-08-23

    When I compile and run my C++ program that deletes a file called example.txt (below) #include <stdio.h> int main () { if( remove( "example.txt" ) != 0 ) perror( "Error deleting file" ); else puts( "File successfully deleted" ); return 0; } It c

  • php won't include an existing file: permission denied 2009-12-02

    You will laugh if you read to the end of this :) This is now driving me nuts - can't get php to include an existing file with proper permissions set etc. I have test.php file and "lib/tools.php" file. I run the following code: $fn = 'C:\Sasha\ThreeDi

  • MySQL can't write to file, permission denied. (Error 13) 2011-03-10

    I have a web application that runs queries on the database. The application is trying to run a query, and send the results to the an output file. I have confirmed that the issue is actually a permission denied (error 13) problem, not an issue with an

  • win2008 service wants to delete file : permission denied 2011-05-10

    I have an old VB6 service that works on a number of Excel files. The service looks for files in a given directory, opens them and reads the contents. If everything works well the file gets a new extension ".ok", or ".err" if something went wrong. The

  • git rebase: "error: cannot stat 'file': Permission denied" 2011-05-11

    I'm using git, and made a small commit followed by a large one. I decided to use git rebase to squash the two commits together before pushing them. (I've never done this before.) So I did: git rebase -i HEAD~2 This gave me my editor, where I chose to

  • git: Unable to index file - permission denied 2011-06-19

    Only for one file, I am getting the following error: error: unable to write sha1 filename /opt/www/.git/objects/3f/ce3587c54a8be14c69b08c6b01f94949b11b47: Permission denied error: wp/wp-admin/css/ failed to insert into database

  • Xcode can't create output file, permission denied 2011-06-19

    In XCode I cannot compile my application anymore, the error is: /usr/bin/lipo: can't create output file: /Users/nathan/Library/Developer/Xcode/DerivedData/PackageTracking-fpewhfohxohurlexwettvkopakyn/Build/Products/Release/

  • Cannot open output file, permission denied 2011-07-29

    So I keep getting this error when trying to compile C++ code using CodeBlocks. cannot open output file [filename.exe] permission denied It only started today, and it's sporadic and inconsistent. It usually goes away if I shut CodeBlocks down and rest

  • Git Checkout warning: unable to unlink files, permission denied 2011-08-26

    I am aware that there are similar issues about git relating to the 'unable to unlink' warning, but I have not been able to use them. The main difference is that this happened when I have not been dealing with submodules in any way (I have never dealt

  • ld.exe: cannot open output file - : Permission denied 2011-10-05

    I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this problem has me somewhat stumped. I decided to fire off a short Fibonacci generator to make sure my setup was working, but I ran into a

  • Android Save File Permission denied 2011-11-11

    I would like to write a Bitmap Object on file. This is my code: File f = new File(path + "-bw.jpg"); OutputStream fileStream = new BufferedOutputStream(new FileOutputStream(path + "-bw.jpg")); image.getBitmap().compress(Bitmap.CompressFormat.JPEG, 10

  • Android error Log File : permission denied 2011-12-13

    I am making an application in android. in first activity its displays list of videos and that are on youtube... But, when i click that list and control transfer to the next activity and I am transferring URL of that video to the next activity. Every

  • PHP / Unix - Unable to write to a file (permission denied - fopen) 2013-06-06

    I have a simple problem that has me confused. I'm trying to write to a file using PHP fopen but I'm getting the error "Warning: fopen(/var/www/********/file.php): failed to open stream: Permission denied in /var/www/********/index.php on line 339 The

  • Writing a flat file, permission denied 2015-01-26

    I have got this issue : WRT_8004 Writer initialization failed [Error opening session output file [/*/diff_zipcode1.out] [error=Permission denied]]. Writer terminating. The user for informatica has the right to write in this specific folder (I tried a

  • File Permission Denied fopen 2011-09-05

    I use MS Expressions for creating and publishing sites. I also have a quick page editor built in to my CMS. If I edit the page with my CMS I can no longer edit it with Expressions. I get a file permission error. Before I save the new info I delete th

  • File permission denied 2014-12-08

    I am having problems with file permissions for files I created. I recently built a Windows 7 machine with a RAID-1 array. One of the disks in the RAID failed, I replaced it and rebuilt the RAID-1 array. Then, on bootup, Windows 7 reported file errors

  • can not print PDF file, permission denied, for passport application? 2013-06-25

    I am trying to print a DS 82 to use an online passsport renewal application. When I get to the print part it denies me saying I don't have permission to print this page. ANy tips? It is my computer, and I have gone through security sections in contro

  • Permission denied while reading the db file 2011-10-03

    I need to read a db file from a different application. The db file is created by the specific provider app & my application has to read this db file and take a back up. Not able to access the file : Permission Denied. Is it possible to read the f

  • Git gives me a "Permission Denied" error when writing files that I am pulling 2012-02-08

    On my Windows machine, when I pull my repo I get: error: unable to crate file <path to file> (Permission denied) I think the problem might be that when I look at the properties of the folder there is a square inside the checkbox, I clear it out

Copyright (C), All Rights Reserved.

processed in 0.206 (s). 11 q(s)