Does anyone know how to make modules work in OS X?

Everything about ToME 2.x.x. No spoilers, please

Moderator: Moderator

Message
Author
ggoDeye
Low Yeek
Posts: 9
Joined: Wed Feb 23, 2011 11:39 pm

Does anyone know how to make modules work in OS X?

#1 Post by ggoDeye »

The newer (2.3.x) versions come as a single file on a disk image which initially caused an issue.

I learned that you can right click on the app, "view package contents" and add to the "mods" file.

I assumed this would fix the issue, as adding to the "mods" file is what works on 2.2.x on OS X, and on all version for Windows. However, even with the modules in the appropriate file, there is no option to play under the module upon starting ToME

I have went so far as to do "clean" install and add the module before starting ToME for the first time... When I did the clean install I only deleted the app, and not a full uninstall. I do not know how on a do a full uninstall on my Mac, and the app I use to do this did not delete any other files.

I also have a Windows 7 partition on my MacBook Pro, but I am running into some game breaking visual problems running 2.3.5.

Does anyone have any suggestions for an OS X fix or a for the known visual bugs on Windows 7?
Last edited by ggoDeye on Wed Mar 02, 2011 9:06 am, edited 1 time in total.

AnonymousHero
Spiderkin
Posts: 482
Joined: Sat Mar 18, 2006 12:48 pm

Re: Does anyone know play modules work in OS X?

#2 Post by AnonymousHero »

I know that ToME 2.3.5 definitely had trouble loading modules properly. IIRC the menu did display the modules correctly, but there was memory corruption which could lead to 1) a swift exit from the program or 2) messed up directory names (which would prevent things from loading properly).

You could try 2.3.3 or 2.3.4 instead.

ggoDeye
Low Yeek
Posts: 9
Joined: Wed Feb 23, 2011 11:39 pm

Re: Does anyone know play modules work in OS X?

#3 Post by ggoDeye »

AnonymousHero wrote:I know that ToME 2.3.5 definitely had trouble loading modules properly. IIRC the menu did display the modules correctly, but there was memory corruption which could lead to 1) a swift exit from the program or 2) messed up directory names (which would prevent things from loading properly).

You could try 2.3.3 or 2.3.4 instead.
I haven't tried that as I've assumed that it's a problem with all of the versions that come as a single bundled app. The last version that doesn't use a single bundled app is 2.2.7 which is what I'm currently using. I'll try 2.3.4 and the "unofficial" 2.3.6 or 2.3.7 and report the results here.

Thank you for the quick reply.

Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

Re: Does anyone know how to make modules work in OS X?

#4 Post by Lord Estraven »

Hmm... Maybe try downloading the 2.3.9-ah tarball: http://gitorious.org/tome2/tome2/archiv ... /v2.3.9-ah

I know nothing at all about OSX, but it'd be pretty strange if it didn't come with a compiler and development tools... The only unusual one that 2.3.9 needs is cmake: http://cmake.org/cmake/resources/software.html On Linux you open a terminal, cd into the source directory, run 'cmake .' and then 'make', and it will compile. The procedure might be similar on OSX, though I wouldn't know as I've never used the operating system in my life.

(On Windows you might be able to compile it in Code::Blocks or something. Or you could install MinGW and cmake, update the PATH variable to include them, and do it on the command prompt. IIRC I got that working on WinXP, not sure about Win7.)

jtwadsworth
Wayist
Posts: 15
Joined: Wed Jan 06, 2010 1:51 am

Re: Does anyone know how to make modules work in OS X?

#5 Post by jtwadsworth »

Just another call for help here. I'm sorta new to compiling with Xcode in OS X (SnowLeopard) and was hoping some gurus here could help me compile ToME from src then allow me to add the Theme mod and get it to work. I have a pre-compiled binary of ToME 2.3.5 and although it sees Theme in the mods folder of the package, it crashes when trying to access it with a "unable to create module directory" or some such error.

1. Anyone have a good source code for the latest ToME 2.3.? that will compile for OS X or universal binary?

2. If above, then anyone mind helping me compile it and getting Theme to load?

jtw

Ok I got the sourcecode from Gitorious. I have Xcode and Cmake installed. I followed in the instructions and used cmake . and make commands and all flowed with few errors. It produces a file 'tome' (not tome2 as the readme indicates in the sourcecode) that starts to execute but has errors. I'm happy to run it in X11 instead of .app but need help please if anyone would. Then I can start with trying to load Theme

AnonymousHero
Spiderkin
Posts: 482
Joined: Sat Mar 18, 2006 12:48 pm

Re: Does anyone know how to make modules work in OS X?

#6 Post by AnonymousHero »

jtwadsworth wrote: Ok I got the sourcecode from Gitorious. I have Xcode and Cmake installed. I followed in the instructions and used cmake . and make commands and all flowed with few errors. It produces a file 'tome' (not tome2 as the readme indicates in the sourcecode) that starts to execute but has errors. I'm happy to run it in X11 instead of .app but need help please if anyone would. Then I can start with trying to load Theme
I don't have access to OS X, but I'll certainly try to do what I can to help.

What errors are you seeing? (Messages, any weird/garbled output, something else?)

Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

Re: Does anyone know how to make modules work in OS X?

#7 Post by Lord Estraven »

Did you run it by clicking the binary? I don't know much about OSX, but maybe the file manager doesn't change its working directory... Can you try running it from a terminal, cding into its directory first?

