Opened 4 years ago

Closed 4 years ago

#299 closed defect (fixed)

Building application with Application Packager fails under Linux

Reported by: wottis@… Owned by:
Priority: major Milestone:
Component: default Keywords: linux
Cc: Also affects CVS HEAD (eXept version): no

Description

Hello,

I'm trying to build a standalone executable of an hello world app.
As is described here.

I downloaded this 64bit build (branch 8.0.99 build 805) for linux and extracted the files. The system I use is Arch Linux with kernel 5.2.13.

To start Smalltalk/X is just used the shell script in the bin directory.

When I try to build the application with the packager it fails with the following error:

Cannot figure out my top directory (where stx/include and stx/rules are)

Nowhere in the downloaded files can i find "rules" nor am i unsure what "include" should contain. Even if i try to add a package repository that contains these files (such that they are present in "Smalltalk packagePath") the build process still fails because it can't find the file "stmkmf" in the "stx/rules" directory.

I found the stmkmf in the source here on trac and also here.

It looks like to me that there's a lot missing in order to actually build a native executable. And unfortunately there's no documentation whatsoever about his, besides the one that says it can be done easily in 5 minutes without any configuration or installation of extra build tools.

How to actually do this?

Thank you very much!

Kind regards,
wottis

Change History (2)

comment:1 by jan vrany, 4 years ago

Hello,

using an application packages is not supported by Smalltalk/X jv-branch. The reason is that while it looks nice for demos, it is fairly useless in practice (i.e, for anything but when giving a demo).
I do not know anyone using it for real. Even at eXept they're not using it for their own products (they were not 5 years ago for sure).

besides the one that says it can be done easily in 5 minutes without any configuration or installation of extra build tools.

That'd be nice, but it is not true. You need a C toolchain and make at the very least.

How to actually do this?

The process in Smalltalk/X jv-branch is (seemingly) more complicated than "5 minutes", but OTOH it can be and it is used in practice.

First, you need to compile Smalltalk/X from sources, this is documented here:
Building Smalltalk/X jv-branch from sources

How to develop and build an application is described here:
Developing and Deploying an Application in Smalltalk/X

If something does not work, let us know, it's a bug.

comment:2 by wottis@…, 4 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.