Crystal Space
Welcome, Guest. Please login or register.
August 02, 2014, 06:22:27 am

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8273 Members
Latest Member: Ai16x2t
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Make Compile Errors
« previous next »
Pages: [1] Print
Author Topic: Make Compile Errors  (Read 2639 times)
wvanheemstra
Newbie
*
Posts: 1


View Profile WWW Email
« on: January 07, 2006, 01:38:58 pm »

I am trying to 'make -k all' of cs-pseudo-stable-2005-09-03.zip on Mac OS X (10.3.9) in the directory '/usr/local/CS'.

Unzip from 'usr/local' goes well as 'root', it creates a directory '/usr/local/CS' and all sub-directories.

Then ./configure from within directory 'usr/local/CS' goes without warnings too.

Next if I try 'make -k all' it takes a long time while processing, and finally my Terminal prompt shows the following last lines:

Code:

    g++ -c -o ./out/macosxppc/optimize/plugins/video/render3d/null/null_txt.o -I. -I./include -I./include -Wmost -Wno-unknown-pragmas -pipe -I/usr/local/include -Wno-long-double -force_cpusubtype_ALL -fno-common -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -fPIC  plugins/video/render3d/null/null_txt.cpp


    g++ -o null3d.so ./out/macosxppc/optimize/plugins/video/render3d/null/null_pix.o ./out/macosxppc/optimize/plugins/video/render3d/null/null_render3d.o ./out/macosxppc/optimize/plugins/video/render3d/null/null_txt.o  -lm -lmx -ldl -Wl,-multiply_defined,suppress -L/usr/local/lib ./out/macosxppc/optimize/libs/libcrystalspace.a -lz -lm -lmx -ldl -Wl,-multiply_defined,suppress -L/usr/local/lib
 
ld: Undefined symbols:
_main

  rm -f null3d.csplugin
  cp plugins/video/render3d/null/null3d.csplugin null3d.csplugin


        mkdir -p "./out/macosxppc/optimize/plugins/video/cursor"


    g++ -c -o ./out/macosxppc/optimize/plugins/video/cursor/cursor.o -I. -I./include -I./include -Wmost -Wno-unknown-pragmas -pipe -I/usr/local/include -Wno-long-double -force_cpusubtype_ALL -fno-common -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -fPIC  plugins/video/cursor/cursor.cpp


    g++ -o cscursor.so ./out/macosxppc/optimize/plugins/video/cursor/cursor.o  -lm -lmx -ldl -Wl,-multiply_defined,suppress -L/usr/local/lib ./out/macosxppc/optimize/libs/libcrystalspace.a -lz -lm -lmx -ldl -Wl,-multiply_defined,suppress -L/usr/local/lib
 
ld: Undefined symbols:
_main

  rm -f cscursor.csplugin
  cp plugins/video/cursor/cscursor.csplugin cscursor.csplugin

make: *** [all] Error 1
[Computer-van-Willem-van-Heemstra:/usr/local/CS] willem#


Anyone knows what goes wrong here, and how I could get around this Error 1?

Your comments are most appreciated!

Cheers from Edinburgh, Scotland (UK)

Willem

*admin: Split this from anther compile errors thread because it was hijacking.*
« Last Edit: January 08, 2006, 02:47:20 am by dingobloo » Logged

Willem van Heemstra
dingobloo
Idle Extrordinare.
Global Moderator
Full Member
*****
Posts: 125


View Profile WWW
« Reply #1 on: January 08, 2006, 02:48:46 am »

The Crystalspace Project uses the JAM build system and make is only wrapped around it, please attempt type "jam" after configure instead of "make -k all"
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #2 on: January 08, 2006, 04:45:27 am »

Quote
    g++ -o cscursor.so ./out/macosxppc/optimize/plugins/video/cursor/cursor.o  -lm -lmx -ldl -Wl,-multiply_defined,suppress -L/usr/local/lib ./out/macosxppc/optimize/libs/libcrystalspace.a -lz -lm -lmx -ldl -Wl,-multiply_defined,suppress -L/usr/local/lib
  ld: Undefined symbols:
_main

Something is wrong with your configuration. It's trying to build each plugin as an application rather than as a dynamic library (bundle). You may have somehow tricked it into thinking that you're running Linux or Darwin. It would be useful to see the output of your configure run.

Quote
The Crystalspace Project uses the JAM build system and make is only wrapped around it, please attempt type "jam" after configure instead of "make -k all"

The build system support "make" just as well as it supports "jam". You are free to, and encouraged to, use whichever command feels most comfortable.
Logged
RobinD
Guest


Email
« Reply #3 on: February 27, 2006, 08:48:43 pm »

I had the same error. Does anybody know how to fix it ?

Any output in the terminal
config.log
config.status

robd
Logged
RobinD
Guest


Email
« Reply #4 on: February 28, 2006, 11:12:29 am »

It would be also nice if someone could send the precompiled mac-version to me:
dinose@web.de

thx, robd
Logged
Commander
Newbie
*
Posts: 15


View Profile
« Reply #5 on: March 14, 2006, 06:55:17 pm »

I also use MacOS 10.3.9 and didn't have exactly these problems, but different ones from day to day in the CVS version, and also the old pseudo-stable release, but it worked some day. Did you also try some newer versions?

I also use Jam as the build tool.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 8.232 seconds with 15 queries.