I'm struggling with SDL2 installation on Xcode 6 - c

I'm working on a little project and I'm trying to use SDL2 library! I installed the SDL2.framework successfully in my library/framework folder. Then when I tried to link my headers and my framework in Xcode by adding the Library/Framework path for the framework and /Library/Framework/SDL2.framework/Headers for the headers in my app settings! Then I include
. #include
Afterward when I run the program there is an error but not about the fact it doesn't find headers.
Do you guys have a few tips about this?
Thank you
PS : sorry for the eventual English mistake
edit: i finally manage to run the program (i forgot to link binary) but now Xcode shut down right after it

I finally could install it for those who are struggling with this !
1. Download SDL2 source code on the website.
2. Compile the framework and copy SDL2.framework in the Library/Framework directory.
3. Create a classic Xcode project in C. In build settings. Then in Build Phases add SDL2.framework in the "Link binary with libraries" Indicate for the headers search paths : Library/Frameworks/SDL2.framework/Headers and Library/Frameworks for the framework search paths.
Hope this can help some of you.
Thank you all for the help !

try the following tutorial to see if it helps - http://zamma.co.uk/setup-sdl2-in-xcode-osx/

Related

ESP-IDF missing driver using an ESP-32

I'm trying to build a project with an ESP-32 but when i'm trying to build the project it came with this error
" fatal error: driver/i2c.h: No such file or directory 21 | #include
"driver/i2c.h" "
I'm using a tutorial to flash my esp-32 : https://github.com/mjuhanne/fyrtur-esp in the "sdk" part the author show how to build it and my error came when i tried to do "idf.py app"
anybody has an idea ?
thanks :)
I search on internet to install a librairy or anything else but i don't find it, I'm new with esp-32
I have similar include problems when I was using ESP-IDF v.5 with some older projects, some of the modules were changed. Moreover, the drivers used by the project are likely to be older as well.
Possible solutions:
I believe it would help to try downgrading the ESP-IDF you're using to the version used in the project, v.4.4.3 should be alright.
I hope this helps, good luck!

Eclipse: Cant finish creating new C Project

Hello dear Eclipse developer,
I am already pretty desperate about figuring out the following problem, and maybe you can be part of the solution.
So heres the Context:
I want to develop an application for a Nucleo STM32F401RE Microprocessor Developmentboard.
To do so i need to set up the Eclipse Oxygen 3 IDE for my Windows XP x86 OS as descriped in this guide:
https://www.carminenoviello.com/2014/12/28/setting-gcceclipse-toolchain-stm32nucleo-part-1/
In short:
Install Eclipse Oxygen 3
Install C/C++ Development Tools
Install the GNU ARM plug-ins for Eclipse
Install the GCC ARM tool-chain
Install the Build Tools
Install the ST Link drivers for STM32Nucleo board
Every Step worked as expected and as descriped in the guide so far.
The next step is creating a test project, so I followed the project creation wizard for c/c++ projects in eclipse, which worked fine as well until i reached the very last step of the project creation wizard.
The last step wants me to select the path to the used Cross GNU ARM Toolchain which has already been installed in previous steps of the guide.
So i filled up the form fields, but the "Finish" and the "Next" Button stays greyed out! The "Back" Button is not working as well, so i literally cant do anything in this dialog field anymore, but cancel the project creating.
Someone went through this before and has an idea what the problem is and how to fix it?
Is it a bugg in eclipse?
Did i do something wrong ?
I've taken an Image to show what the problem is:
Thanks for your attention, dear developer. Good answers will make me a fan of yours.
UPDATE
Starting Eclipse with the errorlog console brought the following error when starting the project creation Wizard:
Managed Build system manifest file error: Duplicate identifier ilg.gnuarmeclipse.managedBuild.cross.toolchain.lib.release for element type ToolChain
This is the first time i get in touch with eclipse.
Can someone explain what this means and how to get rid of it?
I'm using Eclipse Photon and tried the installation through marketplace and manual installation of versions 4.4.1 and 4.3.3 but I'm still experiencing the same issue than you.
The solution was to uninstall Eclipse Photon and install Eclipse Oxygen 3a. Now the project creation works properly.
Regards.
I had the same experience for my first eclipse project. After checking the installation of plugins in the Eclipse IDE, I found there are two versions of GNU MCU C/C++ (...) installed. The problem solved by uninstalling one of them. Hopes that could help someone later. I spend the whole day to solve the problem! lol
Uninstalling GNU MCU does the trick and soled the issue.

how to install opencv2.4.6 using cmake

can anyone tell me how to install opencv2.4.6 using cmake, I found several tutorials but I can't find the common folder in c:\opencv\build_common_ ** to past the **tbb41_20130613oss folder any idea can I do that.
thanks in advance
You need to build the library, and then execute target install.
When using make it will be
make
make install
On visual studio You need to select the targets manually (I think).
I found this tutorial and it works now, if anybody needs this here is the link:
http://4someonehelp.blogspot.in/2013/06/solved-install-opencv-245-using-visual.html

Integrating Tapku Library to XCode 4.6 project

Its been a long since I am struggling integrating the Tapku Library in my Xcode project. I want to implement the Day View component from Tapku into my project. I followed the instructions from read-me on github but had no success. I am getting following error, "Apple Compiler LLVM Error" when I add the files to my project. Anyone who has successfully integrated the same please help.
I solved this issue by using Finder (before opening xCode) copy the src folder to my projects directory.
So my project structure is MyProject/Frameworks/src
For the rest of the steps just follow the guide on Tapku's GitHub page.
Only add the 2 TapkuLibrary.xcodeproj and src/TapkuLibrary.bundle files
Select the Build Phases
Link Binary With Libraries
For the Header Search Path you can use $(SRCROOT)/Frameworks/src remember to use non-recursive option
And for Other Linker Flags add -ObjC
Hope this helps

Using GTK+ And Xcode4

So I've installed GTK-OSX from http://gtk-osx.sourceforge.net/
I've added my /location-to-GTK/lib directory to Xcode's header search path. But exactly which library files do I add to my Xcode project? There are about ~100 of them and I don't think need to add all of them.
Can anyone with GTK-OSX experience assist me?

Resources