I am running Mac OSX 10.9.2 natively and tried to run the following C# code: http://pastebin.com/b6GpxjuL
I am using Xamarin Studio with OpenTK to compile the code, but as soon as I start it, I am getting these errors in the console:
[0:]
[0:] ERROR: 0:2: '' : version '410' is not supported
ERROR: 0:4: 'layout' : syntax error syntax error
[0:]
[0:] ERROR: 0:2: '' : version '410' is not supported
I already tried different versions for the shaders, but I am always getting the error "version XXX is not supported".
A render window with a triangle shows up nevertheless, though without the shaders compiled it's not displayed correctly.
I already checked Apple's compatibility list and my machine supports version 4.1 (GeForce 650): https://developer.apple.com/graphicsimaging/opengl/capabilities/
Does anyone know what's wrong?
OpenTK 1.1 is using Carbon, which does not support OpenGL > 2.1. For OpenGL 3.x/4.x you have two options:
enable the SDL2 backend by copying libSDL2.dylib from opentk/Dependencies/x86 to your application directory
compile the latest development version from github
OpenTK 1.1.2 will support OpenGL 3.x/4.x out of the box. This will be officially released in a few days.
I have similar code but use the 'GraphicsContextFlags.ForwardCompatible' which works, along with GraphicsMode.Default. I found that glGetString(GL_VERSION) gave me 4.1 and if I used any context other than this (even say 4.0) it didn’t work.
What does glGetString(GL_VERSION) and glGetString(GL_SHADING_LANGUAGE_VERSION) say? Actually you should use the GLSL version which the last call will tell you.
Related
I installed SOIL on my Mac (BigSur) in the normal way with make and make install. When I do cmake . to my OpenGL Project, everything is ok and SOIL is found. But when i do make, i get following warning/error: ld: warning: ignoring file /usr/local/lib/libSOIL.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64.
I tried everything i found on the internet. I also included -m64 in the Makefile.
Does somebody know to solve this issue?
libSOIL uses the Carbon API (see here). The Carbon API has been deprecated with Montain Lion and removed with Catalina. I have removed libSOIL from a project for this reason, it is unlikely you can get it to work without rewriting some of its code.
A possible replacement would be libSDL along with SDL_image. These libs are much more heavy-weight, but can be used while still doing raw OpenGL rendering and ignoring the SDL rendering API.
You can use SOIL2 replace libSOIL, see SOIL2 for more.
I'm on macOS 10.13.3 and I created a new fresh macOS project with Xcode(9.2). Without any custom code I changed the Base SDK from 10.13 (wich is default) to 10.12 in the Build Settings of the target. When I build it I get this error: <unknown>:0: error: Swift does not support the SDK 'MacOSX10.12.sdk'. I also changed the version (Base SDK) to 10.2 for macOS Deployment Target. I also changed the two locations for the Project Settings. But it does not compile. I always get this error. I can't imagine that swift is not backward compatible. Even to change the swift version from 4 to 3.2 has no effect. Is there really no way to compile this new fresh project for SDK 10.12 or even 10.10? Any help is highly appreciated.
What I did before:
To be able to change the version of the BaseSDK within Xcode,
I downloaded the SDK's from here: https://github.com/phracker/MacOSX-SDKs. I edited the info.plist file in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer There I deleted this two lines of code:
<key>MinimumSDKVersion</key>
<string>10.11</string>
After upgrading from Xcode 8.1 to 8.2 my project began receiving three errors that I'm unable to resolve.
When I first brought up the project in 8.2, Xcode insisted on converting to Swift 3.0, even though my project had already been converted to Swift 3.0 when I began using 8.1. The "Use Legacy Swift Language Version" had already been set to "No". This automatic conversion done by 8.2 did not result in any actual changes.
One error is for the <projectname>Tests.swift file, which was generated by Xcode. Xcode 8.2 is giving a "No such module" error for the line "#testable import <projectname>".
Another error is "Command /usr/bin/ditto failed with exit code 1", but I think that's because the source file is missing that it expects to find in Xcode's derived data directory.
And another error is a "Check dependencies" error that provides the message:
"Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly."
But it's already configured correctly, and the conversion has already been done.
I reinstalled 8.1 thinking it would solve the problem, but even a fresh checkout in a new directory received the same errors. I now have both 8.1 and 8.2 installed.
This is a bug in Xcode 8.2. Had a working project and simple flipped the targets Swift Language from "No" to "Yes" and back to "No". The easiest way I found was to check all targets by searching for "Swift Language" in the build settings window .
Radar filed : 29756976
I am trying to compile code from previous version of opencv but I am getting a compiler error. The problem seems like the LatentSvmDetector is no longer available in 3.0. is this true or is there a special way to include it and compile it for opencv 3.0
thanks,
Jack
I think V3 has renamed it to DPMDetector.
See here
I just upgraded to Xcode 5. I began a new Cocos2d project and when I open just the basic initial program and run, I get the "cannot run on this device" (any of the simulators) and "choose a destination with supported architecture ..."
When I go into Build Settings I see the compiler for C++ is unsupported. I change it to Default complier (Apple LLVM 5.0) and it seems to run, but I get 73 errors - and I have not even attempted to program anything yet.
Most are deprecation errors, but many are not.
Is there something else I should change? Or is there an issue using cocos2d with Xcode 5.
I never had this previously - just a few deprecated files.