HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Ticket
  • Back to Query
  • Next Ticket →

Ticket #461 (closed task: fixed)

Opened 5 years ago

Last modified 8 months ago

[add game] Neverball

Reported by: michaelvoliveira Owned by: michaelvoliveira
Priority: normal Milestone: Unscheduled
Component: games-puzzle/neverball Version: 1.0
Severity: normal Keywords: monkey ball neverball opengl
Cc:

Description

Tilt the floor to roll a ball through an obstacle course.
In the grand tradition of Marble Madness and Super Monkey Ball, Neverball has you guide a rolling ball through dangerous territory. Balance on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers and shovers to get to the goal. Race against the clock to collect coins to earn extra balls. Linux, FreeBSD, OSX, and Windows are supported.

Neverball is licensed under GPL v2 or later.
 http://neverball.org

Attachments

neverball-1.5.4.patch​ (364 bytes) - added by michaelvoliveira 5 years ago.
Patch to drop lm and include gettext
neverball-1.5.4.bep​ (1.1 KB) - added by michaelvoliveira 5 years ago.
Initial .bep file. works fine with GCC4, but gcc2 has problem to find build directories

Download all attachments as: .zip

Change History

Changed 5 years ago by michaelvoliveira

  • attachment neverball-1.5.4.patch​ added

Patch to drop lm and include gettext

Changed 5 years ago by michaelvoliveira

  • attachment neverball-1.5.4.bep​ added

Initial .bep file. works fine with GCC4, but gcc2 has problem to find build directories

comment:1 Changed 5 years ago by michaelvoliveira

http://img716.imageshack.us/img716/3541/screenshot3pl.png

comment:2 Changed 5 years ago by augiedoggie

It would be better to either:

Add a check to the Makefile to only change the settings on Haiku.

or:

You should be able to override the variable from within the bep file while building.

make OGL_LIBS="-lGL -lintl"

In a makefile, when you see an assignment using ":=" it means only set this variable if it isn't already set. So you can pass a new value on the command line and override it.

comment:3 Changed 5 years ago by mbaluta

I'm unable to build it. Have many lines like this:

/boot/common/include/libpng15/png.h:880:69: warning: invoking macro PNG_CALLBACK argument 4: empty macro arguments are undefined in ISO C90 and ISO C++98
/boot/common/include/libpng15/png.h:914:61: warning: invoking macro PNG_EXPORTA argument 5: empty macro arguments are undefined in ISO C90 and ISO C++98
/boot/common/include/libpng15/png.h:914:61: warning: invoking macro PNG_FUNCTION argument 4: empty macro arguments are undefined in ISO C90 and ISO C++98

And the last lines:

cc -Wall -ansi -pedantic -O2 -o neverputt share/lang.o share/st_resol.o share/vec3.o share/base_image.o share/image.o share/solid.o share/solid_gl.o share/solid_phys.o share/part.o share/geom.o share/ball.o share/back.o share/base_config.o share/config.o share/video.o share/binary.o share/audio.o share/state.o share/gui.o share/text.o share/common.o share/syswm.o share/list.o share/fs.o share/fs_png.o share/fs_jpg.o share/fs_rwops.o share/fs_ov.o share/dir.o share/array.o putt/hud.o putt/game.o putt/hole.o putt/course.o putt/st_all.o putt/st_conf.o putt/main.o  -L/boot/common/lib -lSDL -ljpeg -lpng15 -lphysfs   -lSDL_ttf -lvorbisfile -lGL -lintl
cc -Wall -ansi -pedantic -O2 -I/boot/common/include/SDL -D_GNU_SOURCE=1 -U_GNU_SOURCE -I/boot/common/include/libpng15 -Ishare -DVERSION=\"1.5.4\" -DCONFIG_USER=\".neverball\" -DCONFIG_DATA=\"./data\" -DCONFIG_LOCALE=\"./locale\" -DENABLE_NLS=1 -DNDEBUG -MM -MP -MF share/mapc.d -MT "share/mapc.o" share/mapc.c
cc -Wall -ansi -pedantic -O2 -I/boot/common/include/SDL -D_GNU_SOURCE=1 -U_GNU_SOURCE -I/boot/common/include/libpng15 -Ishare -DVERSION=\"1.5.4\" -DCONFIG_USER=\".neverball\" -DCONFIG_DATA=\"./data\" -DCONFIG_LOCALE=\"./locale\" -DENABLE_NLS=1 -DNDEBUG -o share/mapc.o -c share/mapc.c
cc -Wall -ansi -pedantic -O2 -o mapc share/vec3.o share/base_image.o share/solid.o share/binary.o share/base_config.o share/common.o share/fs.o share/fs_png.o share/fs_jpg.o share/dir.o share/array.o share/mapc.o  -ljpeg -lpng15 -lphysfs
/boot/develop/abi/x86/gcc4/tools/gcc-4.4.4-haiku-101111/lib/gcc/i586-pc-haiku/4.4.4/../../../../i586-pc-haiku/bin/ld: cannot find -lpng15
collect2: ld returned 1 exit status
make: *** [mapc] Error 1
Traceback (most recent call last):
  File "/boot/common/bin/haikuporter", line 1492, in <module>
    haikuporter = HaikuPorter(options, args)
  File "/boot/common/bin/haikuporter", line 339, in __init__
    self.buildPort()  # build
  File "/boot/common/bin/haikuporter", line 882, in buildPort
    self.runCommandSequence(self.bepKeys['BUILD'], self.workDir)
  File "/boot/common/bin/haikuporter", line 1127, in runCommandSequence
    check_call(commandString, shell=True, cwd=dir, env=shellEnv)
  File "/boot/common/lib/python2.6/subprocess.py", line 488, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'set -e
