Comments (13)
This stuff comes with ttf
which is among nimx dependencies. Have you installed nimx with nimble install
?
from nimx.
Ok...I was not using nimble and manually setting up the 17 dependencies..Aiee. [ I confused the ttf.nim in sdl2 with the one in the ttf package. ] So, using nimble the package and all its dependencies seem to build fine.
Is there some trick to building the nimx tests from sources besides "cd pkgs/nimx-0.1; nake tests"? Doing that I get
.nimble/pkgs/variant-0.2.0/variant.nim(76) getTypeId
.nimble/pkgs/variant-0.2.0/variant.nim(69) mangledName
.nimble/pkgs/variant-0.2.0/variant.nim(29) mangledName
.nimble/pkgs/nimx-0.1/nimx/image.nim(165, 32) template/generic instantiation from here
.nimble/pkgs/nimx-0.1/nimx/resource.nim(64, 35) template/generic instantiation from here
.nimble/pkgs/variant-0.2.0/variant.nim(140, 17) template/generic instantiation from here
.nimble/pkgs/variant-0.2.0/variant.nim(29, 46) Error: node has no type
from nimx.
Can you try reinstalling variant pls?
nimble install -y variant
from nimx.
Also please make sure you nim is fresh enough.
from nimx.
I still get the exact same error (ending in "variant.nim(29, 46) Error: node has no type".
My Nim is (and was) at the tip of devel.
$ nim --version
Nim Compiler Version 0.15.3 (2016-12-16) [Linux: amd64]
Copyright (c) 2006-2016 by Andreas Rumpf
git hash: aedafb99787d3613c6776bea625d9a43b2b7a8ea
active boot switches: -d:release -d:useLinenoise -d:nativeStackTrace -d:noCaas
I could rebuild it with only -d:release boot switch (if you think that worthwhile to try).
from nimx.
Ah, ok thats interesting. Looks like a pretty recent Nim regression. Works for me with Nim 9099fdd8f02b83670ae0ca8a5e434499c56c9904
but fails with devel... I'll do some more experiments and report it to Nim tracker. Meanwhile you can use Nim which is not as fresh 😶
from nimx.
Ok. Thanks.
from nimx.
I was not using nimble and manually setting up the 17 dependencies..Aiee.
How come? :(
from nimx.
Filed the issue to Nim tracker: nim-lang/Nim#5129
from nimx.
@dom - I was anticipating perhaps making contributions or at least having .git/ directories around so I could see diffs of edits I may have made. So, I began setting up a tree of git clones of nimx and its dependencies. It didn't seem so crazy at the time, but nimx turned out to have a larger transitive closure of deps than I expected with a module name collision that caught me off guard. ;-) Then I "issued" before thinking much.
I can't be the only one thinking along these lines, though. Maybe nimble can/should/already has a mode to not only install the head/tip of version control but also keep version control meta files/.git/.hg directories around? Just hg/git status/diff add some value. I guess in an ideal world, then a user could fork some package on github, swap out the pkgs/ subdirectory with a clone of the fork for whichever package they might want to push back to github for a PR.
from nimx.
Relevant discussion here: nim-lang/nimble#240
from nimx.
Still blocked by nim-lang/Nim#5131
from nimx.
Fixed as of nim-lang/Nim@2bb4913
from nimx.
Related Issues (20)
- Nim 1.6.4 fail to run nimx HOT 1
- libwebp problem for Android HOT 1
- Documentation for NimX is unclear. HOT 3
- How to draw images on collectionView elements (rects) ? HOT 2
- Popup button breaks if used alongside makeLayout HOT 1
- Build fails with Nim 1.6.8 HOT 3
- Failed to load sdl2 HOT 4
- Autosized buttons HOT 1
- Directory window widget HOT 1
- Problems regarding SDL2 HOT 3
- getDisplayBounds() for nimx HOT 4
- some linebreaks are missing when label is narrow. HOT 1
- sample02_controls and sample03_image crashes. HOT 2
- livedemo in Brave browser is broken
- JS mode is completely broken since November HOT 2
- IME input does not work in the webGL demo HOT 1
- Install fails due to missing dependency "darwin" HOT 2
- Failed to build helloworld with nim 2.0 on Mac M2 HOT 1
- binary size
- \.niError: undeclared identifier: 'shallow'
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 nimx.