Coder Social home page Coder Social logo

Compiling on windows : Error about quickjspp HOT 8 CLOSED

ftk avatar ftk commented on June 27, 2024
Compiling on windows : Error

from quickjspp.

Comments (8)

ftk avatar ftk commented on June 27, 2024

Seems to be compiling fine for me:
image
Those functions are used to wrap C++ functions (.function<&myfunction>())
Also, quickjs already works fine with MinGW on Windows

from quickjspp.

benkuper avatar benkuper commented on June 27, 2024

Thanks for the fast reply, this is what I get though, with the same command line.
Screenshot_1

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.

webfolderio avatar webfolderio commented on June 27, 2024

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.

ftk avatar ftk commented on June 27, 2024

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.

benkuper avatar benkuper commented on June 27, 2024

too bad, so no possibility of using it with an MSVC 64-bit project then ?

from quickjspp.

ftk avatar ftk commented on June 27, 2024

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.

benkuper avatar benkuper commented on June 27, 2024

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.

DoKtor-K-GBLCW avatar DoKtor-K-GBLCW commented on June 27, 2024

I just tested It
On Visual Studio 2019 (x86 - Debug Build)
And It compiles and Works without Any problems ๐Ÿ’œ

from quickjspp.

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.