You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

nvanevski

Beginner

  • "nvanevski" started this thread

Posts: 1

Location: Skopje, Macedonia

  • Send private message

1

Tuesday, August 31st 2004, 9:31am

Change default compiler and SEGFAULT with KDE widgets

Ok, these are actually two questions :

1. How can i change the default compiler for QMake projects in KDevelop? I want to test my apps with Intel compiler so I need to use icc instead of gcc. I found the "CC=gcc" setting in the main makefile, but that is regenerated every time I build the project. Is there a place where I can put that setting "forever" ?

2. When I try to put a KDE widget (i.e. KUrlLabel) on a form using QDesigner, everything compiles (with -lkdeui) but when I activate that form, program crashes with segmentation fault . What am I doing wrong?

Thanks in advance

Nino

This post has been edited 1 times, last edit by "nvanevski" (Aug 31st 2004, 9:32am)


anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Tuesday, August 31st 2004, 11:14am

RE: Change default compiler and SEGFAULT with KDE widgets

Quoted

Originally posted by nvanevski
1. How can i change the default compiler for QMake projects in KDevelop? I want to test my apps with Intel compiler so I need to use icc instead of gcc. I found the "CC=gcc" setting in the main makefile, but that is regenerated every time I build the project. Is there a place where I can put that setting "forever" ?

set environment variable QMAKESPEC
if QMAKESPEC if not defined, it uses the platform's standard compiler
Check $QTDIR/mkspecs for available options (hint: linux-icc)

Quoted


2. When I try to put a KDE widget (i.e. KUrlLabel) on a form using QDesigner, everything compiles (with -lkdeui) but when I activate that form, program crashes with segmentation fault . What am I doing wrong?


Some KDE Widgets depend on certain KDE internals to be present in an application.
Usually this can be solved by using KApplication instead of QApplication

Cheers,
_
Qt/KDE Developer
Debian User