Login
Username:

Password:

Remember me



Lost Password?

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

Members: 1
Guests: 1

wawa, more...

Browsing this Thread:   1 Anonymous Users



« 1 ... 3 4 5 (6)


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:
2010/8/30 7:20
Group:
Member
Posts: 1250
Online
there is still something wrong with the mmakefile (as occures gcc-4.6.4 output about the issue is more informative than gcc-6.3.0):

Quote:

Linking AROS/Utilities/Installer...
Link failed: /home/wawa/aros-x86-464/bin/linux-i386/tools/crosstools/i386-aros-gcc -o /home/wawa/aros-x86-464/bin/pc-i386/AROS/Utilities/Installer -ldebug
/home/wawa/aros-x86-464/bin/linux-i386/tools/crosstools/i386-aros-ld: cannot open output file /home/wawa/aros-x86-464/bin/pc-i386/gen/local/InstallerLG/dist/aros/Installer: No such file or directo


except maybe when you copy the files to expected location by hand.
buggers me. maybe they should be an option for a correct gen dir. must see..

edit:
maybe somethings wrong with usage of
FILES := $(subst .c,,$(wildcard *.c))
that it wants to link in
gen/local/InstallerLG/dist/aros/
which is mirror of the same path its in (my) source dir

Posted on: 7/12 9:52

Edited by wawa on 2018/7/12 10:12:54
Edited by wawa on 2018/7/12 10:33:44
Transfer the post to other applications Transfer


Re: installer?

Joined:
2010/8/30 7:20
Group:
Member
Posts: 1250
Online
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.

Posted on: 7/12 10:21
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:
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:
2010/8/30 7:20
Group:
Member
Posts: 1250
Online
Quote:

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


i have updated/pulled the current state of the source reissued make aros din dist and then reissued make workbench-utilities-installerlg in respective aros target dirs, eventuelly using -clean and -quick appendixes to make targets, to make sure any gen files get removed and to speed up rebuilding.

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


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:
2010/8/30 7:20
Group:
Member
Posts: 1250
Online
yes, i undertsnd you urge to keep git scheckout outside aros svn checkout, and only copy the files sover, even though i dont really understand what would cause problems here. i have several project checked out to the local directory located within may source AROS directory while im working on them. probably that middle stage of copying files to dist/aros poses some problem.

ill delete the checkout in local and proceed as you propose.

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



« 1 ... 3 4 5 (6)



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4434
2 magorium
magorium
4095
3 nikolaos
nikolaos
4028
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