• Gmpublish_linux Error while loading shared libraries
    8 replies, posted
I'm trying to publish an addon to the workshop with the following code in shell. [CODE] #!/bin/sh gmad_publish_file=$HOME/Documents/wew/project/project_workshop.gma gmad_publish_icon=$HOME/Documents/wew/project/icon.png cd $HOME/.local/share/Steam/steamapps/common/GarrysMod/bin # Goto the /bin/ folder ./gmpublish_linux create -addon "$gmad_publish_file" -icon "$gmad_publish_icon" echo "Gmad: Finished " # Then tell the user we are done here! exit 0 # Exit as 0 ( for logging wrappers ) [/CODE] And im getting this error even when ran with no extra arguments [CODE]$ ./gmpublish_linux ./gmpublish_linux: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory [/CODE] I have tried [URL="https://itsfoss.com/solve-open-shared-object-file-quick-tip/"]Robotboy665's suggestion[/URL] but that didn't work. Any help? [b]I am running on Ubuntu 16.04[/b]
[CODE]$ LD_LIBRARY_PATH=./ ./gmpublish_linux[/CODE] [editline]24th August 2016[/editline] For your case: [CODE]#!/bin/sh gmad_publish_file=$HOME/Documents/wew/project/project_workshop.gma gmad_publish_icon=$HOME/Documents/wew/project/icon.png cd $HOME/.local/share/Steam/steamapps/common/GarrysMod/bin # Goto the /bin/ folder LD_LIBRARY_PATH=./ ./gmpublish_linux create -addon "$gmad_publish_file" -icon "$gmad_publish_icon" echo "Gmad: Finished " # Then tell the user we are done here! exit 0 # Exit as 0 ( for logging wrappers )[/CODE]
[QUOTE=xDShot;50940949][CODE]$ LD_LIBRARY_PATH=./ ./gmpublish_linux[/CODE] [editline]24th August 2016[/editline] For your case: [CODE]#!/bin/sh gmad_publish_file=$HOME/Documents/wew/project/project_workshop.gma gmad_publish_icon=$HOME/Documents/wew/project/icon.png cd $HOME/.local/share/Steam/steamapps/common/GarrysMod/bin # Goto the /bin/ folder LD_LIBRARY_PATH=./ ./gmpublish_linux create -addon "$gmad_publish_file" -icon "$gmad_publish_icon" echo "Gmad: Finished " # Then tell the user we are done here! exit 0 # Exit as 0 ( for logging wrappers )[/CODE][/QUOTE] Seems to have worked, thanks for the help :D EDIT: I'm getting this error now [code]Couldn't load icon - is it a jpeg? [/code]
Your icon must be 512x512 jpeg file. PNG not allowed.
[QUOTE=Robotboy655;50943371]Your icon must be 512x512 jpeg file. PNG not allowed.[/QUOTE] Any good websites for converting pngs to jpeg?
Just download any graphics painting program available for your Operating System jee, how did you even create the image in the first place?
[QUOTE=Robotboy655;50943683]Just download any graphics painting program available for your Operating System jee, how did you even create the image in the first place?[/QUOTE] I've already tried exporting as jpeg. It (SURPRISE) didn't work Also tired exporting with the original gimp source file and it still shows that message.
Your JPEG [b]MUST[/b] be a Baseline JPEG, not a progressive JPEG. [editline]25th August 2016[/editline] More info: [url]http://wiki.garrysmod.com/page/Workshop_Addon_Creation#The_icon[/url]
[QUOTE=Robotboy655;50943836]Your JPEG [b]MUST[/b] be a Baseline JPEG, not a progressive JPEG. [editline]25th August 2016[/editline] More info: [url]http://wiki.garrysmod.com/page/Workshop_Addon_Creation#The_icon[/url][/QUOTE] Working now, thanks for the help. Info for lurkers: [url]https://www.youtube.com/watch?v=SadyOSO3D8w[/url]
Sorry, you need to Log In to post a reply to this thread.