Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...
   All Posts (sTix)


(1) 2 3 »


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
Here's what it looks like on my machine:

Quote:
stix@osboxes ~/kod $ ls -l
total 16
drwxrwxr-x 4 stix stix 4096 Jul 12 18:44 ./
drwxr-xr-x 20 stix stix 4096 Jul 11 09:24 ../
drwxrwxr-x 16 stix stix 4096 Jul 11 07:30 AROS/
drwxrwxr-x 7 stix stix 4096 Jul 12 15:29 InstallerLG/

stix@osboxes ~/kod $ ls -l AROS/workbench/utilities/InstallerLG/
total 892
drwxrwxr-x 2 stix stix 4096 Jul 12 18:42 ./
drwxrwxr-x 8 stix stix 4096 Jul 11 07:24 ../
-rw-rw-r-- 1 stix stix 730 Jul 12 09:44 all.h
-rw-rw-r-- 1 stix stix 24136 Jul 12 09:44 alloc.c
-rw-rw-r-- 1 stix stix 1434 Jul 12 09:44 alloc.h
-rw-rw-r-- 1 stix stix 8102 Jul 12 09:44 args.c
-rw-rw-r-- 1 stix stix 781 Jul 12 09:44 args.h
-rw-rw-r-- 1 stix stix 3606 Jul 12 09:44 arithmetic.c
-rw-rw-r-- 1 stix stix 598 Jul 12 09:44 arithmetic.h
-rw-rw-r-- 1 stix stix 7389 Jul 12 09:44 bitwise.c
-rw-rw-r-- 1 stix stix 825 Jul 12 09:44 bitwise.h
-rw-rw-r-- 1 stix stix 5070 Jul 12 09:44 comparison.c
-rw-rw-r-- 1 stix stix 655 Jul 12 09:44 comparison.h
-rw-rw-r-- 1 stix stix 4918 Jul 12 09:44 control.c
-rw-rw-r-- 1 stix stix 591 Jul 12 09:44 control.h
-rw-rw-r-- 1 stix stix 4072 Jul 12 09:44 error.c
-rw-rw-r-- 1 stix stix 1996 Jul 12 09:44 error.h
-rw-rw-r-- 1 stix stix 12447 Jul 12 09:44 eval.c
-rw-rw-r-- 1 stix stix 677 Jul 12 09:44 eval.h
-rw-rw-r-- 1 stix stix 6288 Jul 12 09:44 exit.c
-rw-rw-r-- 1 stix stix 598 Jul 12 09:44 exit.h
-rw-rw-r-- 1 stix stix 8108 Jul 12 09:44 external.c
-rw-rw-r-- 1 stix stix 584 Jul 12 09:44 external.h
-rw-rw-r-- 1 stix stix 140028 Jul 12 10:34 file.c
-rw-rw-r-- 1 stix stix 1385 Jul 12 09:44 file.h
-rw-rw-r-- 1 stix stix 94136 Jul 12 09:44 gui.c
-rw-rw-r-- 1 stix stix 1523 Jul 12 09:44 gui.h
-rw-rw-r-- 1 stix stix 8387 Jul 12 09:44 information.c
-rw-rw-r-- 1 stix stix 661 Jul 12 09:44 information.h
-rw-rw-r-- 1 stix stix 14707 Jul 12 09:44 init.c
-rw-rw-r-- 1 stix stix 521 Jul 12 09:44 init.h
-rw-rw-r-- 1 stix stix 107337 Jul 11 09:26 lexer.c
-rw-rw-r-- 1 stix stix 779 Jul 12 09:44 lexer.h
-rw-rw-r-- 1 stix stix 21455 Jul 12 15:34 mmakefile
-rw-rw-r-- 1 stix stix 440 Jul 12 15:33 mmakefile.src
-rw-rw-r-- 1 stix stix 163395 Jul 11 09:26 parser.c
-rw-rw-r-- 1 stix stix 6543 Jul 11 09:26 parser.h
-rw-rw-r-- 1 stix stix 29622 Jul 12 09:44 probe.c
-rw-rw-r-- 1 stix stix 885 Jul 12 09:44 probe.h
-rw-rw-r-- 1 stix stix 5229 Jul 12 09:44 procedure.c
-rw-rw-r-- 1 stix stix 556 Jul 12 09:44 procedure.h
-rw-rw-r-- 1 stix stix 24953 Jul 12 09:44 prompt.c
-rw-rw-r-- 1 stix stix 742 Jul 12 09:44 prompt.h
-rw-rw-r-- 1 stix stix 3238 Jul 12 09:44 resource.c
-rw-rw-r-- 1 stix stix 3479 Jul 12 09:44 resource.h
-rw-rw-r-- 1 stix stix 18517 Jul 12 09:44 strop.c
-rw-rw-r-- 1 stix stix 923 Jul 12 09:44 strop.h
-rw-rw-r-- 1 stix stix 9680 Jul 12 09:44 symbol.c
-rw-rw-r-- 1 stix stix 564 Jul 12 09:44 symbol.h
-rw-rw-r-- 1 stix stix 2843 Jul 12 09:44 types.h
-rw-rw-r-- 1 stix stix 22112 Jul 12 09:44 util.c
-rw-rw-r-- 1 stix stix 2196 Jul 12 09:44 util.h


