I have a C++ app/project under Linux Eclipse. I started porting to Mac OS X. I use 4 cross-platform C/C++ libraries such as OpenCV, OpenAL Boost etc.
First I installed C++ and Eclipse for Mac. When I opened the project in eclipse it did not find any of my Linux includes. When I opened the code in xcode it solved some - for example OpenAL.
Where does Xcode look for libraries and headers?
Off the top of my head I'd say try the following locations:
/System/Library/Frameworks
/System/Library/CoreServices
/Developer/SDKs
Probably in the first option.
For Xcode 6.4 and the OSX 10.10 SDK, look here:
/Applications/Xcode/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks
Then expand the OpenAL.framework and double click on the Headers folder.
Related
I'm trying to work on a project that uses C++, SDL2 (libsdl2), and SDL2_mixer (libsdl2-mixer) libraries.
I already downloaded and installed the Eclipse Luna CDT from the marketplace and successfully opened the project. However, how do I install the other two libraries? I have them downloaded but am unsure on where to begin. Thank you!
I'm using a Windows 7 laptop with Eclipse Luna and the project is a cloned repository from Github.
This tutorial covers setting up an SDL 2.0 project in Eclipse on Windows. It isn't the same Eclipse release but it should be almost if not exactly the same process.
http://zamma.co.uk/setup-sdl2-eclipse-windows/
The extra library, SDL2_mixer, should be installed in the same location as the SDL2 and linked in the same way.
Also, make sure to have any dll's in the runtime exe directory for both SDL2 and any additional SDL libraries.
In my professional computer, I have minGW 4.5.2 installed. Eclipse CDT works perfectly with it.
But I want to test some C++11 features. So I copied my minGW 4.8.x folder from my personal PC.
My problem is that eclipse uses libraries from the old minGW (witch is the PATH).
I'd want to set eclipse up to use the new version of minGW.
I know how to change the g++ used for compiling/linking but not the include libraries.
Any idea ?
Thanks a lot.
PS : I can't change the PATH in my professional computer. I run Windows 7
You can try creating a batch file the following code, assuming the MinGW you want to use is in C:\MinGW :
set PATH=C:\MinGW\bin;%PATH%
start eclipse.exe
I'm trying to use the Stanford CS106B C++ libraries, like simpio.h and genlib.h. I'm using XCode 4 (this is a beta version btw) and Mac OS X 10.6. I installed the libraries, but they don't seem to be showing up when I try to create a new project in XCode. Is there something different I should be doing with XCode 4 to get these libraries in?
There's probably a pretty basic solution to this problem, and if it were just a matter of frameworks in iOS, I could definitely get that to work with this version of XCode, but I've not really done this with C++ and XCode before, so I'm stuck.
Update on 7/20/11
I found a link to download the Xcode 2.5 tools as well as Xcode 3.0, both of which are described in the handout. I'm downloading both of them now. Does anyone know if Xcode 3.0 and 4.2 will run fine on the same machine?
Yes, multiple versions of Xcode work fine together. During the install, after the "Select a Destination" screen, you see a screen with the packages that will be installed. Click "Developer" folder to change to a custom location for each different Xcode version. The other tools (system and UNIX) cannot be moved.
After you have Xcode installed, just install your libraries in the usr/lib folder under your custom Xcode folder, and you should be good to go.
I installed Eclipse for C/C++ Developers.
After installing it I also installed PyDev.
I managed to create a C++ project (The Hello World project that comes with it). But I cannot compile/run it.
When I created the project there was nothing in the toolchain list. So I think I will need to install a toolchain. But I cannot find anything. I need someone to help me with this please.
I am using 64 bit Windows 7.
No compiler, no executable.
Check MinGW
This is one of the first results i got in google for eclipse and mingw:
http://max.berger.name/howto/cdt/cdt.jsp
You need to install not only Eclipse CDT, but also a C/C++ compiler for Windows, like minGW.
Try installing TDM-GCC from http://tdm-gcc.tdragon.net/ . This should have you up and going with a compatible GCC setup under Windows in a snap.
I have installed Xcode 4.0 (XCode Toolset, System Tools and Documentation components only), but have Netbeans with the C/C++ plugin. However when I try to create a new C++ project in Netbeans it tells me that no compiler was found on my system. The recommended course of action is to install Xcode, which I have done so.
How do I get Netbeans to recognize that I already have Xcode?
Most likely, you reinstall Xcode and this time don't uncheck the option that installs the compiler, etc. under /usr/bin for command line use. What's wrong with just having a full installation of Xcode?
If that doesn't work, it may be an incompatibility due to Xcode 4 installing to /Xcode4 instead of /Developer. You can fix that with a symlink or by installing Xcode 3.