Code: Select all
make -C libpsplink all
make[1]: Entering directory `/home/mortimus/psplink/libpsplink'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mortimus/psplink/libpsplink'
make -C psplink all
make[1]: Entering directory `/home/mortimus/psplink/psplink'
psp-build-exports -b exports.exp > exports.c
*** stack smashing detected ***: psp-build-exports terminated
Aborted (core dumped)
make[1]: *** [exports.c] Error 134
rm exports.c
make[1]: Leaving directory `/home/mortimus/psplink/psplink'
make: *** [all] Error 2
and when i try to compile psptex for gimp i get
Code: Select all
rm -f psp.o
gcc -o psp.o -O2 -c -mms-bitfields -D G_OS_WIN32 src/psp.c
src/psp.c:44:26: error: libgimp/gimp.h: No such file or directory
src/psp.c:45:28: error: libgimp/gimpui.h: No such file or directory
src/psp.c:56:21: error: windows.h: No such file or directory
In file included from src/psp.c:57:
src/win32_hack.c:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GimpLibBase’
src/win32_hack.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GimpBaseLibBase’
src/win32_hack.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GimpUiLibBase’
src/win32_hack.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GimpWidgetsLibBase’
src/win32_hack.c:38: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/win32_hack.c:39: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/win32_hack.c:52: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/win32_hack.c:52: error: expected ‘)’ before ‘drawable_ID’
src/win32_hack.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/win32_hack.c:54: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/win32_hack.c:54: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/win32_hack.c:55: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/win32_hack.c:55: error: expected ‘)’ before ‘percentage’
src/win32_hack.c:56: error: expected ‘)’ before ‘*’ token
src/win32_hack.c:64: error: expected ‘)’ before ‘*’ token
src/win32_hack.c:70: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/win32_hack.c:70: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/win32_hack.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/win32_hack.c:74: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/win32_hack.c:74: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/win32_hack.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/win32_hack.c:81: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/win32_hack.c:81: error: expected ‘)’ before ‘*’ token
src/win32_hack.c:82: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/win32_hack.c:82: error: ‘GType’ declared as function returning a function
src/win32_hack.c: In function ‘GType’:
src/win32_hack.c:82: error: expected declaration specifiers before ‘G_GNUC_CONST’
src/win32_hack.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/win32_hack.c:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
In file included from src/psp.c:60:
src/psp.h:34:21: error: gtk/gtk.h: No such file or directory
In file included from src/psp.c:60:
src/psp.h:56: error: expected specifier-qualifier-list before ‘gint’
src/psp.h:65: error: storage class specified for parameter ‘PluginValues’
src/psp.h:65: error: storage class specified for parameter ‘LPPluginValues’
src/psp.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘values_defaults’
In file included from src/support.c:39,
from src/psp.c:61:
src/support.h:43: error: expected declaration specifiers before ‘GtkWidget’
src/support.h:46: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/support.h:53: error: expected declaration specifiers before ‘GtkWidget’
src/support.h:56: error: expected declaration specifiers before ‘GdkPixbuf’
src/support.h:59: error: expected ‘)’ before ‘*’ token
In file included from src/psp.c:61:
src/support.c:41: error: expected declaration specifiers before ‘GtkWidget’
src/support.c:59: error: expected ‘)’ before ‘*’ token
In file included from src/callbacks.c:36,
from src/psp.c:62:
src/callbacks.h:35: error: expected ‘)’ before ‘*’ token
src/callbacks.h:36: error: expected ‘)’ before ‘*’ token
src/callbacks.h:37: error: expected ‘)’ before ‘*’ token
src/callbacks.h:38: error: expected ‘)’ before ‘*’ token
src/callbacks.h:39: error: expected ‘)’ before ‘*’ token
src/callbacks.h:40: error: expected ‘)’ before ‘*’ token
src/callbacks.h:41: error: expected ‘)’ before ‘*’ token
src/callbacks.h:42: error: expected ‘)’ before ‘*’ token
src/callbacks.h:43: error: expected ‘)’ before ‘*’ token
src/callbacks.h:44: error: expected ‘)’ before ‘*’ token
src/callbacks.h:45: error: expected ‘)’ before ‘*’ token
src/callbacks.h:46: error: expected ‘)’ before ‘*’ token
In file included from src/callbacks.c:37,
from src/psp.c:62:
src/interface.h:36: error: expected declaration specifiers before ‘GtkWidget’
src/interface.h:37: error: expected declaration specifiers before ‘GtkWidget’
In file included from src/callbacks.c:38,
from src/psp.c:62:
src/support.h:43: error: expected declaration specifiers before ‘GtkWidget’
src/support.h:46: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/support.h:53: error: expected declaration specifiers before ‘GtkWidget’
src/support.h:56: error: expected declaration specifiers before ‘GdkPixbuf’
src/support.h:59: error: expected ‘)’ before ‘*’ token
In file included from src/psp.c:62:
src/callbacks.c:47: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/callbacks.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:49: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/callbacks.c:49: error: expected ‘)’ before ‘*’ token
src/callbacks.c:50: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/callbacks.c:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘G_GNUC_CONST’
src/callbacks.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/callbacks.c:72: error: storage class specified for parameter ‘string’
src/callbacks.c:74: error: expected ‘)’ before ‘*’ token
src/callbacks.c:145: error: expected ‘)’ before ‘*’ token
src/callbacks.c:149: error: expected ‘)’ before ‘*’ token
src/callbacks.c:153: error: expected ‘)’ before ‘*’ token
src/callbacks.c:161: error: expected ‘)’ before ‘*’ token
src/callbacks.c:179: error: expected ‘)’ before ‘*’ token
src/callbacks.c:186: error: expected ‘)’ before ‘*’ token
src/callbacks.c:193: error: expected ‘)’ before ‘*’ token
src/callbacks.c:230: error: expected ‘)’ before ‘*’ token
In file included from src/psp.c:63:
src/interface.c:39:28: error: gdk/gdkkeysyms.h: No such file or directory
In file included from src/interface.c:42,
from src/psp.c:63:
src/callbacks.h:35: error: expected ‘)’ before ‘*’ token
src/callbacks.h:36: error: expected ‘)’ before ‘*’ token
src/callbacks.h:37: error: expected ‘)’ before ‘*’ token
src/callbacks.h:38: error: expected ‘)’ before ‘*’ token
src/callbacks.h:39: error: expected ‘)’ before ‘*’ token
src/callbacks.h:40: error: expected ‘)’ before ‘*’ token
src/callbacks.h:41: error: expected ‘)’ before ‘*’ token
src/callbacks.h:42: error: expected ‘)’ before ‘*’ token
src/callbacks.h:43: error: expected ‘)’ before ‘*’ token
src/callbacks.h:44: error: expected ‘)’ before ‘*’ token
src/callbacks.h:45: error: expected ‘)’ before ‘*’ token
src/callbacks.h:46: error: expected ‘)’ before ‘*’ token
In file included from src/interface.c:43,
from src/psp.c:63:
src/interface.h:36: error: expected declaration specifiers before ‘GtkWidget’
src/interface.h:37: error: expected declaration specifiers before ‘GtkWidget’
In file included from src/interface.c:44,
from src/psp.c:63:
src/support.h:43: error: expected declaration specifiers before ‘GtkWidget’
src/support.h:46: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/support.h:53: error: expected declaration specifiers before ‘GtkWidget’
src/support.h:56: error: expected declaration specifiers before ‘GdkPixbuf’
src/support.h:59: error: expected ‘)’ before ‘*’ token
In file included from src/psp.c:63:
src/interface.c:48: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:49: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:50: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:51: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:52: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:53: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:54: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:55: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:56: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:57: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:58: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:59: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:60: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:61: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:62: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:63: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:64: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:65: error: redefinition of parameter ‘string’
src/callbacks.c:72: error: previous definition of ‘string’ was here
src/interface.c:74: error: expected declaration specifiers before ‘GtkWidget’
src/interface.c:261: error: expected declaration specifiers before ‘GtkWidget’
In file included from src/txc_dxtn.c:35,
from src/psp.c:64:
src/txc_dxtn.h:37: error: storage class specified for parameter ‘GLchan’
In file included from src/psp.c:64:
src/txc_dxtn.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/txc_dxtn.c:226: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/txc_dxtn.c:340: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/txc_dxtn.c:388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/txc_dxtn.c:399: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/txc_dxtn.c:691: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/txc_dxtn.c:704: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
In file included from src/psp.c:65:
src/config.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/config.c:11: error: parameter ‘Config_Keys’ is initialized
src/config.c:12: warning: initialization from incompatible pointer type
src/config.c:13: warning: excess elements in scalar initializer
src/config.c:13: warning: (near initialization for ‘Config_Keys’)
src/config.c:14: warning: excess elements in scalar initializer
src/config.c:14: warning: (near initialization for ‘Config_Keys’)
src/config.c:15: warning: excess elements in scalar initializer
src/config.c:15: warning: (near initialization for ‘Config_Keys’)
src/config.c:16: warning: excess elements in scalar initializer
src/config.c:16: warning: (near initialization for ‘Config_Keys’)
src/config.c:17: warning: excess elements in scalar initializer
src/config.c:17: warning: (near initialization for ‘Config_Keys’)
src/config.c:18: warning: excess elements in scalar initializer
src/config.c:18: warning: (near initialization for ‘Config_Keys’)
src/config.c:19: warning: excess elements in scalar initializer
src/config.c:19: warning: (near initialization for ‘Config_Keys’)
src/config.c:21: warning: excess elements in scalar initializer
src/config.c:21: warning: (near initialization for ‘Config_Keys’)
src/config.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/config.c:36: error: expected ‘)’ before ‘Values’
src/config.c:100: error: expected ‘)’ before ‘Values’
src/psp.c:69: error: expected declaration specifiers before ‘PluginValues’
src/psp.c:77: error: expected declaration specifiers before ‘;’ token
src/psp.c:82: error: expected declaration specifiers or ‘...’ before ‘gint’
src/psp.c:82: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/psp.c:83: error: expected declaration specifiers before ‘gint32’
src/psp.c:87: error: expected declaration specifiers before ‘GimpPlugInInfo’
src/psp.c:92: error: expected declaration specifiers before ‘;’ token
src/psp.c:94: error: expected declaration specifiers before ‘gint’
src/psp.c:96: error: expected declaration specifiers before ‘guint’
src/psp.c:96: error: expected declaration specifiers before ‘;’ token
src/psp.c:101: warning: empty declaration
src/psp.c:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘WinMain’
src/psp.c:113: error: expected declaration specifiers before ‘gint’
src/psp.c:149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/psp.c:174: error: expected declaration specifiers or ‘...’ before ‘gint’
src/psp.c:174: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/psp.c:203: error: expected declaration specifiers before ‘gushort’
src/psp.c:218: error: expected declaration specifiers before ‘gushort’
src/psp.c:234: error: expected declaration specifiers before ‘gushort’
src/psp.c:249: error: expected declaration specifiers before ‘guint’
src/psp.c:264: error: expected declaration specifiers before ‘guchar’
src/psp.c:270: error: expected ‘)’ before ‘*’ token
src/psp.c:322: error: expected ‘)’ before ‘*’ token
src/psp.c:372: error: expected ‘)’ before ‘*’ token
src/psp.c:406: error: expected ‘)’ before ‘*’ token
src/psp.c:442: error: expected ‘)’ before ‘*’ token
src/psp.c:479: error: expected ‘)’ before ‘*’ token
src/psp.c:502: error: expected ‘)’ before ‘*’ token
src/psp.c:528: error: expected ‘)’ before ‘*’ token
src/psp.c:565: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/psp.c:586: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/psp.c:607: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/psp.c:625: error: expected ‘)’ before ‘*’ token
src/psp.c:673: error: expected ‘)’ before ‘*’ token
src/psp.c:701: error: expected declaration specifiers before ‘gint’
src/psp.c:81: error: declaration for parameter ‘query’ but no such parameter
src/config.c:22: error: declaration for parameter ‘Config_FileName’ but no such parameter
src/config.c:11: error: declaration for parameter ‘Config_Keys’ but no such parameter
src/txc_dxtn.h:50: error: declaration for parameter ‘tx_compress_dxtn’ but no such parameter
src/txc_dxtn.h:48: error: declaration for parameter ‘fetch_2d_texel_rgba_dxt5’ but no such parameter
src/txc_dxtn.h:47: error: declaration for parameter ‘fetch_2d_texel_rgba_dxt3’ but no such parameter
src/txc_dxtn.h:46: error: declaration for parameter ‘fetch_2d_texel_rgba_dxt1’ but no such parameter
src/txc_dxtn.h:45: error: declaration for parameter ‘fetch_2d_texel_rgb_dxt1’ but no such parameter
src/txc_dxtn.h:37: error: declaration for parameter ‘GLchan’ but no such parameter
src/interface.c:65: error: declaration for parameter ‘string’ but no such parameter
src/callbacks.c:72: error: declaration for parameter ‘string’ but no such parameter
src/psp.h:65: error: declaration for parameter ‘LPPluginValues’ but no such parameter
src/psp.h:65: error: declaration for parameter ‘PluginValues’ but no such parameter
src/psp.c:1055: error: expected ‘{’ at end of input
make: *** [psp.o] Error 1
err nm, guess i didn't understand how to compile gimp plugins....
gimptool --build psp.c
gimptool --install-bin psp
did the trick