How to build full Core-Plot with iphone project? - iphone

Currently I completed my project using with CorePlot. But I have
problem, when I copy my project to another folder, prepare to build
before distribution, I have one problem:
CorePlot-CocoaTouch.h: No such file or directory
I did my project import Core-Plot like the way with this link:
http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone...
I knew that my project just reference to Core-Plot library, so when I
copy my project to another folder. The reference is broken. Can anyone
tell me how can I import CorePlot with my project, so that I can copy
my project and run anywhere?
Any help will be appreciated.
Thank you.

Try to set the reference type (drop-down-list that appears when you try to link to the .h file - or any other file) to "Absolute path".
EDIT:
Notice that this way if you will copy the project to another computer then you will have problem again.
I have one "Projects" folder where all my projects are stored and all the external libraries that I might use in several projects are located in one "External Libraries" folder. This way I never have this problem...
I use "Default" reference type, which is relative and not absolute...

Related

How do I use the 2d-extras zip-file in my project? (or any other external unity download for that matter)

Sorry, I know this is probably a dumb question, but I can't figure out how to import and use the 2d-extras scripts in my project. I want to use the Rule and Animated tiles but all the tutorials I'm following seem to be for an older version of Unity. I'm using 2019.3.8f1 and all the tutorials say to just unzip and drag what I want into my assets folder but doing that doesn't seem to work. Any help would be greatly appreciated! Thank you
I figured out! I was right, it was a stupid question. It's literally in the readme. If anyone else is wondering, all you have to do is put the folder inside of the Project/packages folder and then copy the line -- "com.unity.2d.tilemap.extras": "https://github.com/Unity-Technologies/2d-extras.git#master" into the manifest.json -- under dependencies which is also in the packages folder.
there is another way to do that, After downloading the repository from github, you can create a "com.unity.2d.tilemap.extras" folder in the "Packages" file of the project you are working with and copy all the files in the zip you downloaded from github to this "com.unity.2d.tilemap.extras" folder. When you restart your project, you can define the ruletile and animated tiles as you want.

eclipse build path not including top folders

I have my eclipse project setup as follows. As you can see I have 'gamedata', 'images', and 'sounds' folders set in my buildpath as libraries.
Here is the folder structure of my project.
I have been work on this client server game for quite some time now in eclipse and all is well. I wanted to try to 'export' this as an 'executable jar' file. I did that and when I went to run it, I got an error loading an image. I then extracted the contents of that jar file to see why it was missing and realized that the 'gamedata', 'images', and 'sounds' folders are all not there, rather their subfolders/contents are at the top level.
This is the extracted folder below where you can see the missing top level folders.
Can anyone help me out here? Sorry if this is a stupid question but I have tried so many things in the build path and admittedly do not have much familiarity with it. I have tried to look online for proper project setups(I remember using a res folder in programming classes way back) and would appreciate any guidance on best practices as far as folder naming is concerned.
Thanks for any help here.
You need to declare images and gamedata under a "resources" folder, as in this question
Right-click your project, new, Resource Folder.
Add the path you want (images and gamedata).
Then select the option "Export Java source files and resources" when creating your jar executable.

How to get the bin folder in eclipse

I am searching for the bin folder in eclipse, but I am not able to find it.
I tried this following post, but I am not successful. Please can anyone help me?
what can I do to make display the bin folder on eclipse?
The reason why I am looking for bin folder is, I want to place some .dll files in it. Is there another way of incorporating .dll files? Any help is appreciated
You should not put any data in the bin directory. It gets deleted if you do a Project -> Clean. Instead you should put your libraries in a lib folder. I don't know how you are actually using your dll, but you can surely point to another directory.
If you are trying to include this dll only for development purposes, you can use LD_LIBRARY_PATH and include the path for your dlls. I did this in the past with eclipse. There are a location in the CDT eclipse project where you can include this.
If you are speaking about a java aplication that needs a dll, you can add the library in the project also like this http://www.dreamincode.net/forums/topic/96304-how-to-add-dll-files-in-javalibrarypath/, but I haven't done it never.

three20 build issues

I am having issues with building my project with three20. I previously had three20 folder outside of my project folder, then I decided to clone another three20 inside my folder and then re-run the script again. However now when I tried to do import "Three20/Three20.h" it constantly says there's no such file or directory. What should I do here?
This may have changed, but I recall with my last Three20/xcode4 experience that you have to change the build directory settings for xcode4 for it work.
In Xcode preferences, go to the locations tab and change the dropdown for build location to "...locations specified by targets"
As I understand it Three20 expects the build directory to be in the same place it was using Xcode3. No promises, but give it a try.

How To Manually Add Project To Eclipse Without Using Eclipse

I'd like to manually create the folders/files on the file system that create a new project in a workspace in eclipse, and show up in the Project Explorer when eclipse is started and the workspace is selected.
What files would need to be created to do this and where would they need to be?
Please understand that I do not want to open eclipse and make a new project using eclipse. I want to make a new project without using eclipse.
I think you will need to do the following
create a .project file and whatever other files needed by your specific type of project (for example java projects need .classpath) in the project folder, you can find out what you need by looking at those files for another project.
In your workspace .metadata folder, this is where eclipse keeps information about the current workspace, I think the plugin responsible for project definition is .metadata/.plugins/org.eclipse.core.resources , you will need to create those files yourself, some of them are binary, so you will need to open up the source of that plugin to see exactly how it writes them. Depending on your project, you will need to write more .metadata plugin information (for maven for example).
There is no easy way of doing this. Each new project modifies many scattered files throughout the eclipse structure (if you want a list, make a new project and find files created/modified most recently, and/or search for the project name.)
Short of writing the files by hand, there's not much you can do. I found these links in my reseach, but they're both pretty old and seem to be dead ends:
http://www.eclipsezone.com/eclipse/forums/t107019.html
http://dev.eclipse.org/newslists/news.eclipse.tools/msg36546.html
Based on the answers of #shipmaster I think this will work.
Go the workspace and create a new folder as your new required project name.
Copy the contents like .project, .classpath, .includepath etc from any existing project and modify the same like project name, source folder, build folder etc in .project. Do the similar changes in .classpath etc as per the new project requirements.
Unfortunately this is not enough to create a project by just doing eclipse restart so we need to do an import project and point it to this folder and we are ready to use the same now and we see the new project created in eclipse!
try archiving the file .. right click on project ---> export --->archive file(in General section) ..after you archive it as a zip you can import it after.
IF you want to manually copy a pre-existing project to a new workspace,
I have a solution for you:
Copy the project folder.
Paste it into the new work space.
File > Import > General > Existing Project Into Workspace
Eclipse will now see the project you cut+pasted manually.
Why I am doing this:
I am doing this so I can build upon my scrum stories while keeping documentation via working files that each successive step was built upon.
E.g. Story #2 is built upon story#1 code. But I don't want to version them because I want to be able to open them up one after another to do a presentation on my work flow.