GithubHelp home page GithubHelp logo

Compile failed in macOS about ember HOT 13 CLOSED

emberemu avatar emberemu commented on May 28, 2024
Compile failed in macOS

from ember.

Comments (13)

Chaosvex avatar Chaosvex commented on May 28, 2024

You need to compile FlatBuffers and use the compiler ('flatc') to generate those files by giving it the FBS files from "spark-schemas/".

For example:
flatc -c --scoped-enums "ServiceTypes.fbs" would produce ServiceTypes_generated.h.

I'm refactoring that part of the code at the moment (aiming to merge it in a few days but we'll see how it goes) so this will be done automatically when you build the project.

If it helps, there's an Ember IRC channel on QuakeNet called #ember. I'm usually there, if you need help with getting it to compile.

from ember.

ryancheung avatar ryancheung commented on May 28, 2024

@Chaosvex Thanks!

from ember.

nawuko avatar nawuko commented on May 28, 2024

@ryancheung You need to comment the "pragma warn" in Affinity.cpp out otherwise clang errors. Also when installing botan via brew you need to add --dev for the latest version aka: "brew install botan --dev"

from ember.

ryancheung avatar ryancheung commented on May 28, 2024

@nawuko Thanks for notifying. I now get another error:

/Users/Ryan/EmberEmu/Ember/src/login/LoginSession.cpp:34:25: error: no viable overloaded '='
        handler_.execute_async = [&](auto& action) {

macOS: 10.12
clang++ version: Apple LLVM version 8.0.0 (clang-800.0.38)

@Chaosvex

from ember.

ryancheung avatar ryancheung commented on May 28, 2024

@nawuko BTW, brew install botan --dev would install botan-1.10.13, but Ember requires at least version1.11.

So I have to manually download botan-1.11 and compile it.

from ember.

ryancheung avatar ryancheung commented on May 28, 2024

It seems that using Linux for compiling would be much easier.

from ember.

Chaosvex avatar Chaosvex commented on May 28, 2024

There shouldn't be much difference between compiling it for Linux and Mac. Ember used Botan 1.10 last week but it was updated to take advantage of some additions to 1.11.

Regarding the flatc error you posted in IRC, I should have mentioned that Sessions.fbs isn't used anywhere, so you can ignore it. You might also need to add the option "--no-union-value-namespacing" if you're using a newer version of flatc than I am.

/Users/Ryan/EmberEmu/Ember/src/login/LoginSession.cpp:34:25: error: no viable overloaded '='
        handler_.execute_async = [&](auto& action) {

Try changing the auto& to just auto. If that fails, replace it with std::shared_ptr<Action>. If even that fails, you could temporarily checkout commit d6dd083.

Things are slightly awkward to get working at the moment since the spark-new branch needs to be merged back into development to get continuous integration back but that should be done pretty soon.

from ember.

ryancheung avatar ryancheung commented on May 28, 2024

@Chaosvex Thanks, replacing it with std::shared_ptr works.

from ember.

ryancheung avatar ryancheung commented on May 28, 2024

@Chaosvex Finally there're some errors in cmake's INSTALL commands:

Install the project...
-- Install configuration: ""
-- Up-to-date: /ember/login
CMake Error at src/login/cmake_install.cmake:57 (file):
  file INSTALL cannot find "/Users/Ryan/EmberEmu/Ember/configs/login".
Call Stack (most recent call first):
  src/cmake_install.cmake:32 (include)
  cmake_install.cmake:34 (include)

And I found this line

INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/configs/login/ DESTINATION ${CMAKE_INSTALL_PREFIX})

in many files, which is wrong since there's no configs/login directory in configs directory. There's only a login.conf file in it.

from ember.

Chaosvex avatar Chaosvex commented on May 28, 2024

Thanks. The install part isn't really used at the moment. I'll probably just remove it.

from ember.

nawuko avatar nawuko commented on May 28, 2024

@ryancheung Maybe you have an old version installed. brew is installing botan 1.11 just fine on macOS 10.12. https://i.imgur.com/D17FB2P.png

from ember.

ryancheung avatar ryancheung commented on May 28, 2024

@nawuko I fount that command flag of latest brew to install development version of package is --devel not --dev.

from ember.

nawuko avatar nawuko commented on May 28, 2024

Oh yea, my shell autocompletes args. So for future reference its --devel

from ember.

Related Issues (14)

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.