Re: [Pingus-Devel] OSX Lion build help

2012-01-15 Thread Josh Dye
I totally understand wanting to build it yourself :-)  

I'll note that fix for 1.2 on Lion


On Jan 15, 2012, at 5:31 PM, Andy Milne wrote:

> Yes, that change does work. It appears that it doesn't matter if Cocoa is 
> added before or after  OpenGL. 
> 
> And yes the 64bit build did work for me - thanks again for publishing it. I 
> just thought it would be fun to see if I could build it myself on a Mac.
> 
> I had lots of problems building SDL 1.2 on Lion, and SDL 1.3 worked first 
> try. That led me to porting pingus to SDL 1.3 - hmm, that's probably why I 
> needed to link to Cocoa. So, you probably don't need that change - yet.
> 
> Don't get too excited about my port to SDL 1.3, my build doesn't run: I get a 
> Segmentation fault: 11. The 1.3 changes are quite minor: surface objects need 
> to call a method to get their alpha/color and the keyboard scan code stuff 
> changed.
> 
> Meanwhile I found a fix for building SDL 1.2, I needed to add another 
> parameter to ./configure:
> --disable-assembly
> 
> I'm attempting to rebuild pingus with SDL 1.2, and my current problem is that 
> scons is not seeing SDL_mixer. I was impressed to see that  scons generates a 
> "c" program and attempts to build it to test for the presence of SDL_mixer. 
> So, I'd have to agree that the scones build environment can't see SDL_mixer - 
> even though I can see it. It's weird that I didn't have this issue before 
> with SDL 1.3, but I'm sure I'll track it down and sort it out. 
> 
> Regards,
> 
> Andy.
> 
> 
> 
> 
> On Sun, Jan 15, 2012 at 11:26 AM, Josh Dye  wrote:
> I'll let Grumble fix this, but for a temp fix, I think you can edit the 
> SConscript file
> 
> change line 152:  self.conf.env.Append(LINKFLAGS = [ 
> '-framework', 'OpenGL' ])
> toself.conf.env.Append(LINKFLAGS = [ 
> '-framework', 'OpenGL', '-framework', 'Cocoa'  ])
> 
> PS- tell me if this works
> PS2-- doesn't the 64-bit build work for you?
> 
> 
> On Jan 13, 2012, at 12:44 PM, Andy Milne wrote:
> 
>> Hi,
>> 
>> I followed the recipe Josh has on the Wiki to build pingus 0.7.6, except I'm 
>> using OSX 10.7.2. Thanks for the recipe - it really helped.
>> 
>> I'm at the linker stage and I can see that the following line:
>> 
>> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a 
>> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer 
>> -liconv
>> 
>> really should be:
>> ++ -o build/pingus -framework Cocoa -framework OpenGL build/src/main.o 
>> build/libpingus.a -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image 
>> -lSDL_mixer -liconv
>> 
>> Cocoa is required to pick up the missing symbols like 
>> CFBundleGetMainBundle() etc.. see error at the bottom if you're interested.
>> 
>> I'm not used to the tool chain for building pingus, and I figure you might 
>> be able to quickly point me in the right direction?
>> 
>> Thanks,
>> 
>> Andy.
>> 
>> 
>> 
>> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a 
>> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer 
>> -liconv
>> Undefined symbols for architecture x86_64:
>>   "_CFBundleGetMainBundle", referenced from:
>>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>>   "_CFBundleCopyResourcesDirectoryURL", referenced from:
>>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>>   "_CFURLGetFileSystemRepresentation", referenced from:
>>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>>   "_CFRelease", referenced from:
>>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>>   System::get_language()  in libpingus.a(system.o)
>>   "_CFLocaleCopyPreferredLanguages", referenced from:
>>   System::get_language()  in libpingus.a(system.o)
>>   "_CFArrayGetValueAtIndex", referenced from:
>>   System::get_language()  in libpingus.a(system.o)
>>   "_CFStringCreateWithSubstring", referenced from:
>>   System::get_language()  in libpingus.a(system.o)
>>   "_CFStringGetCString", referenced from:
>>   System::get_language()  in libpingus.a(system.o)
>> ld: symbol(s) not found for architecture x86_64
>> collect2: ld returned 1 exit status
>> scons: *** [build/pingus] Error 1
>> scons: building terminated because of errors.
>> 
>> ___
>> Pingus-Devel mailing list
>> Pingus-Devel@nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/pingus-devel
> 
> 
> ___
> Pingus-Devel mailing list
> Pingus-Devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/pingus-devel
> 
> 
> ___
> Pingus-Devel mailing list
> Pingus-Devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/pingus-devel

___
Pingus-Devel mailing list
Pingus-Devel@nongnu.org
https://lists.nongnu.org/mailman/listin

Re: [Pingus-Devel] OSX Lion build help