jtwadsworth
Wayist
Posts: 15
Joined: Wed Jan 06, 2010 1:51 am

Re: Does anyone know how to make modules work in OS X?

#8 Post by jtwadsworth »

I don't have access to OS X, but I'll certainly try to do what I can to help.

What errors are you seeing? (Messages, any weird/garbled output, something else?)
Here is the complete output of the compile from source for Tome2:

Code: Select all

Last login: Sat Apr  9 02:52:21 on ttys000
JTWiMac:~ jtw$ cd Downloads/tome2-tome2/src/
JTWiMac:src jtw$ ls
CMakeLists.txt	cmovie.c	help.c		main-gtk.c	monster.pkg	q_evil.c	q_ultrae.c	tables.c	z-sock.h
ENGLISH.txt	config.h	init1.c		main-gtk2.c	monster1.c	q_haunted.c	q_ultrag.c	traps.c		z-term.c
angband.h	defines.h	init2.c		main-net.c	monster2.c	q_hobbit.c	q_wight.c	types.h		z-term.h
angband.ico	dungeon.c	irc.c		main-sdl-iso.c	monster3.c	q_invas.c	q_wolves.c	util.c		z-util.c
angband.rc	dungeon.pkg	iso		main-sdl.c	notes.c		q_main.c	quest.pkg	util.pkg	z-util.h
birth.c		externs.h	lauxlib.h	main-sla.c	object.pkg	q_narsil.c	randart.c	variable.c	z-virt.c
bldg.c		files.c		levels.c	main-win.c	object1.c	q_nazgul.c	readdib.c	wild.c		z-virt.h
carbon		gen_evol.c	load_gif.c	main-x11.c	object2.c	q_nirna.c	readdib.h	wizard1.c	z_pack.pkg
cave.c		gen_maze.c	loadsave.c	main-x11.c.orig	player.pkg	q_one.c		script.c	wizard2.c
cmd1.c		generate.c	lua		main-x11.c.rej	player_c.pkg	q_poison.c	skills.c	xtra1.c
cmd2.c		gods.c		lua_bind.c	main-xaw.c	plots.c		q_rand.c	spells.pkg	xtra2.c
cmd3.c		h-basic.h	maid-x11.c	main-xxx.c	plots.h		q_shroom.c	spells1.c	z-form.c
cmd4.c		h-config.h	maim-iso.c	main.c		powers.c	q_spider.c	spells2.c	z-form.h
cmd5.c		h-define.h	main-cap.c	melee1.c	q_betwen.c	q_thief.c	squeltch.c	z-rand.c
cmd6.c		h-system.h	main-crb.c	melee2.c	q_dragons.c	q_thrain.c	status.c	z-rand.h
cmd7.c		h-type.h	main-gcu.c	modules.c	q_eol.c		q_troll.c	store.c		z-sock.c
JTWiMac:src jtw$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jtw/Downloads/tome2-tome2/src
JTWiMac:src jtw$ make
Scanning dependencies of target lua
[  0%] Building C object lua/CMakeFiles/lua.dir/lapi.o
[  1%] Building C object lua/CMakeFiles/lua.dir/lcode.o
[  2%] Building C object lua/CMakeFiles/lua.dir/ldebug.o
[  3%] Building C object lua/CMakeFiles/lua.dir/ldo.o
[  4%] Building C object lua/CMakeFiles/lua.dir/lfunc.o
[  5%] Building C object lua/CMakeFiles/lua.dir/lgc.o
[  6%] Building C object lua/CMakeFiles/lua.dir/llex.o
[  7%] Building C object lua/CMakeFiles/lua.dir/lmem.o
[  7%] Building C object lua/CMakeFiles/lua.dir/lobject.o
[  8%] Building C object lua/CMakeFiles/lua.dir/lparser.o
[  9%] Building C object lua/CMakeFiles/lua.dir/lstate.o
[ 10%] Building C object lua/CMakeFiles/lua.dir/lstring.o
[ 11%] Building C object lua/CMakeFiles/lua.dir/ltable.o
[ 12%] Building C object lua/CMakeFiles/lua.dir/ltests.o
[ 13%] Building C object lua/CMakeFiles/lua.dir/ltm.o
[ 14%] Building C object lua/CMakeFiles/lua.dir/lundump.o
[ 14%] Building C object lua/CMakeFiles/lua.dir/lvm.o
[ 15%] Building C object lua/CMakeFiles/lua.dir/lzio.o
[ 16%] Building C object lua/CMakeFiles/lua.dir/lauxlib.o
[ 17%] Building C object lua/CMakeFiles/lua.dir/lbaselib.o
[ 18%] Building C object lua/CMakeFiles/lua.dir/ldblib.o
[ 19%] Building C object lua/CMakeFiles/lua.dir/liolib.o
[ 20%] Building C object lua/CMakeFiles/lua.dir/lstrlib.o
[ 21%] Building C object lua/CMakeFiles/lua.dir/tolua_lb.o
[ 21%] Building C object lua/CMakeFiles/lua.dir/tolua_rg.o
[ 22%] Building C object lua/CMakeFiles/lua.dir/tolua_tt.o
[ 23%] Building C object lua/CMakeFiles/lua.dir/tolua_tm.o
[ 24%] Building C object lua/CMakeFiles/lua.dir/tolua_gp.o
[ 25%] Building C object lua/CMakeFiles/lua.dir/tolua_eh.o
[ 26%] Building C object lua/CMakeFiles/lua.dir/tolua_bd.o
Linking C static library liblua.a
/usr/bin/ranlib: file: liblua.a(ltests.o) has no symbols
[ 26%] Built target lua
Scanning dependencies of target tolua
[ 27%] Building C object lua/CMakeFiles/tolua.dir/tolua.o
[ 28%] Building C object lua/CMakeFiles/tolua.dir/tolualua.o
Linking C executable tolua
[ 28%] Built target tolua
[ 29%] Generating w_dun.c
[ 29%] Generating w_mnster.c
[ 30%] Generating w_player.c
[ 31%] Generating w_play_c.c
[ 32%] Generating w_z_pack.c
[ 33%] Generating w_obj.c
[ 34%] Generating w_util.c
[ 35%] Generating w_spells.c
[ 36%] Generating w_quest.c
Scanning dependencies of target tome
[ 36%] Building C object CMakeFiles/tome.dir/main-gcu.o
[ 37%] Building C object CMakeFiles/tome.dir/main-x11.o
[ 38%] Building C object CMakeFiles/tome.dir/main-xaw.o
[ 39%] Building C object CMakeFiles/tome.dir/main-sdl.o
[ 40%] Building C object CMakeFiles/tome.dir/main-gtk2.o
[ 41%] Building C object CMakeFiles/tome.dir/z-rand.o
[ 42%] Building C object CMakeFiles/tome.dir/z-util.o
[ 43%] Building C object CMakeFiles/tome.dir/z-form.o
[ 43%] Building C object CMakeFiles/tome.dir/z-virt.o
[ 44%] Building C object CMakeFiles/tome.dir/z-term.o
[ 45%] Building C object CMakeFiles/tome.dir/z-sock.o
[ 46%] Building C object CMakeFiles/tome.dir/variable.o
[ 47%] Building C object CMakeFiles/tome.dir/tables.o
[ 48%] Building C object CMakeFiles/tome.dir/plots.o
[ 49%] Building C object CMakeFiles/tome.dir/util.o
[ 50%] Building C object CMakeFiles/tome.dir/cave.o
[ 50%] Building C object CMakeFiles/tome.dir/dungeon.o
[ 51%] Building C object CMakeFiles/tome.dir/melee1.o
[ 52%] Building C object CMakeFiles/tome.dir/melee2.o
[ 53%] Building C object CMakeFiles/tome.dir/modules.o
[ 54%] Building C object CMakeFiles/tome.dir/object1.o
[ 55%] Building C object CMakeFiles/tome.dir/object2.o
[ 56%] Building C object CMakeFiles/tome.dir/randart.o
[ 57%] Building C object CMakeFiles/tome.dir/squeltch.o
[ 58%] Building C object CMakeFiles/tome.dir/traps.o
[ 58%] Building C object CMakeFiles/tome.dir/monster1.o
[ 59%] Building C object CMakeFiles/tome.dir/monster2.o
[ 60%] Building C object CMakeFiles/tome.dir/monster3.o
[ 61%] Building C object CMakeFiles/tome.dir/xtra1.o
[ 62%] Building C object CMakeFiles/tome.dir/xtra2.o
[ 63%] Building C object CMakeFiles/tome.dir/skills.o
[ 64%] Building C object CMakeFiles/tome.dir/powers.o
[ 65%] Building C object CMakeFiles/tome.dir/gods.o
[ 65%] Building C object CMakeFiles/tome.dir/spells1.o
[ 66%] Building C object CMakeFiles/tome.dir/spells2.o
[ 67%] Building C object CMakeFiles/tome.dir/status.o
[ 68%] Building C object CMakeFiles/tome.dir/files.o
[ 69%] Building C object CMakeFiles/tome.dir/notes.o
[ 70%] Building C object CMakeFiles/tome.dir/loadsave.o
[ 71%] Building C object CMakeFiles/tome.dir/cmd1.o
[ 72%] Building C object CMakeFiles/tome.dir/cmd2.o
[ 72%] Building C object CMakeFiles/tome.dir/cmd3.o
[ 73%] Building C object CMakeFiles/tome.dir/cmd4.o
[ 74%] Building C object CMakeFiles/tome.dir/cmd5.o
[ 75%] Building C object CMakeFiles/tome.dir/cmd6.o
[ 76%] Building C object CMakeFiles/tome.dir/cmd7.o
[ 77%] Building C object CMakeFiles/tome.dir/help.o
[ 78%] Building C object CMakeFiles/tome.dir/generate.o
[ 79%] Building C object CMakeFiles/tome.dir/gen_maze.o
[ 79%] Building C object CMakeFiles/tome.dir/gen_evol.o
[ 80%] Building C object CMakeFiles/tome.dir/wild.o
[ 81%] Building C object CMakeFiles/tome.dir/levels.o
[ 82%] Building C object CMakeFiles/tome.dir/store.o
[ 83%] Building C object CMakeFiles/tome.dir/bldg.o
[ 84%] Building C object CMakeFiles/tome.dir/cmovie.o
[ 85%] Building C object CMakeFiles/tome.dir/irc.o
[ 86%] Building C object CMakeFiles/tome.dir/wizard2.o
[ 86%] Building C object CMakeFiles/tome.dir/init2.o
[ 87%] Building C object CMakeFiles/tome.dir/birth.o
[ 88%] Building C object CMakeFiles/tome.dir/wizard1.o
[ 89%] Building C object CMakeFiles/tome.dir/init1.o
[ 90%] Building C object CMakeFiles/tome.dir/main.o
[ 91%] Building C object CMakeFiles/tome.dir/lua_bind.o
[ 92%] Building C object CMakeFiles/tome.dir/script.o
[ 93%] Building C object CMakeFiles/tome.dir/w_mnster.o
[ 93%] Building C object CMakeFiles/tome.dir/w_player.o
[ 94%] Building C object CMakeFiles/tome.dir/w_play_c.o
[ 95%] Building C object CMakeFiles/tome.dir/w_z_pack.o
[ 96%] Building C object CMakeFiles/tome.dir/w_obj.o
[ 97%] Building C object CMakeFiles/tome.dir/w_util.o
[ 98%] Building C object CMakeFiles/tome.dir/w_spells.o
[ 99%] Building C object CMakeFiles/tome.dir/w_quest.o
[100%] Building C object CMakeFiles/tome.dir/w_dun.o
Linking C executable tome
[100%] Built target tome
JTWiMac:src jtw$ ls
CMakeCache.txt		externs.h		main-crb.c		object2.c		q_ultrae.c		w_obj.c
CMakeFiles		files.c			main-gcu.c		player.pkg		q_ultrag.c		w_play_c.c
CMakeLists.txt		gen_evol.c		main-gtk.c		player_c.pkg		q_wight.c		w_player.c
ENGLISH.txt		gen_maze.c		main-gtk2.c		plots.c			q_wolves.c		w_quest.c
Makefile		generate.c		main-net.c		plots.h			quest.pkg		w_spells.c
angband.h		gods.c			main-sdl-iso.c		powers.c		randart.c		w_util.c
angband.ico		h-basic.h		main-sdl.c		q_betwen.c		readdib.c		w_z_pack.c
angband.rc		h-config.h		main-sla.c		q_dragons.c		readdib.h		wild.c
birth.c			h-define.h		main-win.c		q_eol.c			script.c		wizard1.c
bldg.c			h-system.h		main-x11.c		q_evil.c		skills.c		wizard2.c
carbon			h-type.h		main-x11.c.orig		q_haunted.c		spells.pkg		xtra1.c
cave.c			help.c			main-x11.c.rej		q_hobbit.c		spells1.c		xtra2.c
cmake_install.cmake	init1.c			main-xaw.c		q_invas.c		spells2.c		z-form.c
cmd1.c			init2.c			main-xxx.c		q_main.c		squeltch.c		z-form.h
cmd2.c			irc.c			main.c			q_narsil.c		status.c		z-rand.c
cmd3.c			iso			melee1.c		q_nazgul.c		store.c			z-rand.h
cmd4.c			lauxlib.h		melee2.c		q_nirna.c		tables.c		z-sock.c
cmd5.c			levels.c		modules.c		q_one.c			tome			z-sock.h
cmd6.c			load_gif.c		monster.pkg		q_poison.c		traps.c			z-term.c
cmd7.c			loadsave.c		monster1.c		q_rand.c		types.h			z-term.h
cmovie.c		lua			monster2.c		q_shroom.c		util.c			z-util.c
config.h		lua_bind.c		monster3.c		q_spider.c		util.pkg		z-util.h
defines.h		maid-x11.c		notes.c			q_thief.c		variable.c		z-virt.c
dungeon.c		maim-iso.c		object.pkg		q_thrain.c		w_dun.c			z-virt.h
dungeon.pkg		main-cap.c		object1.c		q_troll.c		w_mnster.c		z_pack.pkg
JTWiMac:src jtw$
That yields a file tome (not tome2 as in the readme for the source). The tome file is listed but will not execute by command line, only double clicking on the file in FInder. Executing that file tome yields:

