1. sayfa (Toplam 2 sayfa)

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Pzt Oca 25, 2021 11:24 pm
gönderen ADOW
Arch kulanıyorum ve Visual Studio Code plugin derlerken bu hata alıyorum

Aldım hata

Kod: Tümünü seç

 The terminal process failed to launch: Path to shell executable "/home/omer/Belgeler/scripting\amxxpc" does not exist.
settings.json aşıgıdaki gibi

Kod: Tümünü seç

{
    "amxxpawn.compiler.executablePath": "\\home\\omer\\Belgeler\\scripting\\amxxpc",
    "amxxpawn.compiler.includePaths": [
   
        "\\home\\omer\\Belgeler\\scripting\\include"
    ]
}
çöze bilcek varmı 2 gündür çözemedim

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Pzt Oca 25, 2021 11:39 pm
gönderen OPC Line
\\home\\omer\\Belgeler\\scripting\\amxxpc dosya yolunda amxxpc.exe yi bulamamış. Tekrardan tanıttır düzelir.

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Pzt Oca 25, 2021 11:51 pm
gönderen ADOW
OPC Line yazdı: Pzt Oca 25, 2021 11:39 pm \\home\\omer\\Belgeler\\scripting\\amxxpc dosya yolunda amxxpc.exe yi bulamamış. Tekrardan tanıttır düzelir.
"linux" kulanıyorum dedim ya reis :D

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Sal Oca 26, 2021 1:01 am
gönderen Ömer TELLİ
terminale

Kod: Tümünü seç

ls -al /home/omer/Belgeler/scripting/
yazıp çıktısını atar mısın
settings dosyasınıda aşağıdaki şekilde günceller misin

Kod: Tümünü seç

{
    "amxxpawn.compiler.executablePath": "/home/omer/Belgeler/scripting/amxxpc",
    "amxxpawn.compiler.includePaths": [
        "/home/omer/Belgeler/scripting/include"
    ]
}

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Sal Oca 26, 2021 1:17 am
gönderen ADOW
çıktı aşagıdaki gibi

Kod: Tümünü seç

[omer@GokTurk ~]$ ls -al /home/omer/Belgeler/scripting/
toplam 420
drwx------ 5 omer omer   4096 Oca 25 16:16 .
drwxr-xr-x 3 omer omer   4096 Oca 25 15:54 ..
-rw-r--r-- 1 omer omer 182080 Ara  6 23:11 amxxpc
-rw-r--r-- 1 omer omer 219204 Ara  6 23:11 amxxpc32.so
drwxr-xr-x 2 omer omer   4096 Oca 25 16:16 compiled
-rw-r--r-- 1 omer omer    467 Eyl 11  2018 compile.sh
drwx------ 2 omer omer   4096 Oca 22 17:48 include
drwxr-xr-x 2 omer omer   4096 Oca 25 16:14 .vscode
[omer@GokTurk ~]$ 
taks.json belki lazım olur abi

Kod: Tümünü seç

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "taskName": "Compile Plugin",
            "type": "process",
            "command": "${workspaceRoot}\\compile.sh",
            "args": [
                "${file}",
                "-i${workspaceRoot}\\include",
                "-o${workspaceRoot}\\compiled\\${fileBasenameNoExtension}.amxx"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}
yaptını denedim ama bişey olmadi bide

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Sal Oca 26, 2021 2:05 am
gönderen Ömer TELLİ
terminalde

Kod: Tümünü seç

 
chmod +x  /home/omer/Belgeler/scripting/*
yapıp ardından aşağıdaki komutu gir bakalım amxxpc çalışıyor mu ?

Kod: Tümünü seç

 /home/omer/Belgeler/scripting/amxxpc
Ayar dosyalarındaki \\ işaretlerini / olarak değiştirmelisin.

Son olarak

Kod: Tümünü seç

cat /home/omer/Belgeler/scripting/compile.sh
bunun çıktısını at bakalım muhtemelen hata burada

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Sal Oca 26, 2021 9:54 am
gönderen ADOW
/home/omer/Belgeler/scripting/amxxpc çıktısı

Kod: Tümünü seç

[omer@GokTurk ~]$  /home/omer/Belgeler/scripting/amxxpc
compiler failed to instantiate: amxxpc32.so: cannot open shared object file: No such file or directory
cat /home/omer/Belgeler/scripting/compile.sh çıktısı

Kod: Tümünü seç

[omer@GokTurk ~]$ cat /home/omer/Belgeler/scripting/compile.sh
#!/bin/bash

# AMX Mod X
#
# by the AMX Mod X Development Team
#  originally developed by OLO
#
# This file is part of AMX Mod X.

# new code contributed by \malex\

test -e compiled || mkdir compiled
rm -f temp.txt

for sourcefile in *.sma
do
        amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx/'`"
        echo -n "Compiling $sourcefile ..."
        ./amxxpc $sourcefile -ocompiled/$amxxfile >> temp.txt
        echo "done"
done

less temp.txt
rm temp.txt
dediğin herşeyi yaptım abi artık compile edince compile altıki gibi oluyor

Kod: Tümünü seç

AMX Mod X Compiler 1.10.0.5412
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

*.sma(0) : fatal error 100: cannot read from file: "*.sma"

Compilation aborted.
1 Error.
Could not locate output file compiled/*.amx (compile failed).
~
~

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Sal Oca 26, 2021 10:28 am
gönderen Ömer TELLİ
Amacın toplu derleme yapmak mı yoksa tek bir dosyayı derlemek mi ?
Tek dosya ise compiled.sh ile falan hiç uğraşma, biraz çorba etmişsin
tasks.json'ı aç aşağıdaki gibi komple değiştir dene bakalım ne olacak

Kod: Tümünü seç

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "taskName": "Compile Plugin",
            "type": "process",
            "command": "/home/omer/Belgeler/scripting/amxxpc",
            "args": [
                "${file}",
                "-i/home/omer/Belgeler/scripting/include",
                "-o${workspaceRoot}/${fileBasenameNoExtension}.amxx"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}
Bu şekilde eklentiyi yazma izni olan herhangi bir yerde açıp derlemeye çalıştığın an, .amxx dosyasını .sma dosyası neredeyse oraya çıkartması gerekiyor.

masaüstünde bir sma dosyasını açıp derle, çıktıyı at bakalım hata verecek mi,
gerekli bütün kütüphaneleri "/home/omer/Belgeler/scripting/include" buraya atman yeterli olacaktır

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Sal Oca 26, 2021 11:10 am
gönderen ADOW
Abi plugini compile ediyor çok teşekkür ederim bide

compile etigi .amxx dosyalarını şu yola atmak istiyorum nasıl yapa bilirim ?

Kod: Tümünü seç

/home/omer/Belgeler/scripting/compiled/

Visual Studio Code plugin derlerken hata alıyorum (Linux )

Gönderilme zamanı: Sal Oca 26, 2021 11:28 am
gönderen Ömer TELLİ
Dosyayı açtığın dizine derlemesi daha düzenli olur diye düşünmüştüm, aşağıdaki şekilde -o parametresini değiştirmen kafi

Kod: Tümünü seç

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "taskName": "Compile Plugin",
            "type": "process",
            "command": "/home/omer/Belgeler/scripting/amxxpc",
            "args": [
                "${file}",
                "-i/home/omer/Belgeler/scripting/include",
                "-o/home/omer/Belgeler/scripting/compiled/"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}