Comments (8)
Seems to be compiling fine for me:
Those functions are used to wrap C++ functions (.function<&myfunction>())
Also, quickjs already works fine with MinGW on Windows
from quickjspp.
Thanks for the fast reply, this is what I get though, with the same command line.
Also, my goal is to export a static library out of it so I can use it as a JUCE Module.
Would it be possible if not too complicated for you to put an x64 static .lib (and / or dynamic with .dll) in the release section of the repo ? It would sure help a lot of people trying to use this super lib and not having the whole toolchain for it.
I actually could export a static library from MinGW of quickJS but then a lot of dependencies due to the compilation through gcc made it overcomplicated and not worth it. I'm sure there is a simple solution to that but we've spend the whole day trying to figure out how to make the code compatible through Visual Studio 2019 and didn't get a lot of good results..
Also, what option are you using in CMake to generate the project ? Because I had to change example.cpp to include "../quickjspp.hpp" for it to actually find it, and the file structure you have in your screenshot is not the one in the repo.
from quickjspp.
Visual Studio 2019 and didn't get a lot of good results
QuickJs not compatible with MSVC. It uses GCC specific (attribute etc.) features.
from quickjspp.
I've built 32-bit quickjs dll with mingw: https://github.com/ftk/quickjspp/releases/tag/v20191027
I don't think 64-bit mingw dlls can be used with msvc
from quickjspp.
too bad, so no possibility of using it with an MSVC 64-bit project then ?
from quickjspp.
Oof. The problem was that MSVC doesn't define x86_64, so JSValue was nan-boxed by quickjs. Added 64bit dll, seems to work with patched quickjs.h on MSVC.
from quickjspp.
Nice !! thank you very much, I'll tell you when I'll get back to this development, but it's definitely good news !
from quickjspp.
I just tested It
On Visual Studio 2019 (x86 - Debug Build)
And It compiles and Works without Any problems ๐
from quickjspp.
Related Issues (20)
- Binding a callback (std::function) causes runtime error HOT 11
- How to implement a variadic (const) compound type for List and Map
- Number of arguments are not checked when calling a function HOT 1
- Support of `make install`...?
- Share Value between contexts HOT 1
- 'this' is undefined when calling static JS class method from C++ HOT 2
- how to resolve "The property "PUBLIC_HEADER" is not allowed"
- Updated MSVC branch HOT 5
- Does QuickJS support multithreading?
- wrap is not a member of qjs::js_traits<MyCustomClass,void> HOT 5
- Simpler way to call js_init_module_os() HOT 2
- JavaScript inheritance from C++ class HOT 1
- How to implement js_traits<std::unique_ptr>? HOT 1
- How do I export all the classes in a module๏ผ
- Will this project continue to update?
- MSVC cannot find qjs::rest HOT 1
- Test cases of QuickJS execution failed HOT 2
- std::variant and JS null HOT 2
- Optional arguments HOT 2
- Use https://github.com/quickjs-ng/quickjs instead?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickjspp.