Charrua Posted July 4, 2017 Share Posted July 4, 2017 I'm new here. in linux I started a marble, project, publish it as standalone, and run it by double clicking on the marble file inside the marble folder on the desktop, no problem. I started a "tutorial samples" project, write my own app.h and app.cpp, did not change main.cpp I run it form the editor, and from code blocks without any problem. I publish the project as stand alone and when i double click the pj01 file on the pj01 folder on the desktop, nothing happens, if I right click and select run, same result, then i open a terminal and when i type ./pj01 and hit enter the error message appears. Any advise? thank's Juan Quote Paren el mundo!, me quiero bajar. Link to comment Share on other sites More sharing options...
SpEcIeS Posted July 4, 2017 Share Posted July 4, 2017 Not sure if this will help you out, but here is a shell script that I use: #!/bin/bash export LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" NAME="$(basename $PWD)" OPT="$1" if [ "$OPT" == "debug" ]; then exec "./${NAME}.debug" "$@" else exec "./${NAME}" "$@" fi The default is to use a release compile and the debug runs [PROJECT_NAME].debug. Give that a go. 2 Quote SpEcIeS Link to comment Share on other sites More sharing options...
Charrua Posted July 4, 2017 Author Share Posted July 4, 2017 thank's it did the difference, runing ok now 1 Quote Paren el mundo!, me quiero bajar. Link to comment Share on other sites More sharing options...
Josh Posted July 5, 2017 Share Posted July 5, 2017 The default template includes an .sh file with these contents: export LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" exec "./$PROJECT_NAME" "$@" That should do it. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Charrua Posted July 5, 2017 Author Share Posted July 5, 2017 3 hours ago, Josh said: The default template includes an .sh file with these contents: export LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" exec "./$PROJECT_NAME" "$@" That should do it. didn't see it thank's Quote Paren el mundo!, me quiero bajar. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.