CMSP derleme sorunu

Başlatan zeusmaster, 23 Ekim 2012 - 16:08:15

« önceki - sonraki »

0 Üyeler ve 2 Ziyaretçi konuyu incelemekte.

zeusmaster

Herkese merhaba;
http://www.tddft.org/programs/octopus/wiki/index.php/Releases#OpenDX deki OpenDX altındaki CSMP yi kurmaya çalışıyorum.
Makefile dosyası;
.POSIX:

export

######################################################################
# The following variables should be tuned according to your setup.

# "BASE" should be the directory where the opendx program has be installed.
# It may be /usr/lib/dx, /opt/lib/dx, /usr/local/dx or something like that.
# You will recognize it because it contains some subirectories called "bin",
# "fonts", "samples", etc.
BASE = /usr/lib/dx

# "ARCH" is the name of the architecture on which the program is installed.
# Under BASE, there is a directory called bin_ARCH (e.g. "BASE/bin_linux")
ARCH = linux

# "DXCC" should be the C compiler.
DXCC = gcc

# And "DXCFLAGS" the flats that should be used by the C compiler.
DXCFLAGS = -02




######################################################################
# In principle you should not need to change anything below this line.

BIN  = $(BASE)/bin
DXLIB     = -L$(BASE)/lib_$(ARCH) -lDX
DXLIBLITE = -L$(BASE)/lib_$(ARCH) -lDXlite
CC = $(DXCC)
CFLAGS = $(DXCFLAGS) -I$(BASE)/include

SUBDIRS = src

all:
for i in $(SUBDIRS); do (cd $$i; $(MAKE) all); done

clean:
rm -f *~
for i in $(SUBDIRS); do (cd $$i; $(MAKE) clean); done

dist-clean: clean
rm -f bin/* CMSP.mdf

install:
for i in $(SUBDIRS); do (cd $$i; $(MAKE) install); done


BASE, ARCH, DXCC kısmı doğru ama;
DXCFLAGS = -02 kısmında aklıma dakılan gcc de gcc -02 diye * bir şey yok.
Derlemeye çalıştığımda ise;

root@ZeuS:/home/bahdem/Desktop# cd CMSP-2.0.5/
root@ZeuS:/home/bahdem/Desktop/CMSP-2.0.5# make all
for i in src; do (cd $i; make all); done
make[1]: Entering directory `/home/bahdem/Desktop/CMSP-2.0.5/src'
gcc -02 -I/usr/lib/dx/include    CrystalRepeat.mdf.c   -o CrystalRepeat.mdf
gcc: error: unrecognized option '-02'
make[1]: *** [CrystalRepeat.mdf] Error 1
make[1]: Leaving directory `/home/bahdem/Desktop/CMSP-2.0.5/src'
make: *** [all] Error 2





Up and Running...

if

@bahdem, '-02' daki ilk karakter sıfır değil Ordu'nun o'su olmalı.

zeusmaster

@if, ben öncelikli olarak derlemeye çalışırken makefile'in içini değiştirmedim. Sanırım sorunum gene 'path'lerle alakalı. gerekli olan  '.a' uzantılı dosyayı bulamıyorum. Sorun bundan kaynaklı olması yüksek ihtimal diye düşünüyorum.
Up and Running...

heartsmagic

Bu doğrudan kullandığın make çıktısı mı @bahdem?
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

@ heartsmagic, evet hocam. Doğrudan make komutu verdiğimde aldığım çıktı.
Up and Running...

heartsmagic

Bir ara yine ilk elden bakmamız lazım :) Fakat bu gece zor, önümüz bayram falan :D
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

@heartsmagic, hocam hiç uğraştırmayayım seni :) Kurcalaya kurcalaya yapmaya çalışırım. Son çare artık kapını çalarım :)
Up and Running...

heartsmagic

Vakit olduğunda denemeye çalışırız elbette, dediğim gibi sen çözemezsen en müsait zamanda ilk elden bakmaya çalışırım. Gerçi içimden bir ses benden daha önce deneyenler çıkabilir diyor :)
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

Felâsife

Ben böyle bir hata alsaydım ilk bakacağım yer /etc/make.conf olurdu.
CPUTYPE=k8
CHOST=x86_64-pc-linux-gnu
CFLAGS=-march=k8 -msse3 -O2 -pipe
CXXFLAGS=${CFLAGS}


Zira o  '-02' parametresinin ( '-02'  de ki sıfırdır sayı ile yani) sorun olabileceğini Türkçe kaynaklardan da okumuştum ama bu  '-03' mü olur yoksa komple iptal mi olur bilemiyorum.
http://en.gentoo-wiki.com/wiki/Safe_Cflags

Tabii bu dediklerim FreeBSD için geçerli (aman Linux ayarlarıyla karıştırmayın  ;D ) belki bir ip ucu verir. :)
Maceraya hazır mısın!  Bir BSD almaz mısın?

heartsmagic

@bahdem, @Felâsife'nin önerisini denedin mi?
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

@heartsmagic, deneme fırsatı bulamadım. Bu ara bir uğursuzluktur üzerimde gidiyor :) En kısa zamanda cevabı geçeceğim.
Up and Running...

heartsmagic

Tamamdır, ilk elden denemek için uğramıştım ama önce bir denenip denenmediğini sorayım dedim :)
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

#12
Bir ilerleme kaydedip sorunun CrystalRepeat.mdf.c dosyasından kaynaklandığını düşünmekteyim.
/* Automatically generated - may need to edit! */

