cannot find -linet in omnet 4.6 - omnet++

I want to run a simulation in Omnet 4.6 which uses inet.
When compiling, following error occurs.
Creating executable: ../out/debug/src/EnergyCellFMU_TwoHouseholds.exe
D:\omnetpp-4.6\tools\win32\mingw32\bin/ld.exe: cannot find -linet
collect2.exe: error: ld returned 1 exit status
Makefile:154: recipe for target '../out/debug/src/EnergyCellFMU_TwoHouseholds.exe' failed
make[1]: *** [../out/debug/src/EnergyCellFMU_TwoHouseholds.exe] Error 1
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/d/Simulation_energy-cell-concept_omnet4.5/energy-cell-concept-simulation/OMNet/src'
make: *** [all] Error 2
Makefile:2: recipe for target 'all' failed
Does anyone know where the problem could be?
I set inet in the project references.

Related

FLINT/C installation on Arch

I'm trying to install FLINT/C lib on Arch for learning Modern Cryptography in C. All my dependencies are fulfilled per se and the only thing left to do is run make && make install and ld is generating errors :
make[1]: Entering directory '/home/venine/Downloads/flint-2.4.5'
make[2]: Entering directory '/home/venine/Downloads/flint-2.4.5/ulong_extras'
CC ../build/ulong_extras/../ulong_extras.lo
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [../Makefile.subdirs:55:
../build/ulong_extras/../ulong_extras.lo] Error 1
make[2]: Leaving directory '/home/venine/Downloads/flint- 2.4.5/ulong_extras'
make[1]: *** [Makefile:135: libflint.so] Error 2
make[1]: Leaving directory '/home/venine/Downloads/flint-2.4.5'
make: *** [Makefile:161: library] Error 2`
Can someone tell me what's going wrong and how do I create a proper make file
This appears to be FLINT 2 Issue#400. The bug also describes a change in the makefile.

how to fix hb-ft.h no such file or directory while installing pango using jhbuild?

i have all the dependencies and since i was not able to fix this error i installed freetype and harfbuzz from scratch still couldnt fix this fatal error but this file (hb-ft.h) is present under
/usr/include/harfbuzz/hb-ft.h and
jhbuild/checkout/harfbuzz/src/hb-ft.h
In file included from pango-ot-buffer.c:24:0:
pango-ot-private.h:29:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pango-ot-buffer.lo' failed
make[4]: *** [pango-ot-buffer.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
pangofc-shape.c:30:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pangofc-shape.lo' failed
make[4]: *** [pangofc-shape.lo] Error 1
pangoft2-render.c: In function ‘pango_ft2_font_render_glyph’:
pangoft2-render.c:224:3: warning: ‘pango_ft2_font_get_face’ is deprecated: Use 'pango_fc_font_lock_face' instead [-Wdeprecated-declarations]
face = pango_ft2_font_get_face (font);
^
In file included from pangoft2-private.h:26:0,
from pangoft2-render.c:37:
../pango/pangoft2.h:125:9: note: declared here
FT_Face pango_ft2_font_get_face (PangoFont *font);
^
In file included from pango-ot-info.c:34:0:
pango-ot-private.h:29:19: fatal error: hb-ft.h: No such file or directory
compilation terminated.
Makefile:1387: recipe for target 'pango-ot-info.lo' failed
make[4]: *** [pango-ot-info.lo] Error 1
make[4]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:1469: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:1212: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango/pango'
Makefile:579: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/onkar0027/jhbuild/checkout/pango'
Makefile:468: recipe for target 'all' failed
make: *** [all] Error 2
*** Error during phase build of pango: ########## Error running make -j 5 *** [7/7]
I have seen this error before while building pango in jhbuild.
Solution:
Open a new terminal and try -
jhbuild buildone -afc harfbuzz
After it's successfully build, rerun phase build of the pango module.
Hope it helps!

gcc-4.8 failed with error "where has __float128 gone?"

I am trying to build GCC on a core2-apple-darwin12.3.0 i386 machine. The configure seems to go through without problems but when I invoke 'make' it returns an error.
In file included from ./kinds.h:75:0,
from /gcc-4.8.0/libgfortran/libgfortran.h:232,
from /gcc-4.8.0/libgfortran/fmain.c:4:
/gcc-4.8.0/libgfortran/kinds-override.h:40:5: error: #error "Where has __float128 gone?"
# error "Where has __float128 gone?"
^
make[3]: *** [fmain.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-libgfortran] Error 2
make: *** [all] Error 2
So far I have been unable to track down a successful fix.

Error "../../nsprpub: No such file or directory." when building Firefox on OS X

I followed a set of simple instructions on Mozilla website.
When I entered make -f client.mk build
I got the following error:
/usr/bin/make tier_nspr
tier_nspr: config/nspr
/usr/bin/make export_tier_nspr
export_tier_nspr
make[5]: Nothing to be done for `config/nspr/Makefile'.
/usr/bin/make -C config/nspr export
/usr/bin/make -C ../../nsprpub export SHARED_LIBRARY= IMPORT_LIBRARY= SHARED_LIB_PDB= XP_DEFINE=-DlibVersionPoint='libVersionPoint$(LIBRARY_NAME)'
make: *** ../../nsprpub: No such file or directory. Stop.
make[5]: *** [export] Error 2
make[4]: *** [export_tier_nspr] Error 2
make[3]: *** [tier_nspr] Error 2
make[2]: *** [default] Error 2
make[1]: *** [realbuild] Error 2
make: *** [build] Error 2
It is the first time I tried to build Firefox. Any clue?
I encountered the same error while attempting to build the Android version of Firefox. Making a clean clone of the source tree and re-building solved the problem for me.

Im trying to install freeswitch on amazon linux Ami server.During make im getting the following error :

/usr/bin/ld: ../../libs/libedit/src/.libs/libedit.a(term.o): undefined reference
/usr/bin/ld: note: 'tgetnum' is defined in DSO /lib64/libtinfo.so.5 so try addin
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[5]: *** [fs_cli] Error 1
make[4]: *** [/usr/src/freeswitch/libs/esl/libesl.so] Error 2
make[3]: *** [mod_hash-all] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Ive tried to export 'ltinfo' library and ive also set LDFLAGS to -ltinfo but that too dint work.Please help me in fixing this.
I've got same error like you. You must install stable version.
git clone -b v1.2.stable git://git.freeswitch.org/freeswitch.git
and follow the instruction again.
http://wiki.freeswitch.org/wiki/Linux_Quick_Install_Guide
It will work.

Resources