Git Product home page Git Product logo

Comments (11)

refi64 avatar refi64 commented on July 19, 2024

What's the error message?

from kiui.

wini3d avatar wini3d commented on July 19, 2024

Oh yes, here it is: http://pastebin.com/qScAbn1N

I have added libglfw3.a with GLFW_LIBRARIES during CMake configuration and there were no errors.

from kiui.

ChlorideCull avatar ChlorideCull commented on July 19, 2024

The __imp_ prefix means that it wants a DLL to be linked, IIRC. It wants the DLL version of GLEW, link that before linking kiui.

from kiui.

wini3d avatar wini3d commented on July 19, 2024

Thanks @ChlorideCull The weird thing is the cmake build only produces libkiui.dll.a and no dll. What am I missing?

from kiui.

ChlorideCull avatar ChlorideCull commented on July 19, 2024

You need to get the shared MinGW build of GLEW, that would be a dependency. Alternatively, build it yourself.

from kiui.

wini3d avatar wini3d commented on July 19, 2024

Thanks, already done that. I'm still having the same errors having tried and linked either glfw3.dll or libglfw3.dll.a

http://pastebin.com/Gp8UdnJG

As you can see, I'm also getting some redeclared errors prior to the linker errors..

from kiui.

ChlorideCull avatar ChlorideCull commented on July 19, 2024

Can you dump a complete log?

from kiui.

hugoam avatar hugoam commented on July 19, 2024

The problem you are having is with glew, it is unrelated to GLFW.
I believe if you are not linking with a shared library of glew, you have to define GLEW_STATIC before compiling glew.c.
I think default is dllimport if you don't set GLEW_STATIC, which means you have to link with glew library.
Since you are not doing that, just add GLEW_STATIC to your compiler definitions.

from kiui.

wini3d avatar wini3d commented on July 19, 2024

@ChlorideCull and @hugoam Thanks, adding GLEW_STATIC define in glew.h solves the library and compile example problem, it is definitely not related to GLFW, but when I tried to run the example exe, I'm now getting this assertion error and it crashes.

kiui

from kiui.

hugoam avatar hugoam commented on July 19, 2024

The path for data files is set to "../data" in example_nanovg.cpp
So you should 'install' it in a way that the data repertory is in the parent directory from where the .exe is located.
That means you should copy the data folder inside bin according to your example path, or move the exe up one level, or modify the path in example_nanovg.cpp to "../../data" and rebuild.

from kiui.

wini3d avatar wini3d commented on July 19, 2024

@hugoam thanks, but I did all just that and still getting the same error. (move up one level or changing to "../../data" in example_nanovg.cpp)

from kiui.

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.