gnustep-dev
[Top][All Lists]
Advanced

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

Re: Compiled GUI program fails to run


From: Fred Kiefer
Subject: Re: Compiled GUI program fails to run
Date: Sun, 31 May 2015 09:22:57 +0200

Hi,

You seem to prefer unusual setups for your GNUstep environment. Using clang is fine, but why don't you use GNUstep make? That was ay we could be sure you have a properly setup environment. And you are also using the deprecated xlib backend, with the oldest possible font configuration. Why is this the case? The most likely case for the later is that some libraries required to compile back are missing their devel package.

This suggests that something already went wrong when you did compile GNUstep itself. Could you please recompile everything an watch out for messages from the configure script.

Next, don't forget to run the GNUstep.sh script, try to use GNUstep make and report back, what results you are getting then.

Hope this helps,
Fred



On the road

Am 31.05.2015 um 08:50 schrieb Patryk Laurent <address@hidden>:

Hello,

With the latest from source on Ubuntu 14.04, I get some warnings and a core dump when running a simple GUI program.

address@hidden:~$ clang `gnustep-config --objc-flags` `gnustep-config --objc-libs`  -fobjc-runtime=gnustep -fblocks -lobjc -fobjc-arc -ldispatch -lgnustep-base -lgnustep-gui  guitest.m
clang-3.7: warning: argument unused during compilation: '-fobjc-nonfragile-abi'
clang-3.7: warning: argument unused during compilation: '-fobjc-nonfragile-abi'

address@hidden:~$ ./a.out
2015-05-30 23:47:12.506 a.out[23710:23710] Library directory '/home/patryk/GNUstep/Library' not available!
2015-05-30 23:47:12.507 a.out[23710:23710] File NSData.m: 162. In BOOL readContentsOfFile(NSString *, void **, off_t *, NSZone *) Open ((null)) attempt failed - bad path
2015-05-30 23:47:12.507 a.out[23710:23710] No font cache available - building new one - this may take several seconds (or minutes on a slow machine with lots of fonts)
2015-05-30 23:47:12.508 a.out[23710:23710] Running /usr/GNUstep/Local/Tools/font_cacher
./a.out: Uncaught exception NSInvalidArgumentException, reason: Tried to init array with nil object
Aborted (core dumped)

This program worked previously, so I was wondering if anyone knew what the issue might be.

Thank you,
Patryk



#import <AppKit/AppKit.h>

int main()
{
  NSApplication *app;
  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");
  }
}


_______________________________________________
Gnustep-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gnustep-dev

reply via email to

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