User forums > General (but related to Code::Blocks)

XBoard in Code::Blocks

<< < (3/4) > >>

Miguel Gimenez:
The error while cleaning is due to the default configuration of the Make commands. You can change Project -> Build options -> Make commands -> Clean project/target and remove the $target part

The no compilation issue may be due to a previous successful compilation, or po having no Makefile, or some missing option when calling ./configure. You should ask to XBoard developers.

ordak:

--- Quote from: Miguel Gimenez on November 08, 2019, 06:22:39 pm ---The error while cleaning is due to the default configuration of the Make commands. You can change Project -> Build options -> Make commands -> Clean project/target and remove the $target part

--- End quote ---

This worked.


--- Quote ---The no compilation issue may be due to a previous successful compilation, or po having no Makefile, or some missing option when calling ./configure. You should ask to XBoard developers.

--- End quote ---

I asked XBoard coders , according to this post , I have to call "sudo make install" . Can I do that inside Code::Blocks or I have to do it outside Code::Blocks ?

Miguel Gimenez:
The "sudo make install" command must be executed (or not) once the "make all" command completes successfully.
You can call it as a post build step (in Build Options), but will need to specify the password, this should work (I can't test right now):

--- Code: ---echo your_password | sudo -S make -f Makefile install
--- End code ---

or execute


--- Code: ---sudo -S make -f Makefile install
--- End code ---

from command line while in folder /home/mehdi/Documents/Code_Blocks_Projects/xboard_fork

ordak:

--- Quote from: Miguel Gimenez on November 10, 2019, 01:35:15 pm ---The "sudo make install" command must be executed (or not) once the "make all" command completes successfully.
You can call it as a post build step (in Build Options), but will need to specify the password, this should work (I can't test right now):

--- Code: ---echo your_password | sudo -S make -f Makefile install
--- End code ---


--- End quote ---

[...]

I tried it but I did not get opportunity to enter password :


--- Code: ---
-------------- Build: all in xboard_fork (compiler: LLVM Clang Compiler 9 GTK Library)---------------

Checking if target is up-to-date: make -q -f /home/mehdi/Documents/Code_Blocks_Projects/xboard_fork/Makefile all
Running command: make -f /home/mehdi/Documents/Code_Blocks_Projects/xboard_fork/Makefile all
make  all-recursive
make[1]: Entering directory '/home/mehdi/Documents/Code_Blocks_Projects/xboard_fork'
Making all in po
make[2]: Entering directory '/home/mehdi/Documents/Code_Blocks_Projects/xboard_fork/po'
make[2]: Leaving directory '/home/mehdi/Documents/Code_Blocks_Projects/xboard_fork/po'
make[2]: Entering directory '/home/mehdi/Documents/Code_Blocks_Projects/xboard_fork'
make[2]: Leaving directory '/home/mehdi/Documents/Code_Blocks_Projects/xboard_fork'
make[1]: Leaving directory '/home/mehdi/Documents/Code_Blocks_Projects/xboard_fork'
Running target post-build steps
echo your_password | sudo -S make -f Makefile install
[sudo] password for mehdi:
Sorry, try again.
[sudo] password for mehdi:
sudo: 1 incorrect password attempt
Process terminated with status 1 (0 minute(s), 2 second(s))
0 error(s), 0 warning(s) (0 minute(s), 2 second(s))
 


--- End code ---

oBFusCATed:
There are graphical alternatives to sudo. Also configure supports --prefix option which could be used to redirect the installation to a user writable folder, so sudo won't be required for successful install.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version