[Geany-Users] Geany Source compilation

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Geany-Users] Geany Source compilation

manohar gaddipati
Hi,

This is Manohar. I have a windows machine.
My objective here is to be able to use geany for fortran programming. This is what I did so far.

1)    I have downloaded CYGWIN (installed fortran and some recommended libraries) and geany.
2)   Created a sample test.f90 program. I can see different color fonts in my program
3)   For source compilation I went to Build (set Build commands) and tried this which did not work
     Under Compile (C:\cygwin64\bin  -c  "%f")
     Under Build (C:\cygwin64\bin -o  "%f")
     Under Execute (C:\cygwin64\bin\gfortran "%e")

I tried using online manual but I am missing something.

Could you suggest me on this?

Regards,
Manohar

_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Geany Source compilation

Matthew Brush-2
On 2016-10-31 09:12 AM, manohar gaddipati wrote:

> Hi,
>
> This is Manohar. I have a windows machine.
> My objective here is to be able to use geany for fortran programming. This
> is what I did so far.
>
> 1)    I have downloaded CYGWIN (installed fortran and some recommended
> libraries) and geany.
> 2)   Created a sample test.f90 program. I can see different color fonts in
> my program
> 3)   For source compilation I went to Build (set Build commands) and tried
> this which did not work
>      Under Compile (C:\cygwin64\bin  -c  "%f")
>      Under Build (C:\cygwin64\bin -o  "%f")
>      Under Execute (C:\cygwin64\bin\gfortran "%e")
>
> I tried using online manual but I am missing something.
>
> Could you suggest me on this?
>

Hi,

The build and compile commands should probably refer to
`C:\cygwin64\bin\gfortran` instead of just the bin directory and the
execute command should probably just be `"%e"` (unless you need to use
`gfortran` to execute programs, I don't think you do though).

   Compile: C:\cygwin64\bin\gfortran -c "%f"
   Build: C:\cygwin64\bin\gfortran -o "%f"
   Execute: "%e"

Regards,
Matthew Brush

_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Geany Source compilation

manohar gaddipati
C:\cygwin64\bin\gfortran -c "geany.f95" (in directory: C:\Users\mgaddipati\Desktop\Fortran\Hello)
C:/cygwin64/lib/gcc/x86_64-pc-cygwin/5.4.0/f951.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
Compilation failed.

I am getting this error when I do this

Thanks.
Manohar

On Mon, Oct 31, 2016 at 4:59 PM, Matthew Brush <[hidden email]> wrote:
On 2016-10-31 09:12 AM, manohar gaddipati wrote:
Hi,

This is Manohar. I have a windows machine.
My objective here is to be able to use geany for fortran programming. This
is what I did so far.

1)    I have downloaded CYGWIN (installed fortran and some recommended
libraries) and geany.
2)   Created a sample test.f90 program. I can see different color fonts in
my program
3)   For source compilation I went to Build (set Build commands) and tried
this which did not work
     Under Compile (C:\cygwin64\bin  -c  "%f")
     Under Build (C:\cygwin64\bin -o  "%f")
     Under Execute (C:\cygwin64\bin\gfortran "%e")

I tried using online manual but I am missing something.

Could you suggest me on this?


Hi,