The Installer.git repo is found in '~/kod/InstallerLG'.

The '~/kod/AROS' directory is a clean svn checkout. The 'InstallerLG' in there has no connection to the InstallerLG.git repo in '~/kod/InstallerLG'. It's just a dump for the files found in '~/kod/InstallerLG/dist/aros' after invoking 'make dist' in '~/kod/InstallerLG/dist'.


Posted on: 7/12 16:08
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
Quote:
btw on aros you are encouraged to abstract things like nowarn flags in order to be ready to use different compilers:
-Wno-unused-function
should be
$(NOWARN_UNUSED_FUNCTION)

you ll find supported substitutions in config/compiler.cfg.in
if something is missing it van be easily added there.


Ah, makes sense. Thanks!

Posted on: 7/12 12:27
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
Ok, but there's something strange going on there. The 'InstallerLG/dist/aros' part is not right.

Did you start from scratch with just an 'InstallerLG' directory (AROS build tree) containing the files in 'dist/aros' (InstallerLG.git tree)?


Posted on: 7/12 12:27
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
Quote:

if you insist on building gui as link lib, it will be built in gen subdir as above (this is a subdir for all generated files, so that they do not pollute the source itself) and should be linked from there, i need to see why its not completing. and id relly propse to reconsider if copying sources is necessary. the simpler build process will be the easier it can be integrated with aros.


I nice side effect of spending time with the warnings was the discovery of a new C "standard" GNU99 :) By compiling with this instead of C99 and by fixing a few warnings I managed to build the interpreter and the GUI with the same set of flags. That means that we could further simplify the mmakefile.src, see below:

Quote:

include $(SRCDIR)/config/aros.cfg

EXEDIR := $(AROSDIR)/Utilities
FILES := $(subst .c,,$(wildcard *.c))
USER_CFLAGS := -std=gnu99 -Wno-unused-function

#MM- workbench-utilities : workbench-utilities-installerlg
#MM workbench-utilities-installerlg : includes linklibs

%build_prog mmake=workbench-utilities-installerlg \
progname=Installer targetdir=$(EXEDIR) \
files=$(FILES) uselibs="debug"

%common


It doesn't get much simpler than that :)


Posted on: 7/12 7:52
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
Quote:
as it is now "make aros" simply copies soouurce files into aros subfolder. im not sure ts necessary, why not compile them from where they are simply specifying the path?


The idea is to flatten everything that needs to be built and get rid of the the rest, to throw away everything that has to do with InstallerLG.git after fetching the contents of 'dist/aros'. In other words, the contents of 'dist/aros' are to be put in the 'InstallerNG' directory in the AROS tree, nothing else from InstallerLG.git is to be put there. There are things in InstallerLG.git that clearly do not belong in AROS, things for building aminet readme:s, lha-archives, tests that can only be executed on Linux and so on. By doing it this way we carve out the unnecessary (from an AROS perspective) things and simplify the build process at the same time.

Quote:
as it is now "make aros" simply copies soouurce files into aros subfolder. im not sure ts necessary, why not compile them from where they are simply specifying the path? and then
invoking "make workbench-utilities-installerlg" creates a gui.o oject in target /bin/amiga-m68k/gen/local/InstallerLG/dist/aros.


By doing it this way we can use the existing macros (and thereby reap the benefits of any build system maintenance work) while at the same time use a different set of compiler flags for the interpreter and the gui. Besides, the gui and the interpreter really are two different things, it makes sense to keep them apart anyway.


Posted on: 7/12 2:24
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
I think I have something that works.

I realized that I need to strip and simplify the building process if it's going to be a good fit for the AROS build system.

So, if you clone the latest revision of InstallerLG you will find a new directory in there; 'dist/aros'. If you enter 'dist' and do a 'make aros' the 'aros' directory will be populated with everything you need to build InstallerLG in the AROS tree. If you dump these files in, let's say, 'workbench/utilities/InstallerLG', you should be good to go (knock on wood).

It's a bit crude, I simply disabled all warnings. I should fix them instead of course. But it's a start.




Posted on: 7/11 7:12
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
Wow, the documentation is really nice. Got some reading to do.

Posted on: 7/11 4:39
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
I started look into the AROS build system as well. The problem in this case is that gui.o must be built using one set of USER_CFLAGS and all the other *.o ones with another set. I'll do some more digging.

Posted on: 7/11 4:21
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline
Brilliant!

I'm going play around with this, trying to set up something that I can use to build and run AROS hosted on right now.

Posted on: 7/10 10:56
Transfer the post to other applications Transfer


Re: installer?

Joined:
2017/4/8 5:23
From Sweden
Group:
Member
Posts: 27
Offline

Posted on: 7/9 15:37
Transfer the post to other applications Transfer



 Top
(1) 2 3 »




Search
Top Posters
1 paolone
paolone
4433
2 magorium
magorium
4095
3 nikolaos
nikolaos
4023
4 phoenixkonsole
phoenixkonsole
3929
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2796
7 mazze
mazze
2221
8 clusteruk
clusteruk
2112
9 damocles
damocles
1789
10 BSzili
BSzili
1513
© 2004-2018 AROS Exec