#include <dx/dx.h>
#include <dx/modflags.h>

#if defined(intelnt) || defined(WIN32)
#include <windows.h>
#endif

#if defined(__cplusplus)
extern "C" Error DXAddModule (char *, ...);
#else
extern Error DXAddModule (char *, ...);
#endif

#if defined(__cplusplus)
extern "C" Error m_CrystalRepeat(Object*, Object*);
#endif
#if defined(intelnt) || defined(WIN32)
void FAR WINAPI DXEntry()
#else
  #if defined(__cplusplus)
    extern "C" void DXEntry()
  #else
    void DXEntry()
  #endif
#endif
{
    {
#ifndef __cplusplus
        extern Error m_CrystalRepeat(Object *, Object *);
#endif
        DXAddModule("CrystalRepeat", m_CrystalRepeat, 0,
            4, "unitcell", "repeat", "unitvectors", "cycle",
            1, "repeated");
    }
}

Çünkü hata çıktısı;
gcc -O2 -I/usr/lib/dx/CMSP-2.0.5/src    CrystalRepeat.mdf.c   -o CrystalRepeat.mdf
CrystalRepeat.mdf.c:3:19: fatal error: dx/dx.h: No such file or directory



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 02 Kasım 2012 - 13:16:44

@Felâsife, öneri içinde parametreyi silip tekrar denedim. Sorun aynı devam etmekte.
Up and Running...

heartsmagic

dx isimli paket kurulu mu?
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

Paket kurulu. Paket yöneticisinden Opendx kurulumunu yaptım. Sorun make .h uzantılı dosyaların yerinin yanlış olması sanırım :)
Up and Running...

heartsmagic

Bir önceki sorunu nasıl düzelttin sen @bahdem? Deneyeceksem bari azıcık hazıra konayım :)
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

#16
@heartsmagic, hocam Makefile dosyasının içinde;
DXCFLAGS = -O2
BASE = /usr/lib/dx
CFLAGS = $(DXCFLAGS) -I$(BASE)/include

CFLAGS için BASE hatalı tanımlı. Çünkü .h uzantılı dosyalar orada değil. Bende


