Hi Martin,

Sorry for the slow response - I have been on vacation.

If you save a source file with a new name then you will need to update your 
CMakeLists.txt file - it doesn't know what you intend to do with the new file. 
I recommend reading through

https://www.dealii.org/developer/users/cmake_user.html

to better understand how to set up your own project with CMake.

If you have the virtual machine then it is easiest to just install either 
eclipse or QT creator inside the VM itself with the "apt-get install" command.

Best,
David Wells
________________________________
From: [email protected] <[email protected]> on behalf of Jiang Hu 
<[email protected]>
Sent: Wednesday, July 21, 2021 9:59 PM
To: deal.II User Group <[email protected]>
Subject: Re: [deal.II] Deal.II programming environment

Hi David,

Thanks for the detailed explanation.

I suppose below procedure should work:
1 Open Deal.II example, the cpp file,  with text editor
2 make changes to it, and save it as another cpp file
3 Use cMake to run this new cpp file at the command line
4 if no mistake, the new cpp file will run

am I correct?

Last, where should I install the IDE? I am using virtual box machine with 
deal.II package in a window system.
can I install Eclipse in Virtual box machine? it has Ubuntu system in the 
virtual box.

Thanks for your time

Martin

On Thursday, 22 July 2021 at 1:15:10 am UTC+10 Wells, David wrote:
Hi Martin,

No, that's a very good question - it's important to set up a good development 
environment. You CAN use plain text editors and run CMake from the command line 
(in fact, with many tools you will end up still running CMake from a window 
inside them) but its usually better to use something more sophisticated (like 
an IDE that can run a debugger).

If you look on the wiki we have instructions for both Eclipse and QT creator:

https://github.com/dealii/dealii/wiki

a lot of people use VS code - we don't have instructions for it, and I don't 
use it, but since we use CMake it shouldn't be that hard to point VS code at 
your build directory and have it extract some information. If anyone actually 
uses VS code I would appreciate if they could weigh in here!

Best,
David Wells
________________________________
From: [email protected] <[email protected]> on behalf of Jiang Hu 
<[email protected]>
Sent: Wednesday, July 21, 2021 1:22 AM
To: deal.II User Group <[email protected]>
Subject: [deal.II] Deal.II programming environment

Hello everyone,

Quite excited to find Deal.II and its potential.

I installed virtual machine with Deal.II, and run step 7 on terminal without 
any problem.

The question is if I want to compile bigger program with Deal.II , what is the 
typical working environment?

I assume we can not with terminal for such a purpose. I saw people using Nano 
to run Deal.II, but want to ask the standard tool for such process.

Emacs or Vscode?  Do I need to connect them to Deal.II?

I am very new, and this could be a quite silly question.

Thanks

Martin

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/164003ac-27fe-4b26-83d4-991149902416n%40googlegroups.com<https://groups.google.com/d/msgid/dealii/164003ac-27fe-4b26-83d4-991149902416n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/25414d10-d782-4476-826e-6af2c3432f8fn%40googlegroups.com<https://groups.google.com/d/msgid/dealii/25414d10-d782-4476-826e-6af2c3432f8fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/BN7PR03MB4356BFA3525A4ECF64AE8C09EDF09%40BN7PR03MB4356.namprd03.prod.outlook.com.

Reply via email to