Početak›Forumi›Linuks›Programiranje›Kako resiti neke probleme sa kylixom !!!
- This topic has 5 odgovora, 5 glasova, and was last updated 19 years, 9 months ranije by RiSK.
-
AutorČlanci
-
9. maj 2004. u 11:34 am #3668salacUčesnik
Evo par saveta kako se izboriti sa problemima.
Prvo, treba pravilno setovati LANG varijablu ili se kylix pri startu momentalno gasi (ako ste sistem lokalizovali tako da ima YU setovanja). Znaci u konzoli:
export LANG=eng_US
Isto tako na nekim distribucijama startovanje kylixa bez pravilno setovane LANG varijable daje cudne poruke :
LC_ALL is set to C. Can’t start Kylix.
ili
LC_ALL is set to POSIX. Can’t start Kylix.
Resenje je takodje gorepomenuta export linija.
Sad iz ISTE TE konzole mozete sa ‘startdelphi’ ili ‘startbcb’ pogoniti borlandov object pascal/c++ ; ako otvorite novu konzolu za nju LANG varijabla NE VAZI, pa kog smara stalno setovanje
LANG-a neka ubaci ovu liniju u .bashrc – ali onda vise sistem nije podesen za nas jezik.Problem 2: kada probate da startujete iskompajlirani program, doceka vas ovakva poruka :
bash-2.05b$ ./Project1
./Project1: relocation error: ./Project1: undefined symbol: initPAnsiStringsOvo je posledica toga sto kylix po defaultu snima svoje biblioteke na prilicno neocekivana mesta, pa u /etc/ld.so.conf treba dodati liniju koja sistemu govori gde se biblioteke nalaze. Napr, ako je kylix instaliran u /usr/local/kylix3, na kraju /etc/ld.so.conf se dodaje
/usr/local/kylix3/bin/
Posle ovof se uradi jedan ldconfig i gotovo.
Nasao sam na netu odlican tips&tricks, pa ga metodom copy&paste prenosim; hvala Andresu na trudu 🙂
Fixes and workarounds for Kylix 3 issues in newer distributions
(RedHat 8+, Mandrake 9+, SuSE 8.1+)
Andres Colubri ([email protected])
2003-06-11Acknowledgments
I collected all these fixes from the newsgroup:
borland.public.kylix.distros-compatibility (particularly the post from Lisheng
Sun) and from this page (thanks Ernestus!):
http://usuarios.lycos.es/ernestus/CursoCpp/Entretelas/entretelas.html1) Installation hangs
Execute the installer as normal user, or using the -m argument for non-rpm
install:
sh ./setup.sh -m2) Various errors when compiling stdlib.h (declaration syntax error, etc.) and
unresolved references when linking
The glibc 2.1 compatibility package (compat-glibc) is needed, because Kylix 3
doesn’t work with glib 2.2 or greater.
For Red Hat, get the rpm package compat-glibc-6.2-2.1.3.2.i386.rpm from
http://rpmfind.net/linux/RPM/
For Mandrake, get the rpm package compat-glibc-7.2-2.1.3.3mdk.i586.rpm from
http://rpms.mandrakeclub.com/search.php
Install it with:
rpm -Uvh compat-glibc-6.2-2.1.3.2.i386.rpm
Start the C++ part of Kylix. Set the include and library paths to the compatible
version of glibc by going to the “Directories/conditionals” tab of Project
options.
In the Include Path field, replace /usr/include with
/usr/i386-glibc21-linux/include. Move this entry to the top of the list.
In the Library Path field, replace /usr/lib with /usr/i386-glibc21-linux/lib and
move the entry to the top of the list.
Make this changes the default setting by checking the Default box before closing
the Project options.3) Various errors when using the STL (could not find a match for
min…)
Copy the file k3stl.h to:
/include
and _config.h to:
/include/stlport/stl
Use the STL headers as usual.The following problems also seem to be frequent, but I haven’t experienced them
myself:4) Kylix hangs/quits right after typing “.”
Disable the code completion feature.5) Various errors when using the IDE (hangs/quits after doing some mouse
operations, etc.)
Add to the starting scripts:
/bin/startdelphi
/bin/startbcb
the following line:
export LD_ASSUME_KERNEL=2.2.5
right after the line first line (“#!/bin/bash”).
Upgrading the kernel to the latest version appears to solve this issue, but the
results might depend on the distribution.I hope you find this information useful,
AndresI za kraj, oni koji koriste STL videce da Andres spominje dva heder fajla, _config.h i k3stl.h. Kome su ovi fajlovi potrebni a bas nikako ne moze da ih nadje na netu, neka me kontaktira.
Poz!
2. jun 2004. u 9:55 am #18654Leka_rUčesnikPoslušao sam sve savete sa ovog posta i ništa. Došao sam u situaciju da mi se sada startuje IDE c++ ali kada pustim run obične forme dobijam sledeću grešku:
[leka@leka leka]$ ./startbcb
bcblin: ../VMem.c:90: AutoSetLastError: Assertion `!”Bad error code”‘ failed.
./startbcb: line 30: 2498 Killed /home/leka/kylix3/bin/bcblin $*
[leka@leka leka]$Isto tako, kada sam u IDE Delphi ukoliko pokrenem RUN program se samo zamrzne, tako da moram da izadjem iz sesije.
Molim za pomoć
ps
sta znači STL???2. jun 2004. u 10:29 am #18655DVSoftwareUčesnikda li u kylixu postoji shansa da se korite qt theme od kde-a
smuchio mi se onaj njegov shugavi izgled4. jun 2004. u 9:40 pm #18656mVelikiUčesnikda li u kylixu postoji shansa da se korite qt theme od kde-a
smuchio mi se onaj njegov shugavi izgledpogledaj ovde:
http://community.borland.com/article/0,1410,27182,00.html5. jun 2004. u 6:16 pm #18657DVSoftwareUčesniknije to to shto sam ja mislio
mislio sam da koristi theme koju trenutno koristim, zajedno sa dugmitjima, checkboxovima, i svim tim glupostima, a ne samo ugradjene theme.4. jul 2004. u 3:23 am #18658 -
AutorČlanci
Moraš biti prijavljen da bi postavio komentar u ovoj temi.