DXCFLAGS = -O2
KUT=/usr/include
CFLAGS = $(DXCFLAGS) -I$(KUT)
dosyayı bu şekilde değiştirdim.
Son hata;
bahdem@ZeuS:~/Desktop/CMSP-2.0.5$ make
for i in src; do (cd $i; make all); done
make[1]: Entering directory `/home/bahdem/Desktop/CMSP-2.0.5/src'
gcc -O2 -I/usr/include    CrystalRepeat.mdf.c   -o CrystalRepeat.mdf
In file included from /usr/include/glib/gtypes.h:36:0,
                 from /usr/include/glib/galloca.h:34,
                 from /usr/include/glib.h:32,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gversionmacros.h:145:2: error: #error "GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26"
In file included from /usr/include/glib.h:33:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/garray.h:157:45: error: unknown type name 'gsize'
In file included from /usr/include/glib/gthread.h:34:0,
                 from /usr/include/glib/gasyncqueue.h:34,
                 from /usr/include/glib.h:34,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gatomic.h:56:1: error: unknown type name 'gssize'
/usr/include/glib/gatomic.h:57:64: error: unknown type name 'gssize'
/usr/include/glib/gatomic.h:58:1: error: unknown type name 'gsize'
/usr/include/glib/gatomic.h:59:64: error: unknown type name 'gsize'
/usr/include/glib/gatomic.h:60:1: error: unknown type name 'gsize'
/usr/include/glib/gatomic.h:61:64: error: unknown type name 'gsize'
/usr/include/glib/gatomic.h:62:1: error: unknown type name 'gsize'
/usr/include/glib/gatomic.h:63:64: error: unknown type name 'gsize'
In file included from /usr/include/glib/gasyncqueue.h:34:0,
                 from /usr/include/glib.h:34,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gthread.h:51:16: error: '_GMutex' defined as wrong kind of tag
/usr/include/glib/gthread.h:197:50: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:37:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gbase64.h:32:1: error: unknown type name 'gsize'
/usr/include/glib/gbase64.h:33:34: error: unknown type name 'gsize'
/usr/include/glib/gbase64.h:38:1: error: unknown type name 'gsize'
/usr/include/glib/gbase64.h:43:34: error: unknown type name 'gsize'
/usr/include/glib/gbase64.h:44:1: error: unknown type name 'gsize'
/usr/include/glib/gbase64.h:45:34: error: unknown type name 'gsize'
/usr/include/glib/gbase64.h:50:34: error: unknown type name 'gsize'
/usr/include/glib/gbase64.h:52:34: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:39:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gbookmarkfile.h:87:11: error: unknown type name 'gsize'
/usr/include/glib/gbookmarkfile.h:94:11: error: unknown type name 'gsize'
/usr/include/glib/gbookmarkfile.h:121:11: error: unknown type name 'gsize'
/usr/include/glib/gbookmarkfile.h:131:11: error: unknown type name 'gsize'
/usr/include/glib/gbookmarkfile.h:143:11: error: unknown type name 'gsize'
/usr/include/glib/gbookmarkfile.h:196:11: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:40:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gbytes.h:37:50: error: unknown type name 'gsize'
/usr/include/glib/gbytes.h:40:50: error: unknown type name 'gsize'
/usr/include/glib/gbytes.h:43:50: error: unknown type name 'gsize'
/usr/include/glib/gbytes.h:46:50: error: unknown type name 'gsize'
/usr/include/glib/gbytes.h:51:50: error: unknown type name 'gsize'
/usr/include/glib/gbytes.h:52:50: error: unknown type name 'gsize'
/usr/include/glib/gbytes.h:55:50: error: unknown type name 'gsize'
/usr/include/glib/gbytes.h:57:1: error: unknown type name 'gsize'
/usr/include/glib/gbytes.h:64:50: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:42:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gchecksum.h:63:1: error: unknown type name 'gssize'
/usr/include/glib/gchecksum.h:71:54: error: unknown type name 'gssize'
/usr/include/glib/gchecksum.h:75:54: error: unknown type name 'gsize'
/usr/include/glib/gchecksum.h:79:54: error: unknown type name 'gsize'
/usr/include/glib/gchecksum.h:82:54: error: unknown type name 'gssize'
In file included from /usr/include/glib.h:43:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gconvert.h:81:1: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:83:10: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:85:10: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:90:5: error: unknown type name 'gssize'
/usr/include/glib/gconvert.h:93:5: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:94:5: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:97:5: error: unknown type name 'gssize'
/usr/include/glib/gconvert.h:99:5: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:100:5: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:103:5: error: unknown type name 'gssize'
/usr/include/glib/gconvert.h:107:5: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:108:5: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:115:7: error: unknown type name 'gssize'
/usr/include/glib/gconvert.h:116:7: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:117:7: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:120:7: error: unknown type name 'gssize'
/usr/include/glib/gconvert.h:121:7: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:122:7: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:138:9: error: unknown type name 'gssize'
/usr/include/glib/gconvert.h:139:9: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:140:9: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:143:9: error: unknown type name 'gssize'
/usr/include/glib/gconvert.h:144:9: error: unknown type name 'gsize'
/usr/include/glib/gconvert.h:145:9: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:45:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gdate.h:241:1: error: unknown type name 'gsize'
/usr/include/glib/gdate.h:242:44: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:50:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gfileutils.h:93:31: error: unknown type name 'gsize'
/usr/include/glib/gfileutils.h:97:31: error: unknown type name 'gssize'
In file included from /usr/include/glib.h:51:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/ggettext.h:52:31: error: unknown type name 'gsize'
In file included from /usr/include/glib/glist.h:34:0,
                 from /usr/include/glib/ghash.h:35,
                 from /usr/include/glib.h:52,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gmem.h:72:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:73:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:75:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:76:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:77:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:79:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:81:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:82:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:83:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:84:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:86:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:87:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:88:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:89:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:90:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:91:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:93:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:94:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:241:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:243:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:246:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:247:7: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:248:28: error: unknown type name 'gsize'
/usr/include/glib/gmem.h:250:7: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:53:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/ghmac.h:46:54: error: unknown type name 'gsize'
/usr/include/glib/ghmac.h:52:54: error: unknown type name 'gssize'
/usr/include/glib/ghmac.h:56:54: error: unknown type name 'gsize'
/usr/include/glib/ghmac.h:60:54: error: unknown type name 'gsize'
/usr/include/glib/ghmac.h:62:54: error: unknown type name 'gsize'
/usr/include/glib/ghmac.h:65:54: error: unknown type name 'gsize'
/usr/include/glib/ghmac.h:67:54: error: unknown type name 'gssize'
In file included from /usr/include/glib/giochannel.h:35:0,
                 from /usr/include/glib.h:56,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gmain.h:148:40: error: unknown type name 'GPid'
/usr/include/glib/gmain.h:425:36: error: unknown type name 'GPid'
/usr/include/glib/gmain.h:460:38: error: unknown type name 'GPid'
/usr/include/glib/gmain.h:461:38: error: unknown type name 'GChildWatchFunc'
/usr/include/glib/gmain.h:464:38: error: unknown type name 'GPid'
/usr/include/glib/gmain.h:465:38: error: unknown type name 'GChildWatchFunc'
In file included from /usr/include/glib/gstring.h:35:0,
                 from /usr/include/glib/giochannel.h:36,
                 from /usr/include/glib.h:56,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gunicode.h:569:1: error: unknown type name 'gsize'
/usr/include/glib/gunicode.h:572:34: error: unknown type name 'gsize'
/usr/include/glib/gunicode.h:590:36: error: unknown type name 'gsize'
/usr/include/glib/gunicode.h:595:46: error: unknown type name 'gsize'
/usr/include/glib/gunicode.h:616:37: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:629:36: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:637:36: error: unknown type name 'gsize'
/usr/include/glib/gunicode.h:642:24: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:645:24: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:648:27: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:688:27: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:692:24: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:694:24: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:696:25: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:734:26: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:740:28: error: unknown type name 'gssize'
/usr/include/glib/gunicode.h:742:41: error: unknown type name 'gssize'
In file included from /usr/include/glib/gstring.h:36:0,
                 from /usr/include/glib/giochannel.h:36,
                 from /usr/include/glib.h:56,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gutils.h:215:35: error: unknown type name 'goffset'
In file included from /usr/include/glib/giochannel.h:36:0,
                 from /usr/include/glib.h:56,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gstring.h:45:3: error: unknown type name 'gsize'
/usr/include/glib/gstring.h:46:3: error: unknown type name 'gsize'
/usr/include/glib/gstring.h:51:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:52:42: error: unknown type name 'gsize'
/usr/include/glib/gstring.h:61:42: error: unknown type name 'gsize'
/usr/include/glib/gstring.h:63:42: error: unknown type name 'gsize'
/usr/include/glib/gstring.h:65:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:67:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:72:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:85:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:87:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:90:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:93:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:96:42: error: unknown type name 'gsize'
/usr/include/glib/gstring.h:99:42: error: unknown type name 'gsize'
/usr/include/glib/gstring.h:101:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:103:42: error: unknown type name 'gssize'
/usr/include/glib/gstring.h:104:42: error: unknown type name 'gssize'
In file included from /usr/include/glib.h:56:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/giochannel.h:123:3: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:149:7: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:150:7: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:154:7: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:155:7: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:179:34: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:180:34: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:185:34: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:186:34: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:216:9: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:217:1: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:244:9: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:245:9: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:249:9: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:253:9: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:257:9: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:258:9: error: unknown type name 'gsize'
/usr/include/glib/giochannel.h:265:9: error: unknown type name 'gssize'
/usr/include/glib/giochannel.h:266:9: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:57:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gkeyfile.h:69:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:84:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:88:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:91:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:168:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:174:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:179:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:186:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:190:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:196:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:200:11: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:206:46: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:210:46: error: unknown type name 'gsize'
/usr/include/glib/gkeyfile.h:216:11: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:61:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gmappedfile.h:42:1: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:62:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gmarkup.h:158:27: error: unknown type name 'gsize'
/usr/include/glib/gmarkup.h:169:27: error: unknown type name 'gsize'
/usr/include/glib/gmarkup.h:188:52: error: unknown type name 'gssize'
/usr/include/glib/gmarkup.h:208:30: error: unknown type name 'gssize'
In file included from /usr/include/glib.h:64:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gmessages.h:48:1: error: unknown type name 'gsize'
/usr/include/glib/gmessages.h:110:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
In file included from /usr/include/glib.h:70:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gqsort.h:40:4: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:74:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gregex.h:384:8: error: unknown type name 'gssize'
/usr/include/glib/gregex.h:395:8: error: unknown type name 'gssize'
/usr/include/glib/gregex.h:411:8: error: unknown type name 'gssize'
/usr/include/glib/gregex.h:420:8: error: unknown type name 'gssize'
/usr/include/glib/gregex.h:427:8: error: unknown type name 'gssize'
/usr/include/glib/gregex.h:434:8: error: unknown type name 'gssize'
In file included from /usr/include/glib.h:78:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gslice.h:33:35: error: unknown type name 'gsize'
/usr/include/glib/gslice.h:34:35: error: unknown type name 'gsize'
/usr/include/glib/gslice.h:35:42: error: unknown type name 'gsize'
/usr/include/glib/gslice.h:37:35: error: unknown type name 'gsize'
/usr/include/glib/gslice.h:39:42: error: unknown type name 'gsize'
/usr/include/glib/gslice.h:41:7: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:80:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gspawn.h:192:25: error: unknown type name 'GPid'
/usr/include/glib/gspawn.h:205:36: error: unknown type name 'GPid'
/usr/include/glib/gspawn.h:235:25: error: unknown type name 'GPid'
In file included from /usr/include/glib.h:81:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gstrfuncs.h:109:1: error: unknown type name 'gsize'
/usr/include/glib/gstrfuncs.h:111:6: error: unknown type name 'gsize'
/usr/include/glib/gstrfuncs.h:112:1: error: unknown type name 'gsize'
/usr/include/glib/gstrfuncs.h:114:6: error: unknown type name 'gsize'
/usr/include/glib/gstrfuncs.h:116:6: error: unknown type name 'gssize'
/usr/include/glib/gstrfuncs.h:121:6: error: unknown type name 'gssize'
/usr/include/glib/gstrfuncs.h:164:9: error: unknown type name 'gsize'
/usr/include/glib/gstrfuncs.h:166:9: error: unknown type name 'gssize'
/usr/include/glib/gstrfuncs.h:168:9: error: unknown type name 'gssize'
/usr/include/glib/gstrfuncs.h:193:6: error: unknown type name 'gsize'
/usr/include/glib/gstrfuncs.h:194:40: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:83:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gstringchunk.h:40:44: error: unknown type name 'gsize'
/usr/include/glib/gstringchunk.h:47:44: error: unknown type name 'gssize'
In file included from /usr/include/glib.h:84:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gtestutils.h:171:42: error: unknown type name 'gsize'
/usr/include/glib/gtestutils.h:227:42: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:95:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gvarianttype.h:308:1: error: unknown type name 'gsize'
/usr/include/glib/gvarianttype.h:335:1: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:96:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/gvariant.h:88:74: error: unknown type name 'gssize'
/usr/include/glib/gvariant.h:90:74: error: unknown type name 'gssize'
/usr/include/glib/gvariant.h:93:74: error: unknown type name 'gssize'
/usr/include/glib/gvariant.h:96:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:97:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:110:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:112:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:114:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:116:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:118:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:120:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:123:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:125:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:127:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:133:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:135:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:140:1: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:142:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:146:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:155:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:156:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:158:1: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:178:74: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:186:3: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:190:1: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:193:1: error: unknown type name 'gsize'
/usr/include/glib/gvariant.h:207:3: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:103:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/deprecated/gallocator.h:47:42: error: unknown type name 'gsize'
In file included from /usr/include/glib.h:105:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/deprecated/gcompletion.h:47:41: error: unknown type name 'gsize'
/usr/include/glib/deprecated/gcompletion.h:56:3: error: unknown type name 'GCompletionStrncmpFunc'
/usr/include/glib/deprecated/gcompletion.h:79:42: error: unknown type name 'GCompletionStrncmpFunc'
In file included from /usr/include/glib.h:108:0,
                 from /usr/include/dx.h:23,
                 from CrystalRepeat.mdf.c:3:
/usr/include/glib/deprecated/gthread.h:135:3: error: conflicting types for 'GStaticMutex'
/usr/include/glibconfig.h:79:30: note: previous declaration of 'GStaticMutex' was here
/usr/include/glib/deprecated/gthread.h:256:1: error: unknown type name 'gsize'
CrystalRepeat.mdf.c:13:1: error: unknown type name 'Error'
CrystalRepeat.mdf.c: In function 'DXEntry':
CrystalRepeat.mdf.c:31:9: error: unknown type name 'Error'
CrystalRepeat.mdf.c:31:38: error: unknown type name 'Object'
CrystalRepeat.mdf.c:31:48: error: unknown type name 'Object'
CrystalRepeat.mdf.c:33:38: error: 'm_CrystalRepeat' undeclared (first use in this function)
CrystalRepeat.mdf.c:33:38: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CrystalRepeat.mdf] Error 1
make[1]: Leaving directory `/home/bahdem/Desktop/CMSP-2.0.5/src'
make: *** [all] Error 2

