Skip to content
This repository was archived by the owner on Nov 12, 2023. It is now read-only.

Test OpenGL #2

Description

@randolchance

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions