Path pointing to MAC settings

82 views
Skip to first unread message

Jairo Bustos Heredia

unread,
May 23, 2015, 1:32:05 PM5/23/15
to omn...@googlegroups.com
Hi all.

I did my thesis on a Mac computer and now I have downloaded my code and installed it on a Windows PC. When I build the project, I can see this error:

19:24:14 **** Build of configuration gcc-debug for project s_jbusto ****
make MODE=debug CONFIGNAME=gcc-debug all 
Cannot run program "make": Launching failed

Error: Program "make" not found in PATH
PATH=[/opt/local/libexec/ccache:/opt/local/bin:/Users/student/omnetpp-4.3.1/bin:/usr/bin:/bin:/usr/sbin:/sbin]

19:24:14 Build Finished (took 113ms)

I can see that this is pointing to the MAC settings but I don't know where I should change this. I have added "D:\omnetpp-4.3.1\bin" in the "Window -> Preferences -> C/C++ -> Build -> Environment" and I have also added it to "Project -> Properties -> C/C++ Build -> Environment". Here was the old path pointing to MAC but I have changed it. I still get the following error after cleaning and rebuilding:

19:28:53 **** Build of configuration gcc-debug for project s_jbusto ****
make MODE=debug CONFIGNAME=gcc-debug all 
Cannot run program "make": Launching failed

Error: Program "make" not found in PATH
PATH=[D:\omnetpp-4.3.1\bin]

19:28:53 Build Finished (took 216ms)

If I click on "Run" after building the project, I get the following error:

Starting...

$ cd D:/omnetpp-4.3.1/samples/s_jbusto/examples/MyThesis/Flooding
$ d:/omnetpp-4.3.1/bin/opp_run.exe -r 0 -n ../..;../../../src -l ../../../src/inet omnetpp.ini

<!> Warning: opp_run: Cannot check library ../../../src/inet: No se puede encontrar el módulo especificado


<!> Error during startup: Cannot load library '../../../src//libinet.dll': La operación se completó correctamente.
OMNeT++ Discrete Event Simulation  (C) 1992-2013 Andras Varga, OpenSim Ltd.
Version: 4.3.1, build: 130913-19cda8a, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer

End.

Simulation terminated with exit code: 1
Working directory: D:/omnetpp-4.3.1/samples/s_jbusto/examples/MyThesis/Flooding
Command line: d:/omnetpp-4.3.1/bin/opp_run.exe -r 0 -n ../..;../../../src -l ../../../src/inet omnetpp.ini

Environment variables:
OMNETPP_ROOT=d:/omnetpp-4.3.1
PATH=;D:/omnetpp-4.3.1/samples/s_jbusto/src;d:\omnetpp-4.3.1\bin;d:\omnetpp-4.3.1\msys\bin;d:\omnetpp-4.3.1\mingw\bin;d:/omnetpp-4.3.1/ide/jre/bin/client;d:/omnetpp-4.3.1/ide/jre/bin;d:/omnetpp-4.3.1/ide/jre/lib/i386;.;D:\omnetpp-4.3.1\msys\local\bin;d:\omnetpp-4.3.1\mingw\bin;D:\omnetpp-4.3.1\msys\bin;d:\omnetpp-4.3.1\bin;c:\windows\system32;c:\windows;c:\windows\System32\Wbem;c:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\MiKTeX 2.9\miktex\bin\;c:\Program Files\Skype\Phone\;c:\Omnet\omnetpp-4.6\bin;d:\omnetpp-4.3.1;
OMNETPP_IMAGE_PATH=d:\omnetpp-4.3.1\images

Can anybody please help me and tell me what I should do?

Thank you very much!
Jairo

Alfonso Ariza Quintana

unread,
May 25, 2015, 6:35:36 AM5/25/15
to omn...@googlegroups.com

The paths are incorrect, if you start omnet from the Shell that starts mingwenv the environment variables will be set correctly

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jairo Bustos Heredia

unread,
May 25, 2015, 6:36:59 AM5/25/15
to omn...@googlegroups.com

I start omnet with mingwenv...

You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/xdRckK91F74/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.

Alfonso Ariza Quintana

unread,
May 25, 2015, 6:40:36 AM5/25/15
to omn...@googlegroups.com

Ok, check if you have installed the inet framework, and your project reference correctly the project, your project can’t find were inet is

Michael Kirsche

unread,
May 26, 2015, 3:59:40 AM5/26/15
to omn...@googlegroups.com, aari...@hotmail.com
Regarding the make and PATH problems, make a screen shot of the Environment variable dialog from your project settings (the one that you've adjusted from the old MAC settings).

henning....@uni-rostock.de

unread,
Dec 12, 2018, 1:31:50 AM12/12/18
to OMNeT++ Users

Hey there,

 

I know its been a while, but I had a similar issue recently and I guess I found the solution. Special thanks to Michael, as he indicated the right thing to do: having a look to the build path.


The solution is as simple as: Creating a new project and copy the build path from the new project into the old one (see the screenshots).


I did this using Omnet 5.2.1 and Inet 3.6.3 but I guess it a more general solution to a more general issue.

 

Cheers

Henning

 

old.png

new.png

Reply all
Reply to author
Forward
0 new messages