You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
I'm a super noob and I'd really love to port some of my C++ work to web via emscripten. Unfortunately I am terrible with CMake and linking projects together properly. I'm trying to figure out how to get your project to see the SDL2 package but I can't.
If you have time to help me understand how to set the environment variables for the SDL2 paths, that'd be amazing. But if not, any good (english) resources you might have on understanding how to compile bigger projects would be very useful.
Thanks so much! And well done on that pong game. It's beautiful!
Thanks for the response! It's been a crazy week at work for me so I apologise for the delay.
I somehow managed to fix the issue re: SDL2, though I'm not really sure what I did.
shared:ERROR: libjackbengine.bc: No such file or directory ("libjackbengine.bc" was expected to be an input file, based on the commandline arguments provided)
The quote above is the new error I'm facing. Am I supposed to generate that .bc file somehow? I've had decent luck compiling smaller projects to web, but I don't totally grasp how to link things with makefiles etc. That anything has worked for me so far feels like complete luck.
I know this is a rather general problem with compiling things in general so I don't expect you to walk me through all of it. But a lot of tutorials and guides I find leave steps out of the process, I presume because I should know these things already.
If you're wondering why I'm exploring building C++ to web considering how little I know, I'm kinda learning C++ and compiling etc. at the same time as building with emscripten because I'm way more comfortable with Javascript and web dev, and I'm hoping to be able to port my game projects that I make (eventually) in C++.
Any specific advice/tips you can offer me to help me build your project to web would be awesome. If you know a great and detailed resource I can use to learn the whole process from the top, that'd be great too.
Thanks very much for your time!
The text was updated successfully, but these errors were encountered:
Hey @randolchance, sorry for the delay, it's been a busy week for me too...
I suppose you try to build the Pong project, and the error you are facing is normal. I didn't take the time to keep Pong up to date with the latest changes in Jackbengine until now.
I just pushed a fix, Pong now uses a specific (and pretty old) version of Jackbengine, and does not reference it as a submodule anymore.
Tell me if it fixes the build for you.
And, by the way, thanks for the Pong game! I appreciate your support :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Thanks for the response! It's been a crazy week at work for me so I apologise for the delay.
I somehow managed to fix the issue re: SDL2, though I'm not really sure what I did.
The quote above is the new error I'm facing. Am I supposed to generate that .bc file somehow? I've had decent luck compiling smaller projects to web, but I don't totally grasp how to link things with makefiles etc. That anything has worked for me so far feels like complete luck.
I know this is a rather general problem with compiling things in general so I don't expect you to walk me through all of it. But a lot of tutorials and guides I find leave steps out of the process, I presume because I should know these things already.
If you're wondering why I'm exploring building C++ to web considering how little I know, I'm kinda learning C++ and compiling etc. at the same time as building with emscripten because I'm way more comfortable with Javascript and web dev, and I'm hoping to be able to port my game projects that I make (eventually) in C++.
Any specific advice/tips you can offer me to help me build your project to web would be awesome. If you know a great and detailed resource I can use to learn the whole process from the top, that'd be great too.
Thanks very much for your time!
The text was updated successfully, but these errors were encountered: