yglukhov / nimx

GUI library
MIT License
1.1k stars 75 forks source link

[Linux] Error installing nimx #400

Closed nixfreak closed 4 years ago

nixfreak commented 4 years ago

| /home/nixfreak/env/nim | choosenim show                                                                                                                        | 20200307 |

  Selected: #devel
   Channel: devel
      Path: /home/nixfreak/.choosenim/toolchains/nim-#devel

  Versions:  
          * #devel
            1.0.6
            1.0.4
            1.0.0

 | nixfreak nix.freak |-------------------------------------------------------------------------------------------------------------------------------------| Saturday 09:56 |
 | /home/nixfreak/env/nim | git clone https://github.com/yglukhov/nimx                                                                                            | 20200307 |

Cloning into 'nimx'...
remote: Enumerating objects: 62, done.
remote: Counting objects: 100% (62/62), done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 7346 (delta 24), reused 38 (delta 16), pack-reused 7284
Receiving objects: 100% (7346/7346), 3.23 MiB | 3.93 MiB/s, done.
Resolving deltas: 100% (5307/5307), done.

 | nixfreak nix.freak |-------------------------------------------------------------------------------------------------------------------------------------| Saturday 09:57 |
 | /home/nixfreak/env/nim | cd nimx                                                                                                                               | 20200307 |

 | nixfreak nix.freak |-------------------------------------------------------------------------------------------------------------------------------------| Saturday 09:57 |
 | /home/nixfreak/env/nim/nimx | nimble install -dy                                                                                                               | 20200307 |

  Verifying dependencies for nimx@0.1
      Info: Dependency on sdl2@any version already satisfied
  Verifying dependencies for sdl2@2.0.1
      Info: Dependency on opengl@#head already satisfied
  Verifying dependencies for opengl@#head
      Info: Dependency on x11@>= 1.1 already satisfied
  Verifying dependencies for x11@1.1
      Info: Dependency on nimsl@>= 0.3 already satisfied
  Verifying dependencies for nimsl@0.3.2
      Info: Dependency on variant@any version already satisfied
  Verifying dependencies for variant@0.2.10
      Info: Dependency on jnim@any version already satisfied
  Verifying dependencies for jnim@0.5.1
      Info: Dependency on nake@any version already satisfied
   Warning: Package 'nake' has an incorrect structure. The top level of the package source directory should contain at most one module, named 'nake.nim', but a file named 'nakefile.nim' was found. This will be an error in the future.
      Hint: If this is the primary source file in the package, rename it to 'nake.nim'. If it's a source file required by the main module, or if it is one of several modules exposed by 'nake', then move it into a 'nakepkg/' subdirectory. If it's a test file or otherwise not required to build the the package 'nake.nim', prevent its installation by adding `skipFiles = @["nakefile.nim"]` to the .nimble file. See https://github.com/nim-lang/nimble#libraries for more info.
  Verifying dependencies for nake@1.9.3
      Info: Dependency on closure_compiler@>= 0.3.1 already satisfied
  Verifying dependencies for closure_compiler@0.3.4
      Info: Dependency on plists@any version already satisfied
  Verifying dependencies for plists@0.1.0
      Info: Dependency on variant@>= 0.2 & < 0.3 already satisfied
  Verifying dependencies for variant@0.2.10
      Info: Dependency on kiwi@any version already satisfied
  Verifying dependencies for kiwi@0.1.0
      Info: Dependency on https://github.com/yglukhov/ttf@>= 0.2.9 & < 0.3 already satisfied
  Verifying dependencies for ttf@0.2.11
      Info: Dependency on nimBMP@any version already satisfied
  Verifying dependencies for nimBMP@0.1.6
      Info: Dependency on https://github.com/yglukhov/async_http_request@any version already satisfied
  Verifying dependencies for async_http_request@0.1.2
      Info: Dependency on jsbind@any version already satisfied
  Verifying dependencies for jsbind@0.1.1
      Info: Dependency on jsbind@any version already satisfied
  Verifying dependencies for jsbind@0.1.1
      Info: Dependency on rect_packer@any version already satisfied
  Verifying dependencies for rect_packer@0.1.0
      Info: Dependency on https://github.com/yglukhov/android@any version already satisfied
  Verifying dependencies for android@0.1.0
      Info: Dependency on jnim@any version already satisfied
  Verifying dependencies for jnim@0.5.1
      Info: Dependency on https://github.com/yglukhov/darwin@any version already satisfied
  Verifying dependencies for darwin@0.1.0
 Installing os_files@any version
Downloading https://github.com/tormund/os_files using git
  Verifying dependencies for os_files@0.1.2
 Installing winim@>= 3.1.1
