Comments (4)
@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.
@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.
@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.
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)
- SIGSEGV on startup rtValue::setObject() while compiling using clang 6.0.0 HOT 2
- ThreadSanitizer(testRunner_v5.js,sci): data race @rtRef.h:70 in rtImageResource::setTextureData(pxOffscreen&, char const*, unsigned long)
- ThreadSanitizer(testRunner_v5.js, sci, exit): heap-use-after-free @rtWrapperUtils.cpp:309 in rtScriptNodeUtils::HandleMap::lookupSurrogate()
- ThreadSanitizer(testRunner_v5.js,tci): data race @pxContextGL.cpp:173 in removeFromTextureList(pxTexture*)
- testRunner_v5.js - test failures HOT 1
- AddressSanitizer(pxscene2dtests, sci): double-free @rtFileDownloader.cpp:925 in rtFileDownloader::retrieveDownloadHandle() HOT 1
- AddressSanitizer(reference-app, regression#1294): SEGV @pxResource.cpp:399 in rtImageResource::getTexture(bool) HOT 1
- AddressSanitizer(test-units, CORS): SEGV @test_cors.cpp:175 in corsTest::updateResponseForAccessControl_test() HOT 2
- AddressSanitizer(pxscene2dtests, sci): heap-buffer-overflow @nanosvg.h:333 in nsvg__parseXML(char*, void (*)(void*, char const*, char const**) HOT 2
- Question from Closed PR (unrelated to PR) HOT 1
- testRunner_v7.js - test failures - test_cors HOT 4
- testRunner_v7.js - test failures - test_getFile.testHttpAccessAllowed HOT 8
- testRunner_v7.js - crash using v8 - @CHECK(AllowJavascriptExecution::IsAllowed(isolate))
- testRunner_v7.js - test failures(node8,v8) - test_permissions.HANGING HOT 1
- compile error 'std::string' invalid type in C file HOT 1
- compile error: pxUtil.cpp:1072 undeclared 'nsvgRasterizeFull' HOT 1
- Issues building HOT 2
- pxScene2d build failure HOT 3
- Can you modify the error messages to use ... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pxcore2.