GithubHelp home page GithubHelp logo

Comments (6)

Jamesthe1 avatar Jamesthe1 commented on July 22, 2024 1

The suggested solution did not work because it pointed to /home/James for home rather than C:/Users/James.
The following has resolved the issue, however:

mkdir build
cd build
cmake .. -G "Unix Makefiles"
make

from lunasvg.

sammycage avatar sammycage commented on July 22, 2024

Please try this cmake .. -DBUILD_SHARED_LIBS=ON

from lunasvg.

Jamesthe1 avatar Jamesthe1 commented on July 22, 2024

Compilation process was successful again, but this time, using the same options, it gave me this error:

C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/lunasvg.dll: file not recognized: File format not
 recognized
collect2.exe: error: ld returned 1 exit status

from lunasvg.

sammycage avatar sammycage commented on July 22, 2024

I built the library from source via cmake .. inside my build folder, then used the generated Visual Studio project to build all files.
In Debug, I copied the newly-generated library file into my MinGW's library path.

Have you tried this with other libraries before?

from lunasvg.

Jamesthe1 avatar Jamesthe1 commented on July 22, 2024

Yes, I have built from source for other libraries. No issues have been recorded for them.

from lunasvg.

sammycage avatar sammycage commented on July 22, 2024

I no longer have access to Microsoft Windows. Solving this problem will be a bit difficult for me.

Make sure that your build directory is clean.

mkdir build
cd build
cmake .. -G "MinGW Makefiles"
make

@Jamesthe1 Lemme know if it works.

from lunasvg.

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.