Downloading https://github.com/khchen/winim using git
  Verifying dependencies for winim@3.3.0
 Installing winim@3.3.0
   Building winim/winim/winimx using c backend
       Tip: 65 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: winim
        ... Details:
        ... Execution failed with exit code 1
        ... Command: "/home/nixfreak/.nimble/bin/nim" c --noNimblePath -d:NimblePkgVersion=3.3.0 -d:release -o:"/tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/winimx" "/tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/winimx.nim"
        ... Output: Hint: used config file '/home/nixfreak/.choosenim/toolchains/nim-#devel/config/nim.cfg' [Conf]
        ... Hint: used config file '/home/nixfreak/.choosenim/toolchains/nim-#devel/config/config.nims' [Conf]
        ... Hint: system [Processing]
        ... Hint: widestrs [Processing]
        ... Hint: io [Processing]
        ... Hint: winimx [Processing]
        ... Hint: marshal [Processing]
        ... Hint: streams [Processing]
        ... Hint: typeinfo [Processing]
        ... Hint: json [Processing]
        ... Hint: hashes [Processing]
        ... Hint: tables [Processing]
        ... Hint: math [Processing]
        ... Hint: bitops [Processing]
        ... Hint: macros [Processing]
        ... Hint: algorithm [Processing]
        ... Hint: strutils [Processing]
        ... Hint: parseutils [Processing]
        ... Hint: unicode [Processing]
        ... Hint: lexbase [Processing]
        ... Hint: parsejson [Processing]
        ... Hint: options [Processing]
        ... Hint: typetraits [Processing]
        ... Hint: intsets [Processing]
        ... Hint: sets [Processing]
        ... Hint: sequtils [Processing]
        ... Hint: os [Processing]
        ... Hint: pathnorm [Processing]
        ... Hint: osseps [Processing]
        ... Hint: posix [Processing]
        ... Hint: times [Processing]
        ... Hint: parseopt [Processing]
        ... Hint: lean [Processing]
        ... Hint: utils [Processing]
        ... Hint: windef [Processing]
        ... Hint: winimbase [Processing]
        ... Hint: winstr [Processing]
        ... Hint: core [Processing]
        ... Hint: winerror [Processing]
        ... Hint: winbase [Processing]
        ... Hint: wingdi [Processing]
        ... Hint: winuser [Processing]
        ... Hint: wincon [Processing]
        ... Hint: winnls [Processing]
        ... Hint: winver [Processing]
        ... Hint: winreg [Processing]
        ... Hint: winnetwk [Processing]
        ... Hint: winsvc [Processing]
        ... Hint: virtdisk [Processing]
        ... Hint: winsock [Processing]
        ... Hint: wincrypt [Processing]
        ... Hint: miniz [Processing]
        ... Hint: strformat [Processing]
        ... CC: miniz
        ... CC: stdlib_assertions.nim
        ... CC: stdlib_io.nim
        ... CC: stdlib_system.nim
        ... CC: stdlib_streams.nim
        ... CC: stdlib_typeinfo.nim
        ... CC: stdlib_hashes.nim
        ... CC: stdlib_math.nim
        ... CC: stdlib_tables.nim
        ... CC: stdlib_parseutils.nim
        ... CC: stdlib_unicode.nim
        ... CC: stdlib_strutils.nim
        ... CC: stdlib_lexbase.nim
        ... CC: stdlib_parsejson.nim
        ... CC: stdlib_marshal.nim
        ... CC: stdlib_sets.nim
        ... CC: stdlib_sequtils.nim
        ... CC: stdlib_pathnorm.nim
        ... CC: stdlib_times.nim
        ... CC: stdlib_os.nim
        ... CC: stdlib_parseopt.nim
        ... CC: winstr.nim
        ... CC: inc/winbase.nim
        ... CC: lib/miniz.nim
        ... CC: stdlib_strformat.nim
        ... CC: winimx.nim
        ... Hint: gcc   -o /tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/winimx  /tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/lib/winimx64.res /tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/inc/../lib/winim64.res /home/nixfreak/.cache/nim/winimx_r/miniz.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_assertions.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_io.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_system.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_streams.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_typeinfo.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_hashes.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_math.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_tables.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_parseutils.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_unicode.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_strutils.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_lexbase.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_parsejson.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_marshal.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_sets.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_sequtils.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_pathnorm.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_times.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_os.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_parseopt.nim.c.o /home/nixfreak/.cache/nim/winimx_r/@mwinstr.nim.c.o /home/nixfreak/.cache/nim/winimx_r/@minc@swinbase.nim.c.o /home/nixfreak/.cache/nim/winimx_r/@mlib@sminiz.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_strformat.nim.c.o /home/nixfreak/.cache/nim/winimx_r/@mwinimx.nim.c.o  -lm -lrt   -ldl [Link]
        ... /tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/lib/winimx64.res: file not recognized: file format not recognized
        ... collect2: error: ld returned 1 exit status
        ... Error: execution of an external program failed: 'gcc   -o /tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/winimx  /tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/lib/winimx64.res /tmp/nimble_978/githubcom_khchenwinim_3.1.1/winim/inc/../lib/winim64.res /home/nixfreak/.cache/nim/winimx_r/miniz.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_assertions.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_io.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_system.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_streams.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_typeinfo.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_hashes.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_math.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_tables.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_parseutils.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_unicode.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_strutils.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_lexbase.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_parsejson.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_marshal.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_sets.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_sequtils.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_pathnorm.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_times.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_os.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_parseopt.nim.c.o /home/nixfreak/.cache/nim/winimx_r/@mwinstr.nim.c.o /home/nixfreak/.cache/nim/winimx_r/@minc@swinbase.nim.c.o /home/nixfreak/.cache/nim/winimx_r/@mlib@sminiz.nim.c.o /home/nixfreak/.cache/nim/winimx_r/stdlib_strformat.nim.c.o /home/nixfreak/.cache/nim/winimx_r/@mwinimx.nim.c.o  -lm -lrt   -ldl'
nixfreak commented 4 years ago

This is compiled on a 64bit arch Funtoo/Gentoo distro. GCC is the newest stable.

Tormund commented 4 years ago

This commit should fix issue. Try to remove os_files from nimble packages and reinstall(nimble install -y) nimx