Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error no property None for type int` on compiling on linux #14

Closed
sanket143 opened this issue Aug 20, 2021 · 7 comments
Closed

Comments

@sanket143
Copy link

Getting this error on main branch

source/creator/widgets/inputtext.d(24,86): Error: no property `None` for type `int`
source/creator/widgets/controller.d(11,6): Error: undefined identifier `Parameter`
source/creator/widgets/drag.d(22,132): Error: no property `None` for type `int`
source/creator/frames/parameters.d(17,6): Error: undefined identifier `Parameter`
/usr/bin/dmd failed with exit code 1.

What I did

[sanket143@lisa inochi-creator:main ]$ dub
Unresolvable dependencies to package bindbc-imgui:
  inochi-creator 0.5.0-beta.3+commit.16.gb2f9131 depends on bindbc-imgui ~>1.0.0
[sanket143@lisa inochi-creator:main ]$ dub add bindbc-imgui
Adding dependency bindbc-imgui ~>0.6.0
[sanket143@lisa inochi-creator:main ]$ dub
Unresolvable dependencies to package inochi2d:
  inochi-creator 0.5.0-beta.3+commit.16.gb2f9131 depends on inochi2d ~>1.0.0
[sanket143@lisa inochi-creator:main ]$ dub add inochi2d
Adding dependency inochi2d >=0.4.0-beta <0.5.0-0
[sanket143@lisa inochi-creator:main ]$ dub
Fetching mir-core 1.1.76 (getting selected version)...
Fetching mir-algorithm 3.10.79 (getting selected version)...
Performing "debug" build using /usr/bin/dmd for x86_64.
bindbc-loader 0.3.2: building configuration "noBC"...
bindbc-opengl 0.13.0: building configuration "dynamic"...
bindbc-sdl 0.21.4: building configuration "dynamic"...
bindbc-imgui 0.6.0: building configuration "dynamic"...
gl3n 1.3.1: building configuration "library"...
@LunaTheFoxgirl
Copy link
Member

Inochi2D and Inochi Creator are still in a phase of rapid development, doing dub add replaces the dependencies on the main branch with older versions on the dub database. clone the inochi2d repository and the bindbc-imgui repositories and use dub add-local to add them as local packages at version 1.0.0

You'll need to compile cimgui from source (which you can find in the bindbc-imgui source tree, you just need to recursively update its sub modules)

@playmer
Copy link
Collaborator

playmer commented Aug 20, 2021

Expanding a tiny bit more, if you have issues building that cimgui in the bindbc repo on Linux, please raise the issue in the bindbc repo, as it's our fault, not cimguis. I need to write better docs about this whole process and I don't have a primary Linux machine atm.

@sanket143
Copy link
Author

sanket143 commented Aug 20, 2021

thanks, I got it to compile successfully but it failed with a segmentation fault. It seems it's the same issue as discussed in #1

GLInfo:
        4.6 (Compatibility Profile) Mesa 21.2.0
        Intel
        Mesa Intel(R) HD Graphics 520 (SKL GT2)
        4.60
        gls=gl33
Segmentation fault (core dumped)

@LunaTheFoxgirl
Copy link
Member

LunaTheFoxgirl commented Aug 20, 2021

Have you compiled cimgui from source and make installed it?
Additionally you'll need SDL2 installed.

In later releases I plan to distribute Linux versions as AppImages with this stuff pre-compiled.

@sanket143
Copy link
Author

sanket143 commented Aug 21, 2021

Yes, I did along with SDL.

In later releases I plan to distribute Linux versions as AppImages with this stuff pre-compiled.

that'll be great, but it still would've been helpful to be able to easily make it work by compiling from source, for contributors. Though it is possible to compile, I haven't been able to run.

@sanket143
Copy link
Author

Since I got segmentation fault, I ran it through gdb and got this

(gdb) bt -full
#0  0x00007ffff7d90e61 in __strncmp_avx2 () at /usr/lib/libc.so.6
#1  0x00007ffff79327e8 in ImGui_ImplSDL2_Init(SDL_Window*, void*) () at ./cimgui.so
#2  0x00007ffff7932887 in ImGui_ImplSDL2_InitForOpenGL () at ./cimgui.so
#3  0x000055555573bf20 in _D7creator4core16incCreateContextFZv () at source/creator/core/package.d:209
#4  0x000055555573bc3f in _D7creator4core13incOpenWindowFZv () at source/creator/core/package.d:179
        sdlSupport = <incomplete type>
        imSupport = <incomplete type>
        flags = <incomplete type>
        support = <incomplete type>
#5  0x00005555556f84fc in _Dmain (args=...) at source/app.d:28
Thread 1 "inochi-creator" received signal SIGSEGV, Segmentation fault.
0x00007ffff7d90e61 in __strncmp_avx2 () from /usr/lib/libc.so.6

I am not much familiar with dlang and .so files, can I say that the issue was in building the cimgui.so?

@LunaTheFoxgirl
Copy link
Member

LunaTheFoxgirl commented Aug 21, 2021

Potentially, it's at least not finding the SDL2 symbols in the imgui .so file, it seems.

r888800009 pushed a commit to r888800009/inochi-creator that referenced this issue Sep 3, 2024
[Temporary Fix] Draw the cursor on mesh plane when deform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants