moros1138 / pge-template-project Goto Github PK
View Code? Open in Web Editor NEWThis is a template project using CMake to serve as a jumping off point for you to build your masterpiece olcPixelGameEngine application.
License: Other
This is a template project using CMake to serve as a jumping off point for you to build your masterpiece olcPixelGameEngine application.
License: Other
Describe the bug
embuilder
inaccessible from inside cmake script, despite emsdk_env.bat
in effect
To Reproduce
Steps to reproduce the behavior:
emsdk_env.bat
build
directory and navitate into itemcmake cmake ..
Expected behavior
cmake builds cache, ready to run cmake --build .
Actual Behavior
cmake errors out, claiming zlib and libpng were not found.
Desktop (please complete the following information):
Additional context
For some reason emscripten's environment isn't being passed through smake, so running embuilder
doesn't pre-cache zlib and libpng as is expected on Linux and Mac.
When running make
, I get the following error:
ld: library not found for -lglut
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Glut is installed with brew and the actual cmake .
command does not return an error.
I run cmake . and after this I run make but I get this error:
pge-template-project-main/include/olcPixelGameEngine.h:5977:4: error: use of undeclared identifier 'assert'
assert(resultAddMethod);
I install libpng, make, cmake , gcc over home-brew on my Mac.
After executing make in Ubuntu 20.04:
/usr/bin/ld: CMakeFiles/TestApp.dir/src/main.cpp.o: in function std::thread::thread<void (olc::PixelGameEngine::*)(), olc::PixelGameEngine*, void>(void (olc::PixelGameEngine::*&&)(), olc::PixelGameEngine*&&)': main.cpp:(.text._ZNSt6threadC2IMN3olc15PixelGameEngineEFvvEJPS2_EvEEOT_DpOT0_[_ZNSt6threadC5IMN3olc15PixelGameEngineEFvvEJPS2_EvEEOT_DpOT0_]+0x37): undefined reference to
pthread_create'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/TestApp.dir/build.make:91: bin/TestApp] Error 1
Then I checked the Cmake output and it said:
-- Looking for IceConnectionNumber in ICE - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
...
Is your feature request related to a problem? Please describe.
The way the cmake script currently builds places the compiled binaries inside the build directory in a subdirectory named bin
, the assets, if any, are copied to the bin
directory. however it is not intuitive for the purposes of distribution.
Describe the solution you'd like
create a build directory structure that makes it more intuitive as to where built files and supporting asset data is stored to make it easy to integrate with packaging and distribution tooling.
Describe alternatives you've considered
i have considered leaving it alone and letting people figure it out on their own, but it's not intuitive.. not sure about other solutions to the problem.
Additional context
n/a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.