Hello forum people, im a newbie, its my first post and before of all thank you for stopping here and reading me.
I have read the instructions for first posting, and i saw a post involving a trouble similar to mine, that its called "Cant build and run" on Help section. As it is a 2007 post and my OS is different than the one who that post talks about, i decided to create this new post (sorry if i should not have do this)
Well, issue is that i downloaded CodeBlocks 16.01 on linux mint, downloaded the build-essentials , g++-8 and xterm packages and installed all of it. My problem is that when i try to debug and run any project, log says:
-------------- Build: Debug in dungeon (compiler: GNU GCC Compiler)---------------
g++ -Wall -fexceptions -g -Iinclude -I/home/pelu/Escritorio/dungeon/src -c /home/pelu/Escritorio/dungeon/src/GameMap.cpp -o obj/Debug/src/GameMap.o
execvp(./home/pelu/Fundamentos, de, , g++ -Wall -fexceptions -g -Iinclude -I/home/pelu/Escritorio/dungeon/src -c /home/pelu/Escritorio/dungeon/src/GameMap.cpp -o obj/Debug/src/GameMap.o) failed with error 2!
Process terminated with status -1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
:'( :'( :'(
Truly appreciate your time and suggests.
Oh sorry about the log format, already changed it.
Im trying to run my application with the "build and run" button. A pop up window displays with the message:
It seems that this project has not been built yet. Do you want to build it now?
I press "Yes" and then i get the log message.
Thank you for your time :)
I see this piece of path you mention in the log
execvp(./home/pelu[b]/Fundamentos, de, ,[/b] g++-8 -Wall -fexceptions -g -I/home/pelu/Escritorio/HolaMundo -c /home/pelu/Escritorio/HolaMundo/main.cpp -o /obj/Debug/main.o) failed with error 2!
But i dont understand why that appears, because the actual route where my projects are is:
/home/pelu/desktop/project_folder
(Note im trying to run and build the example project here, not even one of my creation)
It's maybe the configured destination folder for the output files? If so, and the void spaces in the path name are the problem, where i can set a new destination folder?
Also now i have an extra pop up window, saying:
Can't create output directory /bin/debug
Thank you dude :)
I have a dungeon.exe file on that path. I gave it 777, opened C::B and tryed to run the project and I still get the same "status -1" error on log and "127 (0x7F)" error if i choose not to build.
If I add the extension ".exe" at the end of the path and try to run in terminal, i have this:
bash: /home/pelu/Escritorio/dungeon/bin/Debug/dungeon.exe: it cant execute binary file: Incorrect executable format
I'm sorry if I am not expressing myself very clearly, I still don't understand properly the features of C::B and english it's not my native language, appreciate the comunication struggle.
I've been looking for a place where logs are fully displayed, not only in the bottom tab, but I didnt came to any point. If this place exists, please correct me and i will repost the full log.
-------------- Clean: Debug in dungeon (compiler: GNU GCC Compiler)---------------
Cleaned "dungeon - Debug"
-------------- Build: Debug in dungeon (compiler: GNU GCC Compiler)---------------
g++-8 -Wall -fexceptions -g -Iinclude -I/home/pelu/Escritorio/dungeon -c /home/pelu/Escritorio/dungeon/main.cpp -o obj/Debug/main.o
execvp(./home/pelu/Fundamentos, de, , g++-8 -Wall -fexceptions -g -Iinclude -I/home/pelu/Escritorio/dungeon -c /home/pelu/Escritorio/dungeon/main.cpp -o obj/Debug/main.o) failed with error 2!
Process terminated with status -1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
It displays this
g++-8 (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It's that OK? I notice its Ubuntu version, while my OS is Linux Mint 19.3 Cinnamon.
Went to the path the .cbp file is, tryed to execute ./home/pelu/Fundamentos, de, , g++-8 -Wall -fexceptions -g -Iinclude -I/home/pelu/Escritorio/dungeon -c /home/pelu/Escritorio/dungeon/main.cpp -o obj/Debug/main.o
both ways, with and without the starting "." char. It showed the same message the both ways bash: ./home/pelu/Fundamentos,: File or folder doesn't exist
Again i don't know were this path comes from or why it is here.
Edit: if i have to change my C::B version it's not a problem.
FYI: This is the command that was to be ran.
Edit: The CD command is a guess by me.
cd /home/pelu/Fundamentos
g++-8 -Wall -fexceptions -g -Iinclude -I/home/pelu/Escritorio/dungeon -c /home/pelu/Escritorio/dungeon/main.cpp -o obj/Debug/main.o
The Fundamentos folder is named "Fundamentos\ de\ Programación/"
I went there, did that and i got this as response:
/home/pelu/Escritorio/dungeon/main.cpp:2:10: fatal error: Player.h: File or folder doesn't exist
#include "Player.h"
^~~~~~~~~~
That "Player.h" is a class of my project.