GithubHelp home page GithubHelp logo

Comments (6)

mras0 avatar mras0 commented on July 22, 2024 1

Looks like the same issue I ran into here: dirkwhoffmann/vAmiga#611 (comment)

When compiling against the vAmigaCore library you need to ensure that you have the same feature flags defined (in this case, you probably need to define SCREEN_RECORDER). It's easier to keep in sync if everything is compiled with CMake, since the flags are automatically propagated (if they're PUBLIC at least).

from vamigaweb.

mithrendal avatar mithrendal commented on July 22, 2024 1

I only took out the screenrecorder in the
Emulator/CMakeLists.txt

# Enable additional features on certain architectures
if(NOT WIN32)
#  target_compile_definitions(vAmigaCore PUBLIC SCREEN_RECORDER)
  target_compile_definitions(vAmigaCore PUBLIC GDB_SERVER)
endif()

which made it work ...

@mras0 thank you πŸ˜… that was really fast and precise !πŸ‘

the next step will be to learn now how to integrate the mainsdl.cpp also with cmake. I have to look some tutorials first about cmake I bet...πŸ˜…

from vamigaweb.

dirkwhoffmann avatar dirkwhoffmann commented on July 22, 2024

you probably need to define SCREEN_RECORDER

Oh yes, that makes sense. I should merge in the Windows code for the screen recorder asap. Once this is done, we don't have to take care about different feature sets any more.

from vamigaweb.

mithrendal avatar mithrendal commented on July 22, 2024

It's easier to keep in sync if everything is compiled with CMake

@mras0

I am completely new to cmake and had first some trouble to get it running with emscripten toolchain ... after hours of studying it I deleted all previously handmade makefiles 😎 and now we have a result which I am very happy withπŸ™ƒ ... ... nevertheless would you mind to have a look on it and do some code review ? Escpecially the base CMakeLists.txt

to build and run vAmigaWeb locally, the following command sequence is now necessary


mkdir build
emcmake cmake -S . -B build
cd build 
make
make run

start a web browser and head to localhost:8080

from vamigaweb.

mras0 avatar mras0 commented on July 22, 2024

Looks good to me πŸ‘

Optionally you may want to add DEPENDS vAmiga to your custom targets (run/publish) to make sure you have the latest version and can always just run make run.

I'd probably also create a .gitignore file for build, index.html, vAmiga.js and vAmiga.wasm.

from vamigaweb.

mithrendal avatar mithrendal commented on July 22, 2024

@mras0 that's great now we can just call make run and everything is being build automatically 😎

mkdir build
emcmake cmake -S . -B build
cd build 
make run

start a web browser and head to localhost:8080

or without using make

mkdir build
emcmake cmake -S . -B build
cd build 
cmake --build . --target run

start a web browser and head to localhost:8080

I also added the generated files to .gitignore as you said ....πŸ‘

from vamigaweb.

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.