Up and Running...

heartsmagic

@bahdem, sözümü tutamayacağım bir süre için ne yazık ki. Akşamları artık vakit bulmam pek mümkün olmayacak gibi. İlk gördüğüm şey şu ama:
error: #error "GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26"

Glib sürümü diyor, ancak güncel sürüm kullanıyorsan bu sıkıntı olmamalı. Yazılım tarafında bir şeyler olabilir belki?
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

#18
@heartsmagic,
glib için 2.26.1 sürümünü yükledim. Sorun şu hale geldi :)
/usr/include/glib-2.26.1/glib/gbase64.h:32:1: error: unknown type name 'gsize'
/usr/include/glib-2.26.1/glib/gbase64.h:33:34: error: unknown type name 'gsize'
/usr/include/glib-2.26.1/glib/gbase64.h:38:1: error: unknown type name 'gsize'
/usr/include/glib-2.26.1/glib/gbase64.h:43:34: error: unknown type name 'gsize'
/usr/include/glib-2.26.1/glib/gbase64.h:44:1: error: unknown type name 'gsize'
/usr/include/glib-2.26.1/glib/gbase64.h:45:34: error: unknown type name 'gsize'
/usr/include/glib-2.26.1/glib/gbase64.h:50:34: error: unknown type name 'gsize'
/usr/include/glib-2.26.1/glib/gbase64.h:52:34: error: unknown type name 'gsize'



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 14 Kasım 2012 - 12:56:10

