niminst icon indicating copy to clipboard operation
niminst copied to clipboard

niminst not adding nimbase.h

Open def- opened this issue 10 years ago • 6 comments

When using niminst nimbase.h is always missing and therefore compilation later fails.

def- avatar Jan 22 '15 09:01 def-

What exact niminst subcommand are you using?

Varriount avatar Jan 22 '15 15:01 Varriount

I was in a hurry and totally forgot: niminst csources foo.ini You have to manuall add a lib directory and put the nimbase.h in there. In other directories it doesn't seem to work. My complete ini looks like this now:

[Project]
Platforms: """
  windows: i386;amd64
  linux: i386;amd64;powerpc64;arm;sparc;mips;powerpc
  macosx: i386;amd64;powerpc64
  solaris: i386;amd64;sparc
  freebsd: i386;amd64
  netbsd: i386;amd64
  openbsd: i386;amd64
  haiku: i386;amd64
"""

[Lib]
Files: "lib/nimbase.h"

[Windows]
binPath: "bin"

I'd like to leave out the [Lib] part and think niminst should pull in the nimbase.h automatically.

It's also strange that you need to set binPath in [Windows], even though that setting is used for all platforms.

def- avatar Jan 22 '15 15:01 def-

Since niminst did get its own repo, should this issue be moved?

andreaferretti avatar Jun 13 '17 12:06 andreaferretti

I would be happy to take a stab at this issue, assuming it's still reproducible.

0x647262 avatar Oct 02 '18 19:10 0x647262

when niminst has been moved, this issue should be migrated.

krux02 avatar Oct 29 '18 01:10 krux02

@krux02 The niminst Nim itself uses is not the one in the Nimble package. Sometimes outsourcing to nimble package doesn't work.

Araq avatar Oct 29 '18 09:10 Araq