How to install external library in Xcode 4? - c++

I am thinking of completing the free online course provided by Stanford on C++ and data abstractions. They have provided a C++ library with the necessary functionality required for the course.
I am trying to install the library which is called CS106LibrariesForXcode.pkg. I have done exactly what they have mentioned in the handout. You can find the handout here.
I am using X-Code 4.3.1. Nothing happens even after I install the CS106LibrariesForXcode.pkg. Is it because of the version of Xcode I am using? How do I get it work?

You need to install XCode 3.0 in order to use CS106LibrariesForXcode.pkg library.
XCode 4 have a very different UI and functionality compared to XCode 3. So it would be unwise to study XCode 3 only. But if you're going to study C++ using those tutorials you'd probably want to install XCode 3 and use it.

Related

Can I add Swift 3 in Xcode11?

I am using some Cocoapods packages that works well in Swift 3.2. If I changed those packages I need to do lot of code editing which will consume lot of time and effort. Is there any ways to add Swift 3 to Xcode 11?
I doubt you can ADD a Swift version. I.e. use 5.1 for your code and 3.1 for libraries. AFAIK, all binaries have to be built using the same compiler.
Technically, you can CHANGE the toolchain. This article illustrates how (not sure if nowadays 3.1 is stretching this though):
Medium Blog about Xcode toolchains
However, I doubt that you can submit apps built with 3.1 to the AppStore.
I also wonder if you really even want to try to buy into this. If you use Swift 3.1 you may need to make sure to bundle the runtime with your app. Since one of the more recent evolutions of iOS, the Swift runtime is not packaged with apps anymore, but relies on the OS runtime.
Good luck on this endeavor. Really want to kick all the Swift 5.x goodies? ;)

Stanford cs106b C++ library in XCode 8

I am right now trying to solve the exercises of the free cs106b class, but cannot succeed to setup the needed libraries. I am new to C++ and not that experienced in XCode. I tried to to directly copy the library files I found on [Github] into my XCode project. I tried now for hours to get this package working but it seems they have to be installed in a special way.
I would be glad if somebody could give me some references on how to install a C++ library in XCode, especially the library given by Stanford.
P.S. with the "old" class I was given an .pkg installer, which I installed but did not seem to change anything.
I cannot help much with the XCode IDE. I have personally completed the course myself; however I used QT creator. The CS106B or CS106X official website (version 2016) provides very good documentation about how someone can go about and get started. http://web.stanford.edu/class/cs106b//handouts/qt-creator.html
A point to note: I used the SEE CS106B videos (the online cs106B) to complete the 2016 CS106X course. Please have a look around for the assignment files, in the official cs106B/cs106X website. In case you cannot find it, let me know, I can send it to you. I hope this helps.

Upgrade OpenCV project to latest version

I have a C++ logo detection project which uses OpenCV 2.3.1. I need to upgrade this project to OpenCV 3.0. For example instead of using (I actually mean replacing) IplImage I would like to use cv::Mat. I know that everything will not be automatically upgraded without some manual coding.
Question: I would like to know if there is any way to at least do some of the work automatically, by using a software or third party library.
I recently had to upgrade an old OpenCV project to make use of some extra features offered in 2.4.* versions (coming from version 2.2). There is no tool or library that will help you detect what you need to change. I had to upgrade and then fix certain parts of my code that used functions that had changed slightly.
A really neat resource you can use is this: API changes/compatibility report for the OpenCV library
It allows you to check the backward compatibility % between versions and see the main changes introduced in each library version. So you can use this to fix every conflict you see once you update the library to the version you want.

Eclipse CDT documentation on C++ autocomplete

I was trying to set up my development environment on Eclipse CDT for C++ and although the auto-complete is working (it finds classes like vector and such) it shows no documentation on C++ stuff, only C stuff (fopen, fclose, malloc) has documentation appearing on the auto-complete.
Some notes:
I'm using Linux Mint and Eclipse Kepler Service Release 1 Build id: 20130919-0819
I had to manually install g++ on my Linux. I used 'sudo apt-get install g++-4.7' to install it
I had to manually place "/usr/include/c++/4.7.3/" on the GCC C++ Compiler Includes in the Tool Settings in the project properties to get it to compile.
Any ideas on how to get the documentation in there?
The help on C is provided by Libhover plugin. The developers tried to support C++ but seems these efforts did not get much traction.
C++ hover is actually installed by default in CDT. If not, you can install it manually (at CDT site look for "Plugins for C/C++ library hover help." and "Plugins for creating hover help from installed C devhelp documentation").
However, it is not enough. To get hovering help similar to C documentation you have to generate Doxygen XML for your library, e.g. for STL. Details are provided in hover documentation

how to install the VOGLE graphic library in windows

I found the VOGLE library described in C.Pozrikidis' book "introduction to C++ programming and graphics"
http://home.comcast.net/~urbanjost/CLONE/LIBS/LIBRARY/libvogle/html/index.html
http://www.autochthonous.org/eric/
Since I am a beginner, can anyone tell me if it is possible to use it in windows ?
Anyone else using it ?
You don't need to (cannot) install the library. You can however extract the pre-compiled version of the library from here. Download the tar.gz file under CYGWIN section. You should be able to link them to your Windows project and use them.