Sorun aslında include içindeki dosyaların dizininlerinin yanlış verilmesi gibi geldi bana. Make dosyasında bazı değişilikler yaptım. Sonrasında eksik olan .h uzantılı olan dosyaları gerekli yerlere koydum ve son olarak hata bu hali aldı.
└──>>make
for i in src; do (cd $i; make all); done
make[1]: Entering directory `/usr/lib/dx/CMSP-2.0.5/src'
gcc -O2 -I/usr/include/glib-2.35.1    CrystalRepeat.mdf.c   -o CrystalRepeat.mdf
CrystalRepeat.mdf.c:13:1: error: unknown type name 'Error'
CrystalRepeat.mdf.c: In function 'DXEntry':
CrystalRepeat.mdf.c:31:9: error: unknown type name 'Error'
CrystalRepeat.mdf.c:31:38: error: unknown type name 'Object'
CrystalRepeat.mdf.c:31:48: error: unknown type name 'Object'
CrystalRepeat.mdf.c:33:38: error: 'm_CrystalRepeat' undeclared (first use in this function)
CrystalRepeat.mdf.c:33:38: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CrystalRepeat.mdf] Error 1
make[1]: Leaving directory `/usr/lib/dx/CMSP-2.0.5/src'
make: *** [all] Error 2
Up and Running...