cd neverball-1.5.4
make
' returned non-zero exit status 2

comment:4 Changed 5 years ago by scottmc

did you build libpng with the -i option? It looks like it can't find it. After building libpng try rebuilding sdl-image and see if that changes anything.
if you find any dependencies that aren't listed in the .bep file report them here. If it still doesn't work after rebuilding sdl-image then we'll mark it the ticket as needs more work and move on to the next one.

@Michael were you able to build this on both gcc2 and gcc4?

comment:5 Changed 5 years ago by mbaluta

Yes, libraries are present in /boot/common/lib. Maybe you should try to add something like -L/boot/common/lib to those command before error. I would do that if I could, but to be honest i'm not familiar with build tools.
This command during build of neverball doesn't cause an error:

cc -Wall -ansi -pedantic -O2 -o neverball share/lang.o share/st_resol.o share/vec3.o share/base_image.o share/image.o share/solid.o share/solid_gl.o share/solid_phys.o share/part.o share/back.o share/geom.o share/item.o share/ball.o share/gui.o share/base_config.o share/config.o share/video.o share/binary.o share/state.o share/audio.o share/text.o share/tilt.o share/common.o share/keynames.o share/syswm.o share/list.o share/queue.o share/cmd.o share/array.o share/dir.o share/fs.o share/fs_png.o share/fs_jpg.o share/fs_rwops.o share/fs_ov.o ball/hud.o ball/game_common.o ball/game_client.o ball/game_server.o ball/game_proxy.o ball/score.o ball/level.o ball/progress.o ball/set.o ball/demo.o ball/demo_dir.o ball/util.o ball/st_conf.o ball/st_demo.o ball/st_save.o ball/st_goal.o ball/st_fall_out.o ball/st_time_out.o ball/st_done.o ball/st_level.o ball/st_over.o ball/st_play.o ball/st_set.o ball/st_start.o ball/st_title.o ball/st_help.o ball/st_name.o ball/st_shared.o ball/st_pause.o ball/st_ball.o ball/main.o  -L/boot/common/lib -lSDL -ljpeg -lpng12 -lphysfs   -lSDL_ttf -lvorbisfile -lGL -lintl

comment:6 Changed 5 years ago by scottmc

  • Summary changed from [add game] Neverball - files attached needs review to [add game] Neverball - .bep file needs work

comment:7 Changed 4 years ago by michaelvoliveira

Is not the .bep file

it's because the build process don't find libpng-config into your /boot/common/bin folder and is incapable to determine your libpng version

comment:8 Changed 4 years ago by michaelvoliveira

  • Summary changed from [add game] Neverball - .bep file needs work to [add game] Neverball

comment:9 Changed 8 months ago by richienyhus

  • Resolution set to fixed
  • Status changed from new to closed

recipe in haikuports now

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/