-
-
Notifications
You must be signed in to change notification settings - Fork 6
Error: Attempting to call routine : 'Color' #32
Comments
I ran into the same problem. I use the development version of Nim. I found that I could run the example if I used 1.4.8 instead. In fact I meant to investigate if this is a bug in the development version or not. |
It may have something to do with symbol resolution. There is the tuple in Also, I had some issues linking SDL2 on my macOS system. I have a rather old system so your mileage may vary. I ended downloading the frameworks and attaching them with:
I then created a
|
This will fix the compilation error:
|
I'm getting same issue on Bohdi Linux (Ubuntu 20.0) I will try the patch first. |
I really confused are you saying create two directories a and b ? also do you mean git-diff ? |
that was a diff created with git diff |
Same issue using nightly also nixfreak@cha0s-Bodhi:~/lang/nim/nodesnim/examples/calculator$ nim c -r main.nim |
Ok switched to 1.4.8 and it compiled just fine. |
After changing to stable 1.4.8 every compiles fine now. |
Describe the bug
Compile time error , trying to compile a nodesnim sample "hello, world".
Compile time error:
"unifont.ttf"; this will become a compile time error in the future [CStringConv]
/Users/aaronm/.nimble/pkgs/nodesnim-0.3.2/nodesnim/core/font.nim(31, 47) Error: attempting to call routine: 'Color'
found sdl2.Color [type declared in /Users/.nimble/pkgs/nodesnim-0.3.2/nodesnim/thirdparty/sdl2.nim(545, 3)]
To Reproduce
Steps to reproduce the behavior:
nim c -r hello.nim
Expected behavior
File should compile and show output (gui)
Desktop (please complete the following information):
Additional context
Source Code:
`import nodesnim
Window("Hello, World")
build:
call setSizeAnchor(1, 1)
call setTextAlign(0.5, 0.5, 0.5, 0.5)
call setText("Hello, World")
call setBackgroundColor(Color(31, 45, 62))
addMainScene(scene)
windowLaunch()`
Tree of nimble/bin*************
tree ~/.nimble/bin
[17:04:37]/Users/.nimble/bin
├── SDL2
├── SDL2_image
├── SDL2_mixer
├── SDL2_ttf
├── biblioteca_guarrilla -> ../pkgs/biblioteca_guarrilla-#head/biblioteca_guarrilla
├── choosenim
├── ducere -> ../pkgs/basolato-0.10.0/basolato/cli/ducere
├── faker -> ../pkgs/faker-0.14.0/faker/cli/faker
├── inim -> ../pkgs/inim-0.6.1/inim
├── nim
├── nim-gdb
├── nimble
├── nimgrep
├── nimpretty
├── nimsuggest
└── testament
The text was updated successfully, but these errors were encountered: