How to open a c project in source insight? - editor

Someone recommends me to use SI to read the c source of PHP ,a great open source project.
I've already downloaded the source.
But I don't know how to import it,can anyone help?

Open the Project menu and create a new project (or push Alt+Shift+N). In the upcoming dialog window, enter PHP as the project's name and select a folder to store the project data. Click OK to configure the project, e.g. activate storing function-local symbols in the project DB etc. Click OK again.
The next dialog lets you actually import files to the project. Select your source folder and click "Add Tree" to add the whole directory structure to the project. Click Close. You can now start browsing the source code.
Make sure you configure SourceInsight so that it knows where your local library folders are, i.e. the C headers & runtime. This is usually done when installing SourceInsight.

Related

Vivado: after Tools->Create-and-Package-New-IP what to do components.xml output?

Let's suppose you have a non-axi bus RTL core of verilog or vhdl files, and add them to your vivado project, and sucessfully compile the rtl source files using synthesis and taking care cancel and not run implementation stage.
Now I try to package all the verilog or vhdl into an vivado user IP using the vivado menu:
Tools->Create-and-Package-new-ip
Packaging Options: Package your current project using the project as source for creating a new IP definition
All it does is create a directory with a copy of all by verilog or vhdl source files in a directory with a "component.xml" file.
How to even use this component.xml file???
I create a new project... there's no where to even load the "component.xml" file into vivado so i can find the IP core in the IP integrator menu when making a block design??
I want to create IP cores have them nicely wrapped in separate vivado project, and then import them into a freash new project that contains only a block design. vivado seems to not like this flow... any ideas how to do this?
(I don't know... I just think there's something half-baked about the way this works in vivado...)
I just found out I need additional step for it to be seen in current project:
1. Goto Sources window
2. click Hierachy tab
3. select click IP-XACT->component.xml
4. double click IP-XACT->component.xml
5. scroll to bottom of "Package IP" window
6. click "Re-Package IP" button
7. Now it will show up under: IP Catalog->UserIP->corename
Still not sure how to get this to show up in a new project.
I found out how to import an already created components.xml into a clean project:
In vivado:
1. File->Open-IP-XACT
2. Select components.xml
3. This will open Package IP directory
4. In this window under "Review and Package" scroll to bottom
of Review and package window and click "Package-IP"
Now it will show up under: IP Catalog->UserIP->corename
One would think this would show up under the "+" button for adding "things" to your project... but no... its under File->OPEN-IP-XACT menu.

How to Integrate Kal Calendar?

I am fairly new to iOS development, and have a project in mind that would benefit from a third-party calendar interface. However, I'm having trouble just getting started. Feeling a little disappointed as well because I have searched high and low and it seems everyone is capable of integrating Kal Calendar itself, and that is where I am stuck.
I have downloaded the .zip source here and am trying to follow the steps. The first three are as follows:
Clone the Kal git repository: git clone git://github.com/klazuka/Kal.git. Make sure you store the repository in a permanent place because Xcode will need to reference the files every time you compile your project.
Locate the "Kal.xcodeproj" file under Kal/src/. Drag Kal.xcodeproj and drop it onto the root of your Xcode project's "Groups and Files" sidebar. A dialog will appear -- make sure "Copy items" is unchecked and "Reference Type" is "Relative to Project" before clicking "Add".
Now you need to link the Kal static library to your project. Select the Kal.xcodeproj file that you just added to the sidebar. Under the "Details" table, you will see libKal.a. Check the checkbox on the far right for this file. This will tell Xcode to link against Kal when building your app.
I have dragged the Kal.xcodeproj file from Finder into the root of my project in the Project Navigator as seen in this image:
Is this the correct place to drop the Kal.xcodeproj file? I was not presented with a dialog upon doing so. What is the "Groups and Files" sidebar? Upon selecting the Kal.xcodeproj file from where I have placed it, I cannot find a "Details" table where a libKal.a file is located.
Again, my apologies as I am fairly new to iOS dev, and I completely understand that these could be the most amateur questions out there. If anyone can point me in the right direction it would be greatly appreciated. Just looking for some help getting started so I can finally begin my project.
By the way, I'm using Xcode 6.
Thanks in advance!

Should Facebook ios sdk's static library appear inside Xcode Project?

I'm currently doing facebook integration and have gone through this tutorial. So far, I've done everything until step #2.
To test the single sign - on, I decided to implement it in Paul Heggarty's Photomania project. To do this, as said by the tutorial linked above, I should clone the git hub repository (under step 2). I've done this by copy and pasting git clone git://github.com/facebook/facebook-ios-sdk.git
on my Terminal and it works fine. I can locate where the facebook-ios-sdk folder is in. Great, so I dragged the folder to the Photomania project.
Also stated in the tutorial that I should make a static library for the facebook-ios-sdk if I enabled Automatic Reference Counting for the App (Photomania). Which is what I did after discovering through streaming back to the Core Data Demo video that Photomania actually enabled ARC. So now, I did the static library by copy and pasting this ~/facebook-ios-sdk/scripts/build_facebook_ios_sdk_static_lib.sh to my Terminal. Upon doing so, it actually created the new library.
However, I can't see the lib folder inside facebook-ios-sdk (already copied in the Photomania). Even though through Finder I can locate the project Photomania, see the facebook-ios-sdk's lib folder in it with the Static library.
Enlighten me please.
You see, Xcode and the finder have completely independent file systems (assuming you are not checking the "copy files (if needed)" option). When you drag a file from the finder to an Xcode project, they are copied and placed under the "Copy Bundle Resources" tab, while still retaining the general file-structure that you dragged inside the Xcode file tree. So therefore, updates to finder files necessitate the new file(s) being dragged into the Xcode file tree. Simple as that.

XCode - Workspaces

i'm developing a framework and i would like to know if there is a method for share the code across multiple project. Example : i have my workspace with my framework project and a test application project for the fw; then, i have another project of an app and i need to use the framework, but i want to link the framework so that when i modify the original code in workspace even the code in the project is updated without import every time the .framework file.
Is it possible?
If not, how can i do to share code across projects?
Thanks
Yes, this can easily be done by importing files from the other project. You could create a group called external, right click and choose "add files". Make sure the option "copy items into destination group`s folder" is unchecked.
If you now change the files in the other project, the changes will be reflected in the dependent one.

XMPPFramework: trying to #import XMPP.h gives a "no such file or directory" error

Does anyone know how to set up the XMPPFramework for iphone?
I can't seem to figure this out despite the wikis, and the wikis look out of date.
My project compiles fine, but once I actually try to reference any of the framework's classes, I get a no such file or directory error when trying to build the project.
I have no idea what is wrong despite using a bare bones project to reduce any sources of error. I'm using Xcode 4.2
Appreciate any pointers.
Thanks!
Make sure that you DID NOT just drag and drop the XMPPFramework files into your project. Notice in the XMPPFramework wiki is says to copy the files into your project folder, and then add the files into your project. So, if your XCode project is called XMPPTest, there will be an XMPPTest folder wherever you created your project, as in /Users/johndoe/XMPPTest. Taking step 2 for example, you need to press the "option" key and drag the folder titled "CocoaLumberjack" into /Users/johndoe/XMPPTest. THEN you can drag the "CocoaLumberjack" folder inside /Users/johndoe/XMPPTest into your actual XCode project. When you do, you should be sure to check the box "Copy items into destination's group folder (if needed) and select the radio button "Create folder references for any added folders". You should make sure that the checkboxes inside the "Add to targets" box are checked.
There is no XMPPH.h file in XMPPFramework. You should include XMPP.h instead

Resources