Comments (11)
What's the error message?
from kiui.
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.
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.
Thanks @ChlorideCull The weird thing is the cmake build only produces libkiui.dll.a and no dll. What am I missing?
from kiui.
You need to get the shared MinGW build of GLEW, that would be a dependency. Alternatively, build it yourself.
from kiui.
Thanks, already done that. I'm still having the same errors having tried and linked either glfw3.dll or libglfw3.dll.a
As you can see, I'm also getting some redeclared errors prior to the linker errors..
from kiui.
Can you dump a complete log?
from kiui.
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.
@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.
from kiui.
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.
@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)
- startup rendering erros HOT 10
- File Browser demo crash HOT 7
- Valgrind report #1 HOT 1
- Filtered demo crash 2 HOT 2
- Crash on kiui_example startup HOT 12
- [Enchantment] Make int/uint overflow optional in TypeIn HOT 4
- [Emscripten] graphical glitches and other minor bugs HOT 1
- [feature request] source code widget HOT 2
- [Emscripten] "Tabs demo" rendering error HOT 2
- Odd textbox behavior in web demo
- Segfault on Ubuntu 14.04
- Lack of documentation on adding kiui to larger cmake project. HOT 4
- Who to use with own/higher opengl Context?
- Examples Failed in Visual studio 2013
- CMake error in: CHECK_INCLUDE_FILES(dirent.h HAVE_DIRENT_API)
- Just a question re: the current status of kiUi
- linuxmint failed to build HOT 4
- toyui_example fails to work properly on HEAD 6461a83 HOT 4
- unable to build with cmake
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 kiui.