When I add a library in Processing (Sketch > Import Library > Add Library), where is it installed?
They're installed in your sketchbook location.
You can view and change your sketchbook location by going to File > Preferences. The sketchbook location setting is the first option in that dialog:
This sketchbook location is also where your settings are stored, as well as the default place where sketches are saved.
You could have probably figured this out by googling "processing library directory" or by just installing a library and then searching for a directory with that name.
It's in the libraries folder of your Processing sketch folder. On my Mac, it's ~/Documents/Processing 3.0/libraries/
Related
I am new to using MIPS and I can't find how to open a file that I saved. I saved a .asm file under my downloads folder but when I try to open a file in MARS and navigate to the same downloads folder, the .asm file does not appear.
I'm using MARS on MacOS.
As stated above, you need to allow Full Disk Access in your System Preferences in macOS. Here they mention that you need to search for 'JavaLauncher.app'. This is an issue due to macOS changes with security management.
To give Full Disk Access to JAR files on macOS:
Go to System Preferences.
Click on Security and Privacy.
Search for 'Full Disk Access'.
Click on the lock at the bottom left to be able to make changes.
Click on the '+' icon at the bottom left of the FDA panel and a Finder prompt will appear.
Go to System/Library/CoreServices/JavaLauncher.app
Select the JavaLauncher.app and click 'Open'
That's it. You should be able to access files through your Java application. This helped to fix my issue with MARS MIPS not saving files properly on my laptop. I constantly needed to save it elsewhere.
I figured out that I had to allow access to finder directories for jar files. Mac didn't allow mars to initially access any of my directories.
So I just followed this very short tutorial on how to create a framework with Swift.
At one point, the author of the article does this:
This leads him to this:
When I try to do the same, nothing happens though (Finder is never opened). So I thought I could just manually navigate to the project's folder to find the .framework file. But it seems, that such a file is simply never generated:
And even after searching for SortedList.framework in Spotlight, nothing is found.
A noteworthy detail is also, that in Xcode, the 'Products' are shown in red:
Why is the .framework file not generating?
The framework is being generated, but it is located within Xcode's DerivedData directory where your project is built, not the directory where your framework's source files are located.
Your target's path is likely not correct, which is why the product's name appears in red, and Finder can't open a window to that directory.
The location for the framework should be ${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework, which (for the Debug configuration) would expand to:
~/Library/Developer/Xcode/DerivedData/SortedList-<random suffix>/Build/Products/Debug-iphoneos/SortedList.framework`
Update:
If you select the framework product, then look in the Utilities -> File Inspector pane, you should see that its name is SortedList.framework, its type is Framework, and its location is Relative to Build Products.
The full path shown below that should automatically correspond to the DerivedData location for the framework.
Here's an example of what a framework's File Location pane would look like.
I can't comment so I'm writing this here to build upon PetahChristian's excellent answer.
I had the same issue, my folder was listed in Xcode as:
/Users/jack/Library/Developer/Xcode/DerivedData/PDFManipulator-ggvfnlbpcgwblwdnvsnxweqnuvgc/Build/Products/Debug-iphoneos/PDFManipulatorTests.xctest
But in reality, it exists in:
/Users/jack/Library/Developer/Xcode/DerivedData/PDFManipulator-ggvfnlbpcgwblwdnvsnxweqnuvgc/Build/Products/Debug-iphonesimulator/PDFManipulatorTests.xctest
Notice that the last folder each is slightly different. I can rename reality to make it the same as the Xcode one which fixes the problem.
However, if I rebuild the project again the files are recreated in Debug-iphonesimulator. Not sure how to fix that.
So I have one Xcode project that I downloaded that comes with a ~.dylib file and a folder titled 'include' that comes with all the files for that library.
What I want to do is copy these files into another XCode project.
However I don't know how to get XCode to recognize the ~.dylib file. Right now XCode allows me to create instances of classes defined in this library but whenever I try to call any associated methods it says it can't find those methods and gives an error (presumably because the ~.dylib file is not linked properly.
Try this: Select your project file, choose your target, Build Settings, and search for "Library Search Paths", and add the path to your dylib file to it.
I'm not sure how to get it to index my project files.
Open Quickly should be searching any open projects. There used to be a Preference for paths but I believe it was removed with 3.1?!?
Is it possible that said header file is not on your project's include path? If you added your source folders to your project using the "Create Folder References" option, or if you are using an external build system, then Xcode's indexer will not be aware of that file.
If you had added folders with the "Create Folder References" option, then there would be some folder icons in your project's file list that are yellow instead of the usual blue. If this is the case, you might try removing those folder references and re-adding the folders with the "Recursively create groups" option.
If you are using an external build system (which I suspect is not the case, since this is an iPhone question), then you have to explicitly tell Xcode about your project's include path by setting the HEADER_SEARCH_PATHS option in the Build panel of your project's Info window.
Another possibility is that the file you are trying to Open Quickly might be in a Framework that you have not added to your project. If that is the case, adding the framework will fix it.
Since I installed 10.6, I have been able to use the open quickly dialog to open anything in my user search path.
I am not sure if this is because of Snow Leopard, Xcode 3.2, the re-install, etc…
Check after you upgrade.
I have a multi-project solution. I believe it is best practice to put all externally referenced assemblies (e.g. OSS stuff) in a folder that is on the relative path of the solution and it's component projects.
I'd like to create a real folder called Libs within the same Windows folder that contains my .sln file and add it to source control (Team System). I can't seem to figure out how to do this from the Solution Explorer. I can only do this from the Source Control Explorer. There does not appear to be a way to add this Libs Windows folder directly to the solution itself.
I see that you can create a "solution folder" -- but this does not correspond to a real windows folder and it apparently places the files within the top level solution folder.
I was wondering if there was a way to add the Libs folder to the solution so that it was apparent it was there and referenced by the component projects.
Here's my structure in TFS
Development/
Trunk/
Binaries/ -- Shared libraries
Source/
Test/
Docs/ -- Documentation
TeamBuildTypes/ -- Build definitions
You cannot do what you want directly in visual studio with the projects. The best thing you can do is create an external folder, plece the libraries in there, THEN add a solution folder and "Add Existing Item", and then select the libraries and click "Add As Link". It's actually hidden in the dropdown of the "Add" button. Click the little arrow and it will give you the option to "Add as Link".
I've typically seen third-part DLLs placed in a "ThirdParty" folder outside of any specific project in source control. Then in your project reference it from the "ThirdParty" folder and make sure Copy Local property of the reference is set to true.
Take a look at the Streamed Lines paper it suggests a number of structural patterns for dealing with third party dependencies
"Thanks Micah. The Add As Link option I think is new with VS2008. Alas, this is a VS2005 project and I don't see it. "
You can't use "Add as Link" within solution folders anyway.
For what is worth, we have a "PrecompiledLibraries" folder (what Micah called Binaries) outside the solution, and we reference there. If a new external lib changes, we simply place it in, relink, test and recompile. If everything is ok, commit and voila.