Problem building latest CVS on Mac OS X 10.4.5

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
pak150
Posts: 35
Joined: Thu May 14, 2020 1:34 pm

Problem building latest CVS on Mac OS X 10.4.5

Post by pak150 »

I'm having some issues building the latest CVS. I successfully built a prior version about a month ago - but no such luck this time.

I've installed the following packages with fink: sdl, sdl-mixer, automake1.9, and libtool14.

while compiling exult I get the following message before it quits:

gcc -g -O2 -Wall -o wuc wuc.o
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../headers -I./../files -I./../usecode -I./.. -I./../shapes -I./../imagewin -I./../conf -O2 -Wno-long-long -I/sw/include/SDL -D_THREAD_SAFE -MT wud.o -MD -MP -MF ".deps/wud.Tpo" -c -o wud.o wud.cc; \
then mv -f ".deps/wud.Tpo" ".deps/wud.Po"; else rm -f ".deps/wud.Tpo"; exit 1; fi
make[2]: *** No rule to make target `../usecode/libusecode.la', needed by `wud'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


I've looked for a file called libusecode.la, but cannot find it. If anyone has any suggestions on how I should proceed, I'd appreciate it!

Thanks in advance,

me
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by Wizardry Dragon »

Are you attempting to make Exult, or the Exult Tools? WUD is part of the Exult Tools package and not the core Exult package.

Also, the reason you are not finding the file is because the compiler is being unable to build the file, thats the reason it's failing.

--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
pak150
Posts: 35
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by pak150 »

I was attempted to make Exult, not exult tools. Basically all I did was pull down the CVS, run ./autogen.sh, ./configue, and then entered the make command.

I'm currently installing xcode on my girlfriend's powerbook, and everything else I need to run Exult to see if it's an issue with my computer - if it is I may just do an archive an reinstall to see if that helps - unless you have some advice as to removing and reinstalling some of the packages required.

Thanks for your help!
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by Wizardry Dragon »

Might just be the current CVS version doesn't compile properly. I'll give it a hack this evening when I'm done what I'm wroking on now :)

--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
pak150
Posts: 35
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by pak150 »

Thanks Peter - for what it's worth I just tried to make Exult on my girlfriend's powerbook g4 and received the same error. Let me know if you need anything else!

Me
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by Wizardry Dragon »

Just to be sure that its not the problem, what exactly is the make command you're running?

--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
pak150
Posts: 35
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by pak150 »

I just typed "make" after runing autogen.sh and configure, I didn't add anything to the command (I was following the readme.macosx file included in the snapshot). Let me know if you want me to add anything after the make command.
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by Wizardry Dragon »

Hrm, that -should- work fine, it can cause problems if you try to get fancy with the make command - I take it you didn't change autogen.sh?

(Just trying to rule out the obvious here)

---------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
pak150
Posts: 35
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by pak150 »

Nope - I left everything as is.
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by drcode »

Try first running 'make' in the 'usecode' directory; that should build the library. Sounds like we have an out-of-order problem.... Yes, we probably should be building 'usecode' before 'tools'.
pak150
Posts: 35
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by pak150 »

Awesome - I got it to work! I took your advace and ran the make command in the usecode directory, but that produced an error - I'll paste it:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../headers -I./.. -I./../files -I./../imagewin -I./../shapes -I./../objs -I./../audio -I./../gumps -I./../tools -I./../server -I/sw/include/SDL -D_THREAD_SAFE -DMACOSX -O2 -Wno-long-long -MT conversation.lo -MD -MP -MF .deps/conversation.Tpo -c conversation.cc -o conversation.o
conversation.cc:30:31: error: data/exult_bg_flx.h: No such file or directory
conversation.cc: In member function `void Conversation::show_face(int, int, int)':
conversation.cc:226: error: 'EXULT_BG_FLX_MR_FACES_SHP' was not declared in this scope
conversation.cc: In member function `void Conversation::show_avatar_choices(int, char**)':
conversation.cc:462: error: 'EXULT_BG_FLX_MR_FACES_SHP' was not declared in this scope
make[1]: *** [conversation.lo] Error 1
make: *** [all-recursive] Error 1


I assumed that this may have been similar to the last error - and that I just needed to run make in another folder first. When I ran it in data, it created the exult_bg_flx.h file being included in concersation.cc. After that I ran make again in the exult directory and everything was great! Thanks so much for your help - after this exercise my admiration for your project has grown even more.

me
pak150
Posts: 35
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by pak150 »

Note that i had to rerun make in usecode after I ran it in data.
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by Wizardry Dragon »

First of all, sorry I took so long to respond, I had to hunt down a Mac to try this on ;)

I came across the second problem myself; the makefile seems to have problems with scope related to the build order. I'm afraid I don't know enough about the differences in the Mac build of Exult to remedy it though ^_^;;

--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
pak150
Posts: 35
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by pak150 »

No problem at all - your advice helped me get through the problem - I'm trucking away in SI now.

Thanks!
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by marzo »

The problem exists on mingw too, if I use autogen.sh && ./configure && make. The issue is kind of a circular issue:
1) expack, in the tools dir, is needed to make the things in the data dir;
2) ucsymbtbl, in the usecode dir, is needed to make wud in the tools dir;
3) The expack-generated h-files in the data dir are needed to build conversation.*, in the usecode dir.
And yes, this was with DrCode's recent patch. But in any case, there is a circular dependence between the three dirs I mentioned (data, tools, usecode) which is the root of the problem. I have no idea how to fix it, though.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by Wizardry Dragon »

The only real way I percieve (short of rewriting large amounts of code to remove the circular dependance) is to use a previous expack version to make the data dir contents.

--------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Colourless
Site Admin
Posts: 731
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by Colourless »

Or just not use automake.
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by Wizardry Dragon »

But then I have to do work. Im -far- too lazy to do work ^_~

That and I have enough work with this mod of mine :P

---------
Peter M Dodge aka Wizardry Dragon
Lead Designer
Ultima VII: The Feudal Lands
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by marzo »

Or just not use automake.
Sound advice. I myself generally don't use automake; I was wanted to see if I could get it working with mingw.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by drcode »

I see the problem, but what's a good alternative to automake?

OTOH, I just found the paper "Recursive Make Considered Harmful", which talks about creating a single Makefile for the whole project.
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Problem building latest CVS on Mac OS X 10.4.5

Post by wjp »

We could consider using the make-based system Pentagram is currently using.
Locked