Code Monkey home page Code Monkey logo

examples's Introduction

Example code for SwiftGL

SwiftGL Home Page

MacOS:

brew install --HEAD glfw3

swift build -Xswiftc -I/usr/local/include -Xlinker -L/usr/local/lib

Ubuntu:

sudo apt install libglfw3

swift build

examples's People

Contributors

ae9rb avatar jkolb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

examples's Issues

symbol(s) not found for architecture x86_64

If you find yourself stuck at
"_OBJC_CLASS_$_NSMenuItem", referenced from: objc-class-ref in libglfw3.a(cocoa_window.m.o) "_OBJC_CLASS_$_NSOpenGLContext", referenced from: objc-class-ref in libglfw3.a(nsgl_context.m.o) "_OBJC_CLASS_$_NSOpenGLPixelFormat", referenced from: objc-class-ref in libglfw3.a(nsgl_context.m.o) "_OBJC_CLASS_$_NSPasteboard", referenced from: objc-class-ref in libglfw3.a(cocoa_window.m.o) "_OBJC_CLASS_$_NSTrackingArea", referenced from: objc-class-ref in libglfw3.a(cocoa_window.m.o) "_OBJC_CLASS_$_NSView", referenced from: _OBJC_CLASS_$_GLFWContentView in libglfw3.a(cocoa_window.m.o) "_OBJC_CLASS_$_NSWindow", referenced from: _OBJC_CLASS_$_GLFWWindow in libglfw3.a(cocoa_window.m.o) "_OBJC_METACLASS_$_NSApplication", referenced from: _OBJC_METACLASS_$_GLFWApplication in libglfw3.a(cocoa_window.m.o) "_OBJC_METACLASS_$_NSView", referenced from: _OBJC_METACLASS_$_GLFWContentView in libglfw3.a(cocoa_window.m.o) "_OBJC_METACLASS_$_NSWindow", referenced from: _OBJC_METACLASS_$_GLFWWindow in libglfw3.a(cocoa_window.m.o)

While doing swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib

Don't forget to
import Cocoa
at your main.swift

Can't install dependencies Linux

I am trying to build the examples, but I get this error when running swift build:

Updating https://github.com/SwiftGL/Math.git
Updating https://github.com/SwiftGL/OpenGL.git
Updating https://github.com/SwiftGL/Image.git
Updating https://github.com/SwiftGL/CGLFW3.git
error: the package dependency graph could not be resolved; unable to find any available tag for the following requirements:
    https://github.com/SwiftGL/CGLFW3.git @ 2.0.0..<3.0.0

Any help would be great!

Swift Package Manager - Swift 5.1.0 (331fa5cb)

Unable to build Hello Window due to package manager weirdness

I cannot get the package manager to work, even when I used the version of the package.swift posted in the swiftGL/examples it throws a whole bunch of errors about arguments being in the wrong order. Even when I put them in the right order the compiler throws this error:

error: manifest parse error(s): /Users/Isaac/Desktop/OpenGL/Hello Window/Package.swift:10:10: error: type 'Target' has no member 'target' .target(name: "example", dependencies: ["SGLMath", "SGLImage", "SGLOpenGL"], path: "."), ~^

I am using this swift version:
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9

I have never used the swift package manager so any help would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.