paragui-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-dev] Mac OS X compile patches


From: Alexander Pipelka
Subject: Re: [paragui-dev] Mac OS X compile patches
Date: Sat, 26 Jun 2004 10:30:38 +0200

Hi Tim,

Do a read "ParaGUI compiles cleanly on Mac OS X" ?
Great news. I applied your patch to the devel CVS-branch (the one I'm
working on).

The changes should be valid on all supported platforms.

Thanks

Alex

Am Die, den 22.06.2004 schrieb Tim Douglas um 16:19:
> Hello all,
> 
> Today I downloaded ParaGUI and tried to compile it in Mac OS X. It spit out
> some errors:
> 
> /bin/sh ../libtool --mode=link c++  -g -O2 -Wall
> -I/usr/local/include/freetype2 -I/usr/local/include   -fno-exceptions  -o
> writefile  writefile.o -L../src -lparagui -L/usr/local/lib -lSDLmain -lSDL
> -framework Cocoa -framework OpenGL  -lexpat -L/usr/local/lib -lfreetype -lz 
> -lstdc++ 
> c++ -g -O2 -Wall -I/usr/local/include/freetype2 -I/usr/local/include
> -fno-exceptions -o .libs/writefile writefile.o -framework Cocoa -framework
> OpenGL  -L/Users/timdoug/Desktop/paragui-1.0.4/src
> -L/Users/timdoug/Desktop/paragui-1.0.4/src/.libs -lparagui -L/usr/local/lib
> -lphysfs -lSDLmain -lSDL -lexpat -lfreetype -lz -lstdc++
> ld: Undefined symbols:
> _SDL_main
> make[2]: *** [writefile] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
> 
> Browsing around the libSDL website, I found this:
> http://www.libsdl.org/faq.php?action=listentries&category=4#48 Apparently,
> the int main() should be switched to int main(int argc, char *argv[]). 
> Looking through other ParaGUI code, I decided to use int main( int argc, char
> **argv ) instead. Changing this, test/writefile.cpp compiled (and worked
> too). Turns out that test/dropdown.cpp and test/layouttest.cpp had the same
> problems, so they were changed too.
> 
> Attached (and pasted below) are the two patches, one for the stable branch
> and one for the development branch. Hopefully they won't cause problems on
> other platforms (they shouldn't, it seems) and hopefully they will be
> committed so ParaGUI will be able to compile cleanly on Mac OS X (dare I even
> say, OS X support?). Any questions, comments, or whatever should be sent to
> this address.
> 
> Thanks much,
> Tim Douglas
> 
> Stable branch patch
> --------cut here--------
> Index: test/dropdown.cpp
> ===================================================================
> RCS file: /cvsroot/paragui/paragui/test/dropdown.cpp,v
> retrieving revision 1.1
> diff -u -r1.1 dropdown.cpp
> --- test/dropdown.cpp 15 Apr 2002 13:31:31 -0000      1.1
> +++ test/dropdown.cpp 22 Jun 2004 13:20:21 -0000
> @@ -7,7 +7,7 @@
>  #include "pgdropdown.h"
>  #include "pgapplication.h"
>  
> -int main()
> +int main( int argc, char **argv )
>  {
>     PG_Application app;
>     app.LoadTheme( "default" );
> Index: test/layouttest.cpp
> ===================================================================
> RCS file: /cvsroot/paragui/paragui/test/layouttest.cpp,v
> retrieving revision 1.1.1.1.6.2
> diff -u -r1.1.1.1.6.2 layouttest.cpp
> --- test/layouttest.cpp       6 Apr 2003 12:13:07 -0000       1.1.1.1.6.2
> +++ test/layouttest.cpp       22 Jun 2004 13:20:21 -0000
> @@ -2,7 +2,7 @@
>  #include "pgapplication.h"
>  #include "pgwindow.h"
>  
> -int main() {
> +int main( int argc, char **argv ) {
>  
>       // construct the application object
>       PG_Application app;
> Index: test/writefile.cpp
> ===================================================================
> RCS file: /cvsroot/paragui/paragui/test/writefile.cpp,v
> retrieving revision 1.1.2.2
> diff -u -r1.1.2.2 writefile.cpp
> --- test/writefile.cpp        4 Jan 2003 21:13:41 -0000       1.1.2.2
> +++ test/writefile.cpp        22 Jun 2004 13:20:21 -0000
> @@ -7,7 +7,7 @@
>  #include <pglog.h>
>  #include <string>
>  
> -int main() {
> +int main( int argc, char **argv ) {
>       PG_FileArchive *Arc;
>       PG_File *wf;
>  
> 
> --------cut here--------
> 
> Development branch patch
> --------cut here--------
> Index: dropdown.cpp
> ===================================================================
> RCS file: /cvsroot/paragui/paragui/test/dropdown.cpp,v
> retrieving revision 1.1.8.1
> diff -u -r1.1.8.1 dropdown.cpp
> --- dropdown.cpp      28 Feb 2004 18:49:06 -0000      1.1.8.1
> +++ dropdown.cpp      22 Jun 2004 13:39:15 -0000
> @@ -7,7 +7,7 @@
>  #include "pgdropdown.h"
>  #include "pgapplication.h"
>  
> -int main()
> +int main( int argc, char **argv )
>  {
>     PG_Application app;
>     app.LoadTheme( "default" );
> Index: layouttest.cpp
> ===================================================================
> RCS file: /cvsroot/paragui/paragui/test/layouttest.cpp,v
> retrieving revision 1.1.1.1.6.2
> diff -u -r1.1.1.1.6.2 layouttest.cpp
> --- layouttest.cpp    6 Apr 2003 12:13:07 -0000       1.1.1.1.6.2
> +++ layouttest.cpp    22 Jun 2004 13:39:15 -0000
> @@ -2,7 +2,7 @@
>  #include "pgapplication.h"
>  #include "pgwindow.h"
>  
> -int main() {
> +int main( int argc, char **argv ) {
>  
>       // construct the application object
>       PG_Application app;
> Index: writefile.cpp
> ===================================================================
> RCS file: /cvsroot/paragui/paragui/test/writefile.cpp,v
> retrieving revision 1.1.2.2.2.3
> diff -u -r1.1.2.2.2.3 writefile.cpp
> --- writefile.cpp     13 Mar 2004 13:46:03 -0000      1.1.2.2.2.3
> +++ writefile.cpp     22 Jun 2004 13:39:15 -0000
> @@ -7,7 +7,7 @@
>  #include <pglog.h>
>  #include <string>
>  
> -int main() {
> +int main( int argc, char **argv ) {
>       PG_FileArchive *Arc;
>       PG_File *wf;
>  
> 
> --------cut here--------
> 
> 
> ______________________________________________________________________
> _______________________________________________
> paragui-dev mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/paragui-dev





reply via email to

[Prev in Thread] Current Thread [Next in Thread]