2012-01-15 Thread Andy Milne
Yes, that change does work. It appears that it doesn't matter if Cocoa is
added before or after  OpenGL.

And yes the 64bit build did work for me - thanks again for publishing it. I
just thought it would be fun to see if I could build it myself on a Mac.

I had lots of problems building SDL 1.2 on Lion, and SDL 1.3 worked first
try. That led me to porting pingus to SDL 1.3 - hmm, that's probably why I
needed to link to Cocoa. So, you probably don't need that change - yet.

Don't get too excited about my port to SDL 1.3, my build doesn't run: I get
a Segmentation fault: 11. The 1.3 changes are quite minor: surface objects
need to call a method to get their alpha/color and the keyboard scan code
stuff changed.

Meanwhile I found a fix for building SDL 1.2, I needed to add another
parameter to ./configure:
--disable-assembly

I'm attempting to rebuild pingus with SDL 1.2, and my current problem is
that scons is not seeing SDL_mixer. I was impressed to see that  scons
generates a "c" program and attempts to build it to test for the presence
of SDL_mixer. So, I'd have to agree that the scones build environment can't
see SDL_mixer - even though I can see it. It's weird that I didn't have
this issue before with SDL 1.3, but I'm sure I'll track it down and sort it
out.

Regards,

Andy.




On Sun, Jan 15, 2012 at 11:26 AM, Josh Dye  wrote:

> I'll let Grumble fix this, but for a temp fix, I think you can edit the
> SConscript file
>
> change line 152: self.conf.env.Append(LINKFLAGS = [ '-framework',
> 'OpenGL' ])
> to self.conf.env.Append(LINKFLAGS = [ '-framework',
> 'OpenGL', '-framework', 'Cocoa'  ])
>
> PS- tell me if this works
> PS2-- doesn't the 64-bit build work for you?
>
>
> On Jan 13, 2012, at 12:44 PM, Andy Milne wrote:
>
> Hi,
>
> I followed the recipe Josh has on the Wiki to build pingus 0.7.6, except
> I'm using OSX 10.7.2. Thanks for the recipe - it really helped.
>
> I'm at the linker stage and I can see that the following line:
>
> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a
> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer
> -liconv
>
> really should be:
> ++ -o build/pingus -framework Cocoa -framework OpenGL build/src/main.o
> build/libpingus.a -L/usr/local/lib -lboost_signals -lpng15 -lSDL
> -lSDL_image -lSDL_mixer -liconv
>
> Cocoa is required to pick up the missing symbols
> like CFBundleGetMainBundle() etc.. see error at the bottom if you're
> interested.
>
> I'm not used to the tool chain for building pingus, and I figure you might
> be able to quickly point me in the right direction?
>
> Thanks,
>
> Andy.
>
>
>
> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a
> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer
> -liconv
> Undefined symbols for architecture x86_64:
>   "_CFBundleGetMainBundle", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFBundleCopyResourcesDirectoryURL", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFURLGetFileSystemRepresentation", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFRelease", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   System::get_language()  in libpingus.a(system.o)
>   "_CFLocaleCopyPreferredLanguages", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFArrayGetValueAtIndex", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFStringCreateWithSubstring", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFStringGetCString", referenced from:
>   System::get_language()  in libpingus.a(system.o)
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> scons: *** [build/pingus] Error 1
> scons: building terminated because of errors.
>
> ___
> Pingus-Devel mailing list
> Pingus-Devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/pingus-devel
>
>
>
> ___
> Pingus-Devel mailing list
> Pingus-Devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/pingus-devel
>
>
___
Pingus-Devel mailing list
Pingus-Devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pingus-devel


Re: [Pingus-Devel] OSX Lion build help

2012-01-15 Thread Josh Dye
I'll let Grumble fix this, but for a temp fix, I think you can edit the 
SConscript file

change line 152:self.conf.env.Append(LINKFLAGS = [ 
'-framework', 'OpenGL' ])
to  self.conf.env.Append(LINKFLAGS = [ 
'-framework', 'OpenGL', '-framework', 'Cocoa'  ])

PS- tell me if this works
PS2-- doesn't the 64-bit build work for you?


On Jan 13, 2012, at 12:44 PM, Andy Milne wrote:

> Hi,
> 
> I followed the recipe Josh has on the Wiki to build pingus 0.7.6, except I'm 
> using OSX 10.7.2. Thanks for the recipe - it really helped.
> 
> I'm at the linker stage and I can see that the following line:
> 
> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a 
> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer -liconv
> 
> really should be:
> ++ -o build/pingus -framework Cocoa -framework OpenGL build/src/main.o 
> build/libpingus.a -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image 
> -lSDL_mixer -liconv
> 
> Cocoa is required to pick up the missing symbols like CFBundleGetMainBundle() 
> etc.. see error at the bottom if you're interested.
> 
> I'm not used to the tool chain for building pingus, and I figure you might be 
> able to quickly point me in the right direction?
> 
> Thanks,
> 
> Andy.
> 
> 
> 
> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a 
> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer -liconv
> Undefined symbols for architecture x86_64:
>   "_CFBundleGetMainBundle", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFBundleCopyResourcesDirectoryURL", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFURLGetFileSystemRepresentation", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFRelease", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   System::get_language()  in libpingus.a(system.o)
>   "_CFLocaleCopyPreferredLanguages", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFArrayGetValueAtIndex", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFStringCreateWithSubstring", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFStringGetCString", referenced from:
>   System::get_language()  in libpingus.a(system.o)
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> scons: *** [build/pingus] Error 1
> scons: building terminated because of errors.
> 
> ___
> Pingus-Devel mailing list
> Pingus-Devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/pingus-devel

___
Pingus-Devel mailing list
Pingus-Devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pingus-devel


Re: [Pingus-Devel] OSX Lion build help

2012-01-13 Thread Andy Milne
Nevermind. I figured out the SConscript is just python and added Cocoa and
it builds and links fine now.

Regards,

Andy.



On Fri, Jan 13, 2012 at 12:44 PM, Andy Milne  wrote:

> Hi,
>
> I followed the recipe Josh has on the Wiki to build pingus 0.7.6, except
> I'm using OSX 10.7.2. Thanks for the recipe - it really helped.
>
> I'm at the linker stage and I can see that the following line:
>
> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a
> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer
> -liconv
>
> really should be:
> ++ -o build/pingus -framework Cocoa -framework OpenGL build/src/main.o
> build/libpingus.a -L/usr/local/lib -lboost_signals -lpng15 -lSDL
> -lSDL_image -lSDL_mixer -liconv
>
> Cocoa is required to pick up the missing symbols
> like CFBundleGetMainBundle() etc.. see error at the bottom if you're
> interested.
>
> I'm not used to the tool chain for building pingus, and I figure you might
> be able to quickly point me in the right direction?
>
> Thanks,
>
> Andy.
>
>
>
> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a
> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer
> -liconv
> Undefined symbols for architecture x86_64:
>   "_CFBundleGetMainBundle", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFBundleCopyResourcesDirectoryURL", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFURLGetFileSystemRepresentation", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   "_CFRelease", referenced from:
>   PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
>   System::get_language()  in libpingus.a(system.o)
>   "_CFLocaleCopyPreferredLanguages", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFArrayGetValueAtIndex", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFStringCreateWithSubstring", referenced from:
>   System::get_language()  in libpingus.a(system.o)
>   "_CFStringGetCString", referenced from:
>   System::get_language()  in libpingus.a(system.o)
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> scons: *** [build/pingus] Error 1
> scons: building terminated because of errors.
>
>
___
Pingus-Devel mailing list
Pingus-Devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pingus-devel


[Pingus-Devel] OSX Lion build help

2012-01-13 Thread Andy Milne
Hi,

I followed the recipe Josh has on the Wiki to build pingus 0.7.6, except
I'm using OSX 10.7.2. Thanks for the recipe - it really helped.

I'm at the linker stage and I can see that the following line:

g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a
-L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer
-liconv

really should be:
++ -o build/pingus -framework Cocoa -framework OpenGL build/src/main.o
build/libpingus.a -L/usr/local/lib -lboost_signals -lpng15 -lSDL
-lSDL_image -lSDL_mixer -liconv

Cocoa is required to pick up the missing symbols
like CFBundleGetMainBundle() etc.. see error at the bottom if you're
interested.

I'm not used to the tool chain for building pingus, and I figure you might
be able to quickly point me in the right direction?

Thanks,

Andy.



g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a
-L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer
-liconv
Undefined symbols for architecture x86_64:
  "_CFBundleGetMainBundle", referenced from:
  PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
  "_CFBundleCopyResourcesDirectoryURL", referenced from:
  PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
  "_CFURLGetFileSystemRepresentation", referenced from:
  PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
  "_CFRelease", referenced from:
  PingusMain::init_path_finder()   in libpingus.a(pingus_main.o)
  System::get_language()  in libpingus.a(system.o)
  "_CFLocaleCopyPreferredLanguages", referenced from:
  System::get_language()  in libpingus.a(system.o)
  "_CFArrayGetValueAtIndex", referenced from:
  System::get_language()  in libpingus.a(system.o)
  "_CFStringCreateWithSubstring", referenced from:
  System::get_language()  in libpingus.a(system.o)
  "_CFStringGetCString", referenced from:
  System::get_language()  in libpingus.a(system.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
scons: *** [build/pingus] Error 1
scons: building terminated because of errors.
___
Pingus-Devel mailing list
Pingus-Devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pingus-devel