SA-MP Forums Archive
[Help] ./SDK/amx/*.c: No such file or directory - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Help] ./SDK/amx/*.c: No such file or directory (/showthread.php?tid=259902)



[Help] ./SDK/amx/*.c: No such file or directory - norbud4 - 06.06.2011

Hi.

I never compile in Linux and I have problem.

When i type "make" i get that:


Код:
gcc -c -O3 -w -DLINUX -I./SDK/amx/ ./SDK/amx/*.c
gcc: ./SDK/amx/*.c: No such file or directory
gcc: no input files
make: *** [all] Error 1
How can I fix it?


Re: [Help] ./SDK/amx/*.c: No such file or directory - MaXSpeeD - 07.06.2011

have your sdk then your folder with your cpp, def and make files in it next to each other insted of 1 "." change your source so its 2 (../SDK/amx/*.c) on all the sdk include lines then go into the folder with your project in the terminal and type make let me know if it helps


Re: [Help] ./SDK/amx/*.c: No such file or directory - norbud4 - 08.06.2011

Now i got this, when i type "make" in Streamer project

Код:
g++ -c ./SDK/*.cpp ./Source/*.cpp ./*.cpp -O3 -fno-strict-aliasing -fmerge-all-constants -fvisibility=hidden -ffunction-sections -fdata-sections -Wall -I./
g++ -melf_i386 -Wl,--gc-sections -s -shared -o ./streamer.so *.o
/usr/bin/ld: Core.o: relocation R_X86_64_32 against `boost::unordered_detail::prime_list_template<unsigned long>::value' can not be used when making a shared object; recompile with -fPIC
Core.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [all] Error 1



Re: [Help] ./SDK/amx/*.c: No such file or directory - Cypog - 10.06.2011

Can't you read? It clearly says what you have to do: Add the option -fPIC to your command line.

You can find information about -fpic, -fPIC and other compiler options here:
http://gcc.gnu.org/onlinedocs/gcc/Co...ndex-fpic-2161