Author Topic: Configuring mingw project in v22.0.2.1  (Read 1053 times)

bremenpl

  • Community Member
  • Posts: 85
  • Hero Points: 0
  • Electrical Engineer
Re: Configuring mingw project in v22.0.2.1
« Reply #15 on: May 23, 2018, 07:29:04 pm »
Same thing:

Code: [Select]
k:\test>make -f test.mak
C:/MinGW/bin/g++.exe -c   -O0 -g3 -ggdb -p -pg -o "Debug/test.o"  test.c
C:/MinGW/bin/g++.exe  -O0 -g3 -ggdb -p -pg -o "Debug/test.exe" Debug/test.o
g++.exe: fatal error: no input files
compilation terminated.
make: *** [Debug/test.exe] Error 1

k:\test>

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2068
  • Hero Points: 100
Re: Configuring mingw project in v22.0.2.1
« Reply #16 on: May 23, 2018, 07:47:04 pm »
Is Debug/test.o there?

bremenpl

  • Community Member
  • Posts: 85
  • Hero Points: 0
  • Electrical Engineer
Re: Configuring mingw project in v22.0.2.1
« Reply #17 on: May 23, 2018, 07:49:17 pm »
Yes. Running the commands manually works, using the makefile does not.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2068
  • Hero Points: 100
Re: Configuring mingw project in v22.0.2.1
« Reply #18 on: May 23, 2018, 08:13:08 pm »
I misunderstood, I thought the linker command didn't work at all.

bremenpl

  • Community Member
  • Posts: 85
  • Hero Points: 0
  • Electrical Engineer
Re: Configuring mingw project in v22.0.2.1
« Reply #19 on: May 23, 2018, 08:30:22 pm »
Yeah, the linker command works, the compile one does not.

bremenpl

  • Community Member
  • Posts: 85
  • Hero Points: 0
  • Electrical Engineer
Re: Configuring mingw project in v22.0.2.1
« Reply #20 on: May 24, 2018, 05:23:43 am »
In general I have noticed that in eclipse I do not need any variables in path at all. Everything is configured as local path (attachment).
For instance in the MINGW_HOME there are all necessary pathes for compiling and MSYS_HOME provides the minimum posix enviroment.
In Slickedit, is there any way to provide make, rm, ls etc. programs path?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2068
  • Hero Points: 100
Re: Configuring mingw project in v22.0.2.1
« Reply #21 on: May 24, 2018, 10:29:14 am »
No, for make you can adjust it by changing it in the build command.  Running rm or ls from the the editor actually run an internal command.

bremenpl

  • Community Member
  • Posts: 85
  • Hero Points: 0
  • Electrical Engineer
Re: Configuring mingw project in v22.0.2.1
« Reply #22 on: May 24, 2018, 10:42:46 am »
I see.
So, do you have any other ideas what could be wrong in here? I do appreciate your help so far though.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2068
  • Hero Points: 100
Re: Configuring mingw project in v22.0.2.1
« Reply #23 on: May 24, 2018, 10:49:06 am »
I'm kind of at a loss myself.  I can't reproduce it.

Just for the heck of it, I'm curious what happens if you put MinGW's bin directory in your path.  You'd have to add it, then launch a console, and then launch SlickEdit from there (I guess running SlickEdit from an icon would work too).  You can be sure it worked by running the command "set" on the SlickEdit command line.

I'll ask some colleagues later today.  It's only 645am here on the East coast of the US, so it will be an hour or so before I expect to see anybody else online.

bremenpl

  • Community Member
  • Posts: 85
  • Hero Points: 0
  • Electrical Engineer
Re: Configuring mingw project in v22.0.2.1
« Reply #24 on: May 24, 2018, 11:16:37 am »
I had to add mingw to my path already. Otherwise it did not see all of the *.dll files within mingw directory and crashed. So yes, mingw bin directory is in path already. Thats why I was asking about those pathes. Thanks.
« Last Edit: May 24, 2018, 11:23:46 am by bremenpl »

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2357
  • Hero Points: 316
Re: Configuring mingw project in v22.0.2.1
« Reply #25 on: May 24, 2018, 02:23:15 pm »
Just to make sure you are getting the right "make", try:
Code: [Select]
C:/MinGW/bin/make -f test.mak
If you are picking up a Cygwin or other make tool, it may not understand the C:/MingW style path, either because it expects /cygdrive/... or that it doesn't like forward slashes.

bremenpl

  • Community Member
  • Posts: 85
  • Hero Points: 0
  • Electrical Engineer
Re: Configuring mingw project in v22.0.2.1
« Reply #26 on: May 24, 2018, 03:07:54 pm »
Its the right make. I have now even entered it manually in the makefile:
Code: [Select]
MAKE=C:/MinGW/bin/mingw32-make.exe
The thing is I can execute it from command line and it works. It just doesnt when run in the slickedit script.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2357
  • Hero Points: 316
Re: Configuring mingw project in v22.0.2.1
« Reply #27 on: May 24, 2018, 04:17:37 pm »
What's entered in the makefile is only used if the makefile has to call 'make' recursively, for example to compile a dependent project.

You are running just 'make', but what you just sent was mingw32-make.exe, so are you certain that when you run 'make' that it is running C:/mingw/bin/make ?

What happens if you run C:\MingW/bin/mingw32-make.exe -f test.mak ?

On my Windows machine, I had to insure that /c/mingw/msys/1.0.bin/ was in my PATH in order for make to work correctly with the mingw gcc compiler.  The easiest way to do that is to launch the msys shell window rather than the more bare-bones mingw32 terminal.
« Last Edit: May 24, 2018, 04:21:59 pm by Dennis »

bremenpl

  • Community Member
  • Posts: 85
  • Hero Points: 0
  • Electrical Engineer
Re: Configuring mingw project in v22.0.2.1
« Reply #28 on: May 24, 2018, 06:34:35 pm »
Yes, I have also included the msys path. When I manually run make:

Code: [Select]
k:\test>C:\MingW/bin/mingw32-make.exe -f test.mak
C:/MinGW/bin/gcc.exe -O0 -g3 -ggdb -p -pg -o "Debug/test.exe" Debug/test.o
gcc.exe: fatal error: no input files
compilation terminated.
test.mak:61: recipe for target 'Debug/test.exe' failed
mingw32-make.exe: *** [Debug/test.exe] Error 1

k:\test>

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2357
  • Hero Points: 316
Re: Configuring mingw project in v22.0.2.1
« Reply #29 on: May 24, 2018, 09:34:43 pm »
Really looks like something is amiss about your mingw installation and mingw make.  What do you get if you run C:\mingw32\bin\mingw32-make.exe --version ?

Why don't you go ahead and write your own Makefile for building your program and see if you can get that off the ground.  Then you can return to debugging whatever is going wrong with the makefile that we are generating for you.