Code: Select all

Last login: Sun Apr 10 10:48:01 on ttys000
JTWiMac:~ jtw$ /Users/jtw/Downloads/tome2-tome2/src/tome ; exit;
/Users/jtw/Downloads/tome2-tome2/src/tome: Unable to prepare any 'display module'!
logout

[Process completed]
I am getting the src from Gitorious for both Tome 2.3.9 and Theme (which we'll get to eventually I hope)

jtwadsworth
Wayist
Posts: 15
Joined: Wed Jan 06, 2010 1:51 am

Re: Does anyone know how to make modules work in OS X?

#9 Post by jtwadsworth »

Lord Estraven wrote:Did you run it by clicking the binary? I don't know much about OSX, but maybe the file manager doesn't change its working directory... Can you try running it from a terminal, cding into its directory first?
Please see my response up-post. Thanks!

jtw

AnonymousHero
Spiderkin
Posts: 482
Joined: Sat Mar 18, 2006 12:48 pm

Re: Does anyone know how to make modules work in OS X?

#10 Post by AnonymousHero »

(The "tome2" vs. "tome" thing is a typo in the README file. Quite surprising that nobody's pointed it out before! :))

Anyway, the problem here is that CMake isn't picking up the development files necessary for X11 support. This is usually due to one of two reasons: 1) They aren't installed, or 2) they aren't installed properly.

According to this: http://tech.inhelsinki.nl/gnu_developem ... _mac_os_x/ there should be an X11 package which contains the necessary files.

There should be files named

Code: Select all

Xlib.h
Xutil.h
keysym.h
keysymdef.h
Xatom.h
(usually located somewhere like /usr/include/X11 or /usr/local/include/X11 or similar.)

jtwadsworth
Wayist
Posts: 15
Joined: Wed Jan 06, 2010 1:51 am

Re: Does anyone know how to make modules work in OS X?

#11 Post by jtwadsworth »

AnonymousHero wrote:(The "tome2" vs. "tome" thing is a typo in the README file. Quite surprising that nobody's pointed it out before! :))

Anyway, the problem here is that CMake isn't picking up the development files necessary for X11 support. This is usually due to one of two reasons: 1) They aren't installed, or 2) they aren't installed properly.

According to this: http://tech.inhelsinki.nl/gnu_developem ... _mac_os_x/ there should be an X11 package which contains the necessary files.

There should be files named

Code: Select all

Xlib.h
Xutil.h
keysym.h
keysymdef.h
Xatom.h
(usually located somewhere like /usr/include/X11 or /usr/local/include/X11 or similar.)

Ok I had Xcode installed from long ago, but must have missed installing X11 support separately. That has been done, and the files you list above are now located in /usr/X11/include/X11 and linked from /usr/include/X11

The output is:

Code: Select all

JTWiMac:src jtw$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jtw/Downloads/tome2-tome2/src
JTWiMac:src jtw$ make
Scanning dependencies of target lua
[  0%] Building C object lua/CMakeFiles/lua.dir/lapi.o
[  1%] Building C object lua/CMakeFiles/lua.dir/lcode.o
[  2%] Building C object lua/CMakeFiles/lua.dir/ldebug.o
[  3%] Building C object lua/CMakeFiles/lua.dir/ldo.o
[  4%] Building C object lua/CMakeFiles/lua.dir/lfunc.o
[  5%] Building C object lua/CMakeFiles/lua.dir/lgc.o
[  6%] Building C object lua/CMakeFiles/lua.dir/llex.o
[  7%] Building C object lua/CMakeFiles/lua.dir/lmem.o
[  8%] Building C object lua/CMakeFiles/lua.dir/lobject.o
[  8%] Building C object lua/CMakeFiles/lua.dir/lparser.o
[  9%] Building C object lua/CMakeFiles/lua.dir/lstate.o
[ 10%] Building C object lua/CMakeFiles/lua.dir/lstring.o
[ 11%] Building C object lua/CMakeFiles/lua.dir/ltable.o
[ 12%] Building C object lua/CMakeFiles/lua.dir/ltests.o
[ 13%] Building C object lua/CMakeFiles/lua.dir/ltm.o
[ 14%] Building C object lua/CMakeFiles/lua.dir/lundump.o
[ 15%] Building C object lua/CMakeFiles/lua.dir/lvm.o
[ 16%] Building C object lua/CMakeFiles/lua.dir/lzio.o
[ 16%] Building C object lua/CMakeFiles/lua.dir/lauxlib.o
[ 17%] Building C object lua/CMakeFiles/lua.dir/lbaselib.o
[ 18%] Building C object lua/CMakeFiles/lua.dir/ldblib.o
[ 19%] Building C object lua/CMakeFiles/lua.dir/liolib.o
[ 20%] Building C object lua/CMakeFiles/lua.dir/lstrlib.o
[ 21%] Building C object lua/CMakeFiles/lua.dir/tolua_lb.o
[ 22%] Building C object lua/CMakeFiles/lua.dir/tolua_rg.o
[ 23%] Building C object lua/CMakeFiles/lua.dir/tolua_tt.o
[ 24%] Building C object lua/CMakeFiles/lua.dir/tolua_tm.o
[ 25%] Building C object lua/CMakeFiles/lua.dir/tolua_gp.o
[ 25%] Building C object lua/CMakeFiles/lua.dir/tolua_eh.o
[ 26%] Building C object lua/CMakeFiles/lua.dir/tolua_bd.o
Linking C static library liblua.a
/usr/bin/ranlib: file: liblua.a(ltests.o) has no symbols
[ 26%] Built target lua
Scanning dependencies of target tolua
[ 27%] Building C object lua/CMakeFiles/tolua.dir/tolua.o
[ 28%] Building C object lua/CMakeFiles/tolua.dir/tolualua.o
Linking C executable tolua
[ 28%] Built target tolua
[ 29%] Generating w_dun.c
[ 30%] Generating w_mnster.c
[ 31%] Generating w_player.c
[ 32%] Generating w_play_c.c
[ 33%] Generating w_z_pack.c
[ 34%] Generating w_obj.c
[ 35%] Generating w_util.c
[ 36%] Generating w_spells.c
[ 37%] Generating w_quest.c
Scanning dependencies of target tome
[ 38%] Building C object CMakeFiles/tome.dir/main-gcu.o
[ 39%] Building C object CMakeFiles/tome.dir/main-x11.o
[ 40%] Building C object CMakeFiles/tome.dir/main-xaw.o
[ 41%] Building C object CMakeFiles/tome.dir/main-sdl.o
[ 42%] Building C object CMakeFiles/tome.dir/main-gtk2.o
[ 42%] Building C object CMakeFiles/tome.dir/z-rand.o
[ 43%] Building C object CMakeFiles/tome.dir/z-util.o
[ 44%] Building C object CMakeFiles/tome.dir/z-form.o
[ 45%] Building C object CMakeFiles/tome.dir/z-virt.o
[ 46%] Building C object CMakeFiles/tome.dir/z-term.o
[ 47%] Building C object CMakeFiles/tome.dir/variable.o
[ 48%] Building C object CMakeFiles/tome.dir/tables.o
[ 49%] Building C object CMakeFiles/tome.dir/plots.o
[ 50%] Building C object CMakeFiles/tome.dir/util.o
[ 50%] Building C object CMakeFiles/tome.dir/cave.o
[ 51%] Building C object CMakeFiles/tome.dir/dungeon.o
[ 52%] Building C object CMakeFiles/tome.dir/melee1.o
[ 53%] Building C object CMakeFiles/tome.dir/melee2.o
[ 54%] Building C object CMakeFiles/tome.dir/modules.o
[ 55%] Building C object CMakeFiles/tome.dir/object1.o
[ 56%] Building C object CMakeFiles/tome.dir/object2.o
[ 57%] Building C object CMakeFiles/tome.dir/randart.o
[ 58%] Building C object CMakeFiles/tome.dir/squeltch.o
[ 59%] Building C object CMakeFiles/tome.dir/traps.o
[ 59%] Building C object CMakeFiles/tome.dir/monster1.o
[ 60%] Building C object CMakeFiles/tome.dir/monster2.o
[ 61%] Building C object CMakeFiles/tome.dir/monster3.o
[ 62%] Building C object CMakeFiles/tome.dir/xtra1.o
[ 63%] Building C object CMakeFiles/tome.dir/xtra2.o
[ 64%] Building C object CMakeFiles/tome.dir/skills.o
[ 65%] Building C object CMakeFiles/tome.dir/powers.o
[ 66%] Building C object CMakeFiles/tome.dir/gods.o
[ 67%] Building C object CMakeFiles/tome.dir/spells1.o
[ 67%] Building C object CMakeFiles/tome.dir/spells2.o
[ 68%] Building C object CMakeFiles/tome.dir/status.o
[ 69%] Building C object CMakeFiles/tome.dir/files.o
[ 70%] Building C object CMakeFiles/tome.dir/notes.o
[ 71%] Building C object CMakeFiles/tome.dir/loadsave.o
[ 72%] Building C object CMakeFiles/tome.dir/cmd1.o
[ 73%] Building C object CMakeFiles/tome.dir/cmd2.o
[ 74%] Building C object CMakeFiles/tome.dir/cmd3.o
[ 75%] Building C object CMakeFiles/tome.dir/cmd4.o
[ 75%] Building C object CMakeFiles/tome.dir/cmd5.o
[ 76%] Building C object CMakeFiles/tome.dir/cmd6.o
[ 77%] Building C object CMakeFiles/tome.dir/cmd7.o
[ 78%] Building C object CMakeFiles/tome.dir/help.o
[ 79%] Building C object CMakeFiles/tome.dir/generate.o
[ 80%] Building C object CMakeFiles/tome.dir/gen_maze.o
[ 81%] Building C object CMakeFiles/tome.dir/gen_evol.o
[ 82%] Building C object CMakeFiles/tome.dir/wild.o
[ 83%] Building C object CMakeFiles/tome.dir/levels.o
[ 84%] Building C object CMakeFiles/tome.dir/store.o
[ 84%] Building C object CMakeFiles/tome.dir/bldg.o
[ 85%] Building C object CMakeFiles/tome.dir/cmovie.o
[ 86%] Building C object CMakeFiles/tome.dir/wizard2.o
[ 87%] Building C object CMakeFiles/tome.dir/init2.o
[ 88%] Building C object CMakeFiles/tome.dir/birth.o
[ 89%] Building C object CMakeFiles/tome.dir/wizard1.o
[ 90%] Building C object CMakeFiles/tome.dir/init1.o
[ 91%] Building C object CMakeFiles/tome.dir/main.o
[ 92%] Building C object CMakeFiles/tome.dir/lua_bind.o
[ 92%] Building C object CMakeFiles/tome.dir/script.o
[ 93%] Building C object CMakeFiles/tome.dir/w_mnster.o
[ 94%] Building C object CMakeFiles/tome.dir/w_player.o
[ 95%] Building C object CMakeFiles/tome.dir/w_play_c.o
[ 96%] Building C object CMakeFiles/tome.dir/w_z_pack.o
[ 97%] Building C object CMakeFiles/tome.dir/w_obj.o
[ 98%] Building C object CMakeFiles/tome.dir/w_util.o
[ 99%] Building C object CMakeFiles/tome.dir/w_spells.o
[100%] Building C object CMakeFiles/tome.dir/w_quest.o
[100%] Building C object CMakeFiles/tome.dir/w_dun.o
Linking C executable tome
[100%] Built target tome
JTWiMac:src jtw$ 
Executing 'tome' from Finder (it cannot be via command line apparently) I still get:

Code: Select all

Last login: Sun Apr 10 15:37:42 on ttys000
JTWiMac:~ jtw$ /Users/jtw/Downloads/tome2-tome2/src/tome ; exit;
/Users/jtw/Downloads/tome2-tome2/src/tome: Unable to prepare any 'display module'!
logout

[Process completed]

Other suggestions as to where I'm screwing up please?

jtw

AnonymousHero
Spiderkin
Posts: 482
Joined: Sat Mar 18, 2006 12:48 pm

Re: Does anyone know how to make modules work in OS X?

#12 Post by AnonymousHero »

You probably just need to clear the CMake cache before running cmake again.

Code: Select all

rm CMakeCache.txt
rm -rf CMakeFiles
cmake .
should be enough to get CMake to pick it up.

jtwadsworth
Wayist
Posts: 15
Joined: Wed Jan 06, 2010 1:51 am

Re: Does anyone know how to make modules work in OS X?

#13 Post by jtwadsworth »

AnonymousHero wrote:You probably just need to clear the CMake cache before running cmake again.

Code: Select all

rm CMakeCache.txt
rm -rf CMakeFiles
cmake .
should be enough to get CMake to pick it up.
No luck. Now I get :

Code: Select all

ld: warning: directory '/local/lib' following -L not found
ld: warning: directory '/local/lib' following -L not found

AnonymousHero
Spiderkin
Posts: 482
Joined: Sat Mar 18, 2006 12:48 pm

Re: Does anyone know how to make modules work in OS X?

#14 Post by AnonymousHero »

Being just warnings, I shouldn't think those would be crucial. Are you also getting error messages from the linking process?

If the linker in complaining about missing libX11.so, you might try clearing the cmake cache again and running

Code: Select all

env LDFLAGS=-L/usr/X11R6/lib cmake .

jtwadsworth
Wayist
Posts: 15
Joined: Wed Jan 06, 2010 1:51 am

Re: Does anyone know how to make modules work in OS X?

#15 Post by jtwadsworth »

AnonymousHero wrote:Being just warnings, I shouldn't think those would be crucial. Are you also getting error messages from the linking process?

If the linker in complaining about missing libX11.so, you might try clearing the cmake cache again and running

Code: Select all

env LDFLAGS=-L/usr/X11R6/lib cmake .
Here is the output now:

Code: Select all

JTWiMac:src jtw$ env LDFLAGS=-L/usr/X11R6/lib cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jtw/Downloads/tome2-tome2/src
JTWiMac:src jtw$ make
Scanning dependencies of target lua
[  0%] Building C object lua/CMakeFiles/lua.dir/lapi.o
[  1%] Building C object lua/CMakeFiles/lua.dir/lcode.o
[  2%] Building C object lua/CMakeFiles/lua.dir/ldebug.o
[  3%] Building C object lua/CMakeFiles/lua.dir/ldo.o
[  4%] Building C object lua/CMakeFiles/lua.dir/lfunc.o
[  5%] Building C object lua/CMakeFiles/lua.dir/lgc.o
[  6%] Building C object lua/CMakeFiles/lua.dir/llex.o
[  7%] Building C object lua/CMakeFiles/lua.dir/lmem.o
[  8%] Building C object lua/CMakeFiles/lua.dir/lobject.o
[  8%] Building C object lua/CMakeFiles/lua.dir/lparser.o
[  9%] Building C object lua/CMakeFiles/lua.dir/lstate.o
[ 10%] Building C object lua/CMakeFiles/lua.dir/lstring.o
[ 11%] Building C object lua/CMakeFiles/lua.dir/ltable.o
[ 12%] Building C object lua/CMakeFiles/lua.dir/ltests.o
[ 13%] Building C object lua/CMakeFiles/lua.dir/ltm.o
[ 14%] Building C object lua/CMakeFiles/lua.dir/lundump.o
[ 15%] Building C object lua/CMakeFiles/lua.dir/lvm.o
[ 16%] Building C object lua/CMakeFiles/lua.dir/lzio.o
[ 16%] Building C object lua/CMakeFiles/lua.dir/lauxlib.o
[ 17%] Building C object lua/CMakeFiles/lua.dir/lbaselib.o
[ 18%] Building C object lua/CMakeFiles/lua.dir/ldblib.o
[ 19%] Building C object lua/CMakeFiles/lua.dir/liolib.o
[ 20%] Building C object lua/CMakeFiles/lua.dir/lstrlib.o
[ 21%] Building C object lua/CMakeFiles/lua.dir/tolua_lb.o
[ 22%] Building C object lua/CMakeFiles/lua.dir/tolua_rg.o
[ 23%] Building C object lua/CMakeFiles/lua.dir/tolua_tt.o
[ 24%] Building C object lua/CMakeFiles/lua.dir/tolua_tm.o
[ 25%] Building C object lua/CMakeFiles/lua.dir/tolua_gp.o
[ 25%] Building C object lua/CMakeFiles/lua.dir/tolua_eh.o
[ 26%] Building C object lua/CMakeFiles/lua.dir/tolua_bd.o
Linking C static library liblua.a
/usr/bin/ranlib: file: liblua.a(ltests.o) has no symbols
[ 26%] Built target lua
Scanning dependencies of target tolua
[ 27%] Building C object lua/CMakeFiles/tolua.dir/tolua.o
[ 28%] Building C object lua/CMakeFiles/tolua.dir/tolualua.o
Linking C executable tolua
ld: warning: directory '/local/lib' following -L not found
[ 28%] Built target tolua
[ 29%] Generating w_dun.c
[ 30%] Generating w_mnster.c
[ 31%] Generating w_player.c
[ 32%] Generating w_play_c.c
[ 33%] Generating w_z_pack.c
[ 34%] Generating w_obj.c
[ 35%] Generating w_util.c
[ 36%] Generating w_spells.c
[ 37%] Generating w_quest.c
Scanning dependencies of target tome
[ 38%] Building C object CMakeFiles/tome.dir/main-gcu.o
[ 39%] Building C object CMakeFiles/tome.dir/main-x11.o
[ 40%] Building C object CMakeFiles/tome.dir/main-xaw.o
[ 41%] Building C object CMakeFiles/tome.dir/main-sdl.o
[ 42%] Building C object CMakeFiles/tome.dir/main-gtk2.o
[ 42%] Building C object CMakeFiles/tome.dir/z-rand.o
[ 43%] Building C object CMakeFiles/tome.dir/z-util.o
[ 44%] Building C object CMakeFiles/tome.dir/z-form.o
[ 45%] Building C object CMakeFiles/tome.dir/z-virt.o
[ 46%] Building C object CMakeFiles/tome.dir/z-term.o
[ 47%] Building C object CMakeFiles/tome.dir/variable.o
[ 48%] Building C object CMakeFiles/tome.dir/tables.o
[ 49%] Building C object CMakeFiles/tome.dir/plots.o
[ 50%] Building C object CMakeFiles/tome.dir/util.o
[ 50%] Building C object CMakeFiles/tome.dir/cave.o
[ 51%] Building C object CMakeFiles/tome.dir/dungeon.o
[ 52%] Building C object CMakeFiles/tome.dir/melee1.o
[ 53%] Building C object CMakeFiles/tome.dir/melee2.o
[ 54%] Building C object CMakeFiles/tome.dir/modules.o
[ 55%] Building C object CMakeFiles/tome.dir/object1.o
[ 56%] Building C object CMakeFiles/tome.dir/object2.o
[ 57%] Building C object CMakeFiles/tome.dir/randart.o
[ 58%] Building C object CMakeFiles/tome.dir/squeltch.o
[ 59%] Building C object CMakeFiles/tome.dir/traps.o
[ 59%] Building C object CMakeFiles/tome.dir/monster1.o
[ 60%] Building C object CMakeFiles/tome.dir/monster2.o
[ 61%] Building C object CMakeFiles/tome.dir/monster3.o
[ 62%] Building C object CMakeFiles/tome.dir/xtra1.o
[ 63%] Building C object CMakeFiles/tome.dir/xtra2.o
[ 64%] Building C object CMakeFiles/tome.dir/skills.o
[ 65%] Building C object CMakeFiles/tome.dir/powers.o
[ 66%] Building C object CMakeFiles/tome.dir/gods.o
[ 67%] Building C object CMakeFiles/tome.dir/spells1.o
[ 67%] Building C object CMakeFiles/tome.dir/spells2.o
[ 68%] Building C object CMakeFiles/tome.dir/status.o
[ 69%] Building C object CMakeFiles/tome.dir/files.o
[ 70%] Building C object CMakeFiles/tome.dir/notes.o
[ 71%] Building C object CMakeFiles/tome.dir/loadsave.o
[ 72%] Building C object CMakeFiles/tome.dir/cmd1.o
[ 73%] Building C object CMakeFiles/tome.dir/cmd2.o
[ 74%] Building C object CMakeFiles/tome.dir/cmd3.o
[ 75%] Building C object CMakeFiles/tome.dir/cmd4.o
[ 75%] Building C object CMakeFiles/tome.dir/cmd5.o
[ 76%] Building C object CMakeFiles/tome.dir/cmd6.o
[ 77%] Building C object CMakeFiles/tome.dir/cmd7.o
[ 78%] Building C object CMakeFiles/tome.dir/help.o
[ 79%] Building C object CMakeFiles/tome.dir/generate.o
[ 80%] Building C object CMakeFiles/tome.dir/gen_maze.o
[ 81%] Building C object CMakeFiles/tome.dir/gen_evol.o
[ 82%] Building C object CMakeFiles/tome.dir/wild.o
[ 83%] Building C object CMakeFiles/tome.dir/levels.o
[ 84%] Building C object CMakeFiles/tome.dir/store.o
[ 84%] Building C object CMakeFiles/tome.dir/bldg.o
[ 85%] Building C object CMakeFiles/tome.dir/cmovie.o
[ 86%] Building C object CMakeFiles/tome.dir/wizard2.o
[ 87%] Building C object CMakeFiles/tome.dir/init2.o
[ 88%] Building C object CMakeFiles/tome.dir/birth.o
[ 89%] Building C object CMakeFiles/tome.dir/wizard1.o
[ 90%] Building C object CMakeFiles/tome.dir/init1.o
[ 91%] Building C object CMakeFiles/tome.dir/main.o
[ 92%] Building C object CMakeFiles/tome.dir/lua_bind.o
[ 92%] Building C object CMakeFiles/tome.dir/script.o
[ 93%] Building C object CMakeFiles/tome.dir/w_mnster.o
[ 94%] Building C object CMakeFiles/tome.dir/w_player.o
[ 95%] Building C object CMakeFiles/tome.dir/w_play_c.o
[ 96%] Building C object CMakeFiles/tome.dir/w_z_pack.o
[ 97%] Building C object CMakeFiles/tome.dir/w_obj.o
[ 98%] Building C object CMakeFiles/tome.dir/w_util.o
[ 99%] Building C object CMakeFiles/tome.dir/w_spells.o
[100%] Building C object CMakeFiles/tome.dir/w_quest.o
[100%] Building C object CMakeFiles/tome.dir/w_dun.o
Linking C executable tome
ld: warning: directory '/local/lib' following -L not found
[100%] Built target tome
JTWiMac:src jtw$ 
and still on executing 'tome':

Code: Select all

Last login: Tue Apr 12 19:50:01 on ttys000
JTWiMac:~ jtw$ /Users/jtw/Downloads/tome2-tome2/src/tome ; exit;
/Users/jtw/Downloads/tome2-tome2/src/tome: Unable to prepare any 'display module'!
logout

[Process completed]

<sigh> I hate this...I like Unix and this SHOULD be working.

jtw

Post Reply