[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newbie back again...
From: |
Bertrand Gmail |
Subject: |
Re: Newbie back again... |
Date: |
Sun, 23 Apr 2017 05:03:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
Preamble : sorry for the noise on gnustep-dev mailing list. I've
reposted the messages here.
And...finally, it still doesn't work.
I thought that the problem had disappeared because I could compile and
run a sample program given on the ubuntu installation notes on the
gnustep wiki.
This is this program : guitest.m
#import <AppKit/AppKit.h> int main() { NSApplication *app; // Without
these 2 lines, seg fault may occur app = [NSApplication
sharedApplication]; NSAlert * alert = [[NSAlert alloc] init]; [alert
setMessageText:@"Hello alert"]; [alert addButtonWithTitle:@"All done"];
int result = [alert runModal]; if (result == NSAlertFirstButtonReturn) {
NSLog(@"First button pressed"); } }
This compiles and run fine it i use this command :
clang `gnustep-config --objc-flags` `gnustep-config --objc-libs`
-fobjc-runtime=gnustep -fblocks -lobjc -fobjc-arc -ldispatch
-lgnustep-base -lgnustep-gui guitest.m
But iif I use the following makefile to compile it (given in the wiki
also), running GUItest.app will segfault :
GNUmakefile :
include \$(GNUSTEP_MAKEFILES)/common.make
APP_NAME = GUITest
GUITest_OBJC_FILES = guitest.m
include \$(GNUSTEP_MAKEFILES)/application.make
GUItest.app segfaults with this :
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff63cc500 in objc_msgSend_fpret ()
Backtrace attached.
Then every compilation of a program (projectcenter, gorm etc) fails.
I'm stuck.
I've attached my installation scripts again and the backtrace to this mail.
There seems to be some problem with the compilation options in my setup.
This is way beyond my skills.
Cheers, Bertrand Dekoninck.
my_install_gnustep_first_stage.sh
Description: application/shellscript
my_install_gnustep_second_stage.sh
Description: application/shellscript
backtrace
Description: Text document
- Newbie back again..., Yan Le Guen, 2017/04/22
- Re: Newbie back again..., Fred Kiefer, 2017/04/22
- Message not available
- Message not available
- Message not available
- Message not available
- Re: Newbie back again...,
Bertrand Gmail <=
- Re: Newbie back again..., Josh Freeman, 2017/04/23
- Re: Newbie back again..., Fred Kiefer, 2017/04/23
- Re: Newbie back again..., Josh Freeman, 2017/04/23
- Re: Newbie back again..., Josh Freeman, 2017/04/23
- Re: Newbie back again..., David Chisnall, 2017/04/24
- Re: Newbie back again..., Richard Frith-Macdonald, 2017/04/24
Re: Newbie back again..., Riccardo Mottola, 2017/04/22