heartsmagic

Genelde böyle elle düzenlemelerin sonu çıkmaz sokağa doğru gider :) Bu uygulamanın sürümü en son ne zaman çıkmış? Eğer biraz gerideyse yeni uygulamalara, kütüphanelere uyum sağlayamıyordur bir ihtimal.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

zeusmaster

#20
@heartsmagic, hocam bende bu gidişle çıkmaz sokağa doğru gideceğim sanırım :) Bu sürüm 30/03/2010 tarihinde yayınlanmış. Bana verdiği hata, dediğiniz gibi, glib versiyon hatasıydı. Onu düzeltince bu hale döndü :)
CrystalRepeat.mdf.c dosyası içeriği;

/* Automatically generated - may need to edit! */

#include <glib/dx.h>
#include <glib/modflags.h>

#if defined(intelnt) || defined(WIN32)
#include <windows.h>
#endif

#if defined(__cplusplus)
extern "C" Error DXAddModule (char *, ...);
#else
extern Error DXAddModule (char *, ...);
#endif

#if defined(__cplusplus)
extern "C" Error m_CrystalRepeat(Object*, Object*);
#endif
#if defined(intelnt) || defined(WIN32)
void FAR WINAPI DXEntry()
#else
  #if defined(__cplusplus)
    extern "C" void DXEntry()
  #else
    void DXEntry()
  #endif
