Using GLWF3 in command line mode on MAC OS X 10.10

Source: Internet
Author: User

GLWF3 's introduction please visit its official website: http://www.glfw.org/docs/latest/index.html

According to its official website installation introduction, use CMake to install from the source code GLWF3

Building applications with GLWF3 can see HTTP://WWW.GLFW.ORG/DOCS/LATEST/BUILD.HTML#BUILD_LINK_OSX

But the method it gives to use the command-line mode on Mac OS X is incomplete and can cause many errors, such as:

Undefined Symbols for Architecture x86_64:  ' _lmgetkbdtype ', referenced from:      __glfwplatformgetkeyname in LIBGLFW3.A (COCOA_WINDOW.M.O)  "_tiscopycurrentkeyboardlayoutinputsource", referenced from:      __ Glfwplatforminit in libglfw3.a (COCOA_INIT.M.O)  "_tisgetinputsourceproperty", referenced from:      __ Glfwplatforminit in libglfw3.a (COCOA_INIT.M.O)  "_ktispropertyunicodekeylayoutdata", referenced from:      __  Glfwplatforminit in libglfw3.a (COCOA_INIT.M.O) Ld:symbol (s) not found for architecture X86_64collect2:error:ld returned 1 Exit Statusmake: * * * [myapplicationname] Error 1

The exact compilation commands are:

Cc-o Myprog myprog.c-lglfw3-framework carbon-framework cocoa-framework opengl-framework iokit-framework CoreFoundat Ion-framework Corevideo

The cc above is either defined in the environment variable or replaced with Gcc-mp-x.

Using GLWF3 in command line mode on Mac OS X 10.10

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.