The build and compile commands should probably refer to `C:\cygwin64\bin\gfortran` instead of just the bin directory and the execute command should probably just be `"%e"` (unless you need to use `gfortran` to execute programs, I don't think you do though).

  Compile: C:\cygwin64\bin\gfortran -c "%f"
  Build: C:\cygwin64\bin\gfortran -o "%f"
  Execute: "%e"

Regards,
Matthew Brush

_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Geany Source compilation

Lex Trotman
Does the command work on the command line?

On 1 November 2016 at 09:39, manohar gaddipati
<[hidden email]> wrote:

> C:\cygwin64\bin\gfortran -c "geany.f95" (in directory:
> C:\Users\mgaddipati\Desktop\Fortran\Hello)
> C:/cygwin64/lib/gcc/x86_64-pc-cygwin/5.4.0/f951.exe: error while loading
> shared libraries: ?: cannot open shared object file: No such file or
> directory
> Compilation failed.
>
> I am getting this error when I do this
>
> Thanks.
> Manohar
>
> On Mon, Oct 31, 2016 at 4:59 PM, Matthew Brush <[hidden email]> wrote:
>>
>> On 2016-10-31 09:12 AM, manohar gaddipati wrote:
>>>
>>> Hi,
>>>
>>> This is Manohar. I have a windows machine.
>>> My objective here is to be able to use geany for fortran programming.
>>> This
>>> is what I did so far.
>>>
>>> 1)    I have downloaded CYGWIN (installed fortran and some recommended
>>> libraries) and geany.
>>> 2)   Created a sample test.f90 program. I can see different color fonts
>>> in
>>> my program
>>> 3)   For source compilation I went to Build (set Build commands) and
>>> tried
>>> this which did not work
>>>      Under Compile (C:\cygwin64\bin  -c  "%f")
>>>      Under Build (C:\cygwin64\bin -o  "%f")
>>>      Under Execute (C:\cygwin64\bin\gfortran "%e")
>>>
>>> I tried using online manual but I am missing something.
>>>
>>> Could you suggest me on this?
>>>
>>
>> Hi,
>>
>> The build and compile commands should probably refer to
>> `C:\cygwin64\bin\gfortran` instead of just the bin directory and the execute
>> command should probably just be `"%e"` (unless you need to use `gfortran` to
>> execute programs, I don't think you do though).
>>
>>   Compile: C:\cygwin64\bin\gfortran -c "%f"
>>   Build: C:\cygwin64\bin\gfortran -o "%f"
>>   Execute: "%e"
>>
>> Regards,
>> Matthew Brush
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Geany Source compilation

Matthew Brush-2
In reply to this post by manohar gaddipati
On 2016-10-31 04:39 PM, manohar gaddipati wrote:
> C:\cygwin64\bin\gfortran -c "geany.f95" (in directory:
> C:\Users\mgaddipati\Desktop\Fortran\Hello)
> C:/cygwin64/lib/gcc/x86_64-pc-cygwin/5.4.0/f951.exe: error while loading
> shared libraries: ?: cannot open shared object file: No such file or
> directory
> Compilation failed.
>
> I am getting this error when I do this
>

Sounds like it's not looking in correct place for its libaries, does it
work if you run same command from Windows Command Prompt?

I expect you probably need to add whatever directories is holding
whatever libraries it wants into the PATH[0] environment variable. I've
never used Cygwin or GFortant, so not sure what else might be going on
(eg. why is the library called `?`)

Regards,
Matthew Brush

[0]:
http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Geany Source compilation

manohar gaddipati
In reply to this post by Lex Trotman
I have the same problem even with the command line.

Thanks,

Manohar

On Mon, Oct 31, 2016 at 5:46 PM, Lex Trotman <[hidden email]> wrote:
Does the command work on the command line?

On 1 November 2016 at 09:39, manohar gaddipati
<[hidden email]> wrote:
> C:\cygwin64\bin\gfortran -c "geany.f95" (in directory:
> C:\Users\mgaddipati\Desktop\Fortran\Hello)
> C:/cygwin64/lib/gcc/x86_64-pc-cygwin/5.4.0/f951.exe: error while loading
> shared libraries: ?: cannot open shared object file: No such file or
> directory
> Compilation failed.
>
> I am getting this error when I do this
>
> Thanks.
> Manohar
>
> On Mon, Oct 31, 2016 at 4:59 PM, Matthew Brush <[hidden email]> wrote:
>>
>> On 2016-10-31 09:12 AM, manohar gaddipati wrote:
>>>
>>> Hi,
>>>
>>> This is Manohar. I have a windows machine.
>>> My objective here is to be able to use geany for fortran programming.
>>> This
>>> is what I did so far.
>>>
>>> 1)    I have downloaded CYGWIN (installed fortran and some recommended
>>> libraries) and geany.
>>> 2)   Created a sample test.f90 program. I can see different color fonts
>>> in
>>> my program
>>> 3)   For source compilation I went to Build (set Build commands) and
>>> tried
>>> this which did not work
>>>      Under Compile (C:\cygwin64\bin  -c  "%f")
>>>      Under Build (C:\cygwin64\bin -o  "%f")
>>>      Under Execute (C:\cygwin64\bin\gfortran "%e")
>>>
>>> I tried using online manual but I am missing something.
>>>
>>> Could you suggest me on this?
>>>
>>
>> Hi,
>>
>> The build and compile commands should probably refer to
>> `C:\cygwin64\bin\gfortran` instead of just the bin directory and the execute
>> command should probably just be `"%e"` (unless you need to use `gfortran` to
>> execute programs, I don't think you do though).
>>
>>   Compile: C:\cygwin64\bin\gfortran -c "%f"
>>   Build: C:\cygwin64\bin\gfortran -o "%f"
>>   Execute: "%e"
>>
>> Regards,
>> Matthew Brush
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Geany Source compilation

manohar gaddipati
In reply to this post by Matthew Brush-2
By adding different paths to the environment variables I did compile and build the code successfully. 

The problem is with the execute command. The "%e" does not work. Trying different things now.

Manohar

On Mon, Oct 31, 2016 at 5:48 PM, Matthew Brush <[hidden email]> wrote:
On 2016-10-31 04:39 PM, manohar gaddipati wrote:
C:\cygwin64\bin\gfortran -c "geany.f95" (in directory:
C:\Users\mgaddipati\Desktop\Fortran\Hello)
C:/cygwin64/lib/gcc/x86_64-pc-cygwin/5.4.0/f951.exe: error while loading
shared libraries: ?: cannot open shared object file: No such file or
directory
Compilation failed.

I am getting this error when I do this


Sounds like it's not looking in correct place for its libaries, does it work if you run same command from Windows Command Prompt?

I expect you probably need to add whatever directories is holding whatever libraries it wants into the PATH[0] environment variable. I've never used Cygwin or GFortant, so not sure what else might be going on (eg. why is the library called `?`)

Regards,
Matthew Brush

[0]: http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path

_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Geany-Users] Geany Source compilation

manohar gaddipati
It is strange that I had to move all my dll files into my project folder for the compile and build to work.

Manohar

On Mon, Oct 31, 2016 at 7:39 PM, manohar gaddipati <[hidden email]> wrote:
By adding different paths to the environment variables I did compile and build the code successfully. 

The problem is with the execute command. The "%e" does not work. Trying different things now.

Manohar

On Mon, Oct 31, 2016 at 5:48 PM, Matthew Brush <[hidden email]> wrote:
On 2016-10-31 04:39 PM, manohar gaddipati wrote:
C:\cygwin64\bin\gfortran -c "geany.f95" (in directory:
C:\Users\mgaddipati\Desktop\Fortran\Hello)
C:/cygwin64/lib/gcc/x86_64-pc-cygwin/5.4.0/f951.exe: error while loading
shared libraries: ?: cannot open shared object file: No such file or
directory
Compilation failed.

I am getting this error when I do this


Sounds like it's not looking in correct place for its libaries, does it work if you run same command from Windows Command Prompt?

I expect you probably need to add whatever directories is holding whatever libraries it wants into the PATH[0] environment variable. I've never used Cygwin or GFortant, so not sure what else might be going on (eg. why is the library called `?`)

Regards,
Matthew Brush

[0]: http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path

_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
https://lists.geany.org/cgi-bin/mailman/listinfo/users
Loading...