#endif
{
    {
#ifndef __cplusplus
        extern Error m_CrystalRepeat(Object *, Object *);
#endif
        DXAddModule("CrystalRepeat", m_CrystalRepeat, 0,
            4, "unitcell", "repeat", "unitvectors", "cycle",
            1, "repeated");
    }
}

Up and Running...

heartsmagic

Mümkünse daha güncel bir sürüm aramak lazım, ben uzunca bir süre ilk elden bakamayacağım.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

if

@bahdem, libdx4-dev paketini kurunca ne oluyor?

zeusmaster

Alıntı yapılan: if - 14 Kasım 2012 - 22:54:49
@bahdem, libdx4-dev paketini kurunca ne oluyor?
Derlemeye başlamadan önce sisteme opendx kurmuştuma am dediğin gibi o paketi de kurdum ama sorun gene aynı sanırım :) Bu gidişle çıkmazlara doğru gideceğim sanırım :)
└──>>make
for i in src; do (cd $i; make all); done
make[1]: Entering directory `/usr/lib/dx/CMSP-2.0.5/src'
gcc -O2 -I/usr/include/glib-2.35.1    CrystalRepeat.mdf.c   -o CrystalRepeat.mdf
CrystalRepeat.mdf.c:13:1: error: unknown type name 'Error'
CrystalRepeat.mdf.c: In function 'DXEntry':
CrystalRepeat.mdf.c:31:9: error: unknown type name 'Error'
CrystalRepeat.mdf.c:31:38: error: unknown type name 'Object'
CrystalRepeat.mdf.c:31:48: error: unknown type name 'Object'
CrystalRepeat.mdf.c:33:38: error: 'm_CrystalRepeat' undeclared (first use in this function)
CrystalRepeat.mdf.c:33:38: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [CrystalRepeat.mdf] Error 1
make[1]: Leaving directory `/usr/lib/dx/CMSP-2.0.5/src'
make: *** [all] Error 2
Up and Running...

if

Ben de tıkandım @bahdem:)