GithubHelp home page GithubHelp logo

Comments (6)

LupertEverett avatar LupertEverett commented on June 28, 2024 1

I think we can put the instructions I've given here into the README as well

from surrealengine.

LupertEverett avatar LupertEverett commented on June 28, 2024

I think you're trying to build it from the project's root directory, thus ld gets confused because SurrealEngine is also a folder within the project's root folder.

Try to make a "build" folder and compile everything from there:

mkdir build
cd build
cmake ..
make

from surrealengine.

coreybruce avatar coreybruce commented on June 28, 2024

I think you're trying to build it from the project's root directory, thus ld gets confused because SurrealEngine is also a folder within the project's root folder.

Try to make a "build" folder and compile everything from there:

mkdir build cd build cmake .. make

Thanks those instructions worked, @dpjudas should have proper instructions on the readme on how to build instead of just saying "Use CMake to build the project."

from surrealengine.

dpjudas avatar dpjudas commented on June 28, 2024

Sorry, I never made such a instruction since I didn't know this was a problem in the first place. There are so many ways things can be set up that it is difficult to know about every situation, especially on Linux.

That's why the instruction is so generic - packages have different names depending on distro. They have different compilers (gcc vs clang), different versions of the compiler, etc.

That said, we could rename the sources folder to avoid this situation, or maybe rename the executable on Linux. The exe should probably be renamed to surreal-engine. Using CamelCase for executables on Linux makes things look out of place.

from surrealengine.

coreybruce avatar coreybruce commented on June 28, 2024

Awesome thanks also I would suggest doing make -j(nproc) instead of make -j 16 on the build instructions so it will automatically use the cores a system has instead of assuming there is 16 for example. 😃

from surrealengine.

coreybruce avatar coreybruce commented on June 28, 2024

Sorry, I never made such a instruction since I didn't know this was a problem in the first place. There are so many ways things can be set up that it is difficult to know about every situation, especially on Linux.

That's why the instruction is so generic - packages have different names depending on distro. They have different compilers (gcc vs clang), different versions of the compiler, etc.

That said, we could rename the sources folder to avoid this situation, or maybe rename the executable on Linux. The exe should probably be renamed to surreal-engine. Using CamelCase for executables on Linux makes things look out of place.

Hey it's all good and not that complicated at all on Linux while also being pretty universal, all Linux distros will contain gcc, make, cmake etc so if you are using make and cmake then all distros will support it and have the same compilers. 👍

from surrealengine.

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.