Closed haobug closed 8 years ago
$ ./sublime-imfix $ subl ERROR: ld.so: object '/opt/sublime_text/libsublime-imfix.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
$ cd src $ gcc -shared -o libsublime-imfix.so sublime-imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC $ sudo cp libsublime-imfix.so /opt/sublime_text/ $ subl
You can rebuild libsublime-imfix.so file with below command:
libsublime-imfix.so
gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC