Code Monkey home page Code Monkey logo

Comments (4)

conniefry avatar conniefry commented on July 26, 2024

@jmgasper There is a known issue when trying to build with the XCode projects, so try just using the straight cmake build instructions. (We need to get the XCode build fixed, but haven't gotten it done yet.) . Let me know if that works okay for you.

from pxcore2.

jmgasper avatar jmgasper commented on July 26, 2024

@conniefry - That's what I was trying. I just provided the XCode information because XCode provides the command-line tools like clang, and it's different between XCode 9 and 10. I haven't tried to load up the actual XCode project at all yet.

from pxcore2.

conniefry avatar conniefry commented on July 26, 2024

@jmgasper We did add a note to the README that XCode 10 or above will not work, but I would have thought 9.4 was compatible. We are using XCode 9.4 in the Travis CI builds, and it is working fine.

But if I use "-G Xcode" as you are doing, it fails for me, as well. Without that, everything is gen'ing and building fine.

from pxcore2.

jmgasper avatar jmgasper commented on July 26, 2024

I saw more details after adding code to cmake to output the GCC commands:

[100%] Linking CXX executable ../../../../examples/pxScene2d/src/Spark
cd /Users/justingasper1/Documents/Git/pxCore/temp/examples/pxScene2d/src && /usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_link_script CMakeFiles/pxscene_app.dir/link.txt --verbose=1
/Users/justingasper1/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -fPIC -fpermissive -g -Wall -Wno-attributes -Wall -Wextra -std=c++11 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openssl/lib;-framework OpenGL -framework Cocoa -framework Foundation CMakeFiles/pxscene_app.dir/pxResource.cpp.o CMakeFiles/pxscene_app.dir/pxConstants.cpp.o CMakeFiles/pxscene_app.dir/pxRectangle.cpp.o CMakeFiles/pxscene_app.dir/pxFont.cpp.o CMakeFiles/pxscene_app.dir/pxText.cpp.o CMakeFiles/pxscene_app.dir/pxTextBox.cpp.o CMakeFiles/pxscene_app.dir/pxImage.cpp.o CMakeFiles/pxscene_app.dir/pxImage9.cpp.o CMakeFiles/pxscene_app.dir/pxImageA.cpp.o CMakeFiles/pxscene_app.dir/pxImage9Border.cpp.o CMakeFiles/pxscene_app.dir/pxArchive.cpp.o CMakeFiles/pxscene_app.dir/pxAnimate.cpp.o CMakeFiles/pxscene_app.dir/pxObject.cpp.o CMakeFiles/pxscene_app.dir/pxScene2d.cpp.o CMakeFiles/pxscene_app.dir/pxContextGL.cpp.o CMakeFiles/pxscene_app.dir/__/external/westeros-stub/westeros-stub.cpp.o CMakeFiles/pxscene_app.dir/mac/pxContextUtils.mm.o CMakeFiles/pxscene_app.dir/Spark.cpp.o CMakeFiles/pxscene_app.dir/aamp/pxAAMPPlayer.cpp.o CMakeFiles/pxscene_app.dir/aamp/mac/AAMPView.mm.o  -o ../../../../examples/pxScene2d/src/Spark  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../../../build/mac  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/node  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/dukluv/build  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/zlib  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/curl/lib/.libs  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/jpg/.libs  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/png/.libs  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/ft/objs/.libs  -L/usr/local/Cellar/libuv/1.28.0/lib  -L/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/breakpad/src/client/linux  -L/usr/local/opt/gstreamer/lib  -L/usr/local/opt/glib/lib  -L/usr/local/opt/gettext/lib  -L/usr/local/opt/gst-plugins-base/lib  -L/usr/local/opt/ossp-uuid/lib -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../../../build/mac -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/node -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/dukluv/build -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/zlib -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/curl/lib/.libs -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/jpg/.libs -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/png/.libs -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/ft/objs/.libs -Wl,-rpath,/usr/local/Cellar/libuv/1.28.0/lib -Wl,-rpath,/Users/justingasper1/Documents/Git/pxCore/examples/pxScene2d/src/../external/breakpad/src/client/linux -Wl,-rpath,/usr/local/opt/gstreamer/lib -Wl,-rpath,/usr/local/opt/glib/lib -Wl,-rpath,/usr/local/opt/gettext/lib -Wl,-rpath,/usr/local/opt/gst-plugins-base/lib -Wl,-rpath,/usr/local/opt/ossp-uuid/lib ../../../../build/mac/libpxCore.a ../../../../build/mac/librtCore_s.a -lpthread -lnode -lduktape -ldschema -lduv -luv -lz -lcurl ../../../../examples/pxScene2d/src/../external/jpg/.libs/libjpeg.a -lpng16 -lfreetype -lcrypto -luv -lpthread -ldl ../../../../examples/pxScene2d/src/../external/aamp/aamp/build/libaamp.a -lxml2 -ldash -lxml2 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lgstapp-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl -labr -lgstvideo-1.0 -lnode -lduktape -ldschema -lduv -luv -lz -lcurl ../../../../examples/pxScene2d/src/../external/jpg/.libs/libjpeg.a -lpng16 -lfreetype -lcrypto -luv -ldl ../../../../examples/pxScene2d/src/../external/aamp/aamp/build/libaamp.a -lxml2 -ldash -lxml2 -ldash -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lgstapp-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lgstapp-1.0 -lgstbase-1.0 -labr -lgstvideo-1.0
clang: error: no such file or directory: 'OpenGL'

Note that ;-framework OpenGL doesn't have a space between ; and -.

I changed line 110 in examples/pxScene2d/src to the text below, with an added space before -framework:

set(PXSCENE_LINKER_OPTIONS " -framework OpenGL -framework Cocoa -framework Foundation")

and it worked.

No idea why I'm the only one to see this issue. 🤷‍♂

from pxcore2.

Related Issues (20)

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.