I am using OMNet++ 6 pre11 with INET 4.3.2 and it is working fine in IDE environment.
But, when I am trying to run INET showcase examples ( wireless/sensornetwork/omnetpp.ini) from the ubuntu terminal, I am getting the following error:
Command
opp_run -m -u Cmdenv -n ../../../src:../..:../../../tutorials:../../../showcases -l ../../../src/INET omnetpp.ini -c BMac
Error
<!> Error: More than one package.ned file for package 'inet.showcases': '/home/fa/Downloads/inet-4.3.2-src/inet4.3/showcases/package.ned' and '/home/fa/Downloads/inet-4.3.2-src/inet4.3/showcases/package.ned'
Would anyone please suggest the solution? Thank you.
This is a known issue in 6.0 preview 11 and 12, caused by the fact that the same directory is added multiple times in the NED path. My guess is that ../.. and ../../../showcases is the same directory. I'm not sure where that ../.. is coming from, but try to get rid of it.
As a side note, this issue was fixed in 6.0pre13 version.
Related
I am trying to build a plugin that is destined to work specifically on Windows systems.
So as a starting point I wanted to rebuild the agent from sources before extending it with my code but while following the guide at https://www.zabbix.com/documentation...zabbix-agent-2, I am having an error.
The error that is popping up is:
c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw>mingw32-make PCRE=c:\dev\pcre OPENSSL=c:\dev\openssl
windres.exe c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\build\win32\project\resource.rc --input-format=rc -O coff --target=pe-x86-64 -D _WINDOWS -D ZABBIX_AGENT2 -o c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\src\go\cmd\zabbix_agent2\resource.syso
windres.exe: c:\\Users\\<my-username>\\Documents\\zabbix-6.2.2\\build\\mingw\\..\\..\\build\\win32\\project\\resource.rc:75: syntax error
mingw32-make: *** [Makefile:188: c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\src\go\cmd\zabbix_agent2\resource.syso] Error 1
This appears to be a syntax error in the resource.rc file but after googling a bit a have no idea on how to fix the file.
If anyone can provide advice or help of any kind that would be much appreciated cause I am kind of stuck right now and can not move forward in my work cause of this compilation issue.
Thanks upfront to everyone !
Link of the resources I used:
I did a git clone https://git.zabbix.com/scm/zbx/zabbix.git --branch 6.2.2 --depth 1 --single-branch zabbix-6.2.2 from this guide (https://www.zabbix.com/documentation...ilt_in_plugins)
Go: https://dl.google.com/go/go1.19.3.windows-amd64.msi
MniGW compiler: jztkft.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/sjlj/x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z
CMAKE: github.com/Kitware/CMake/releases/download/v3.23.5/cmake-3.23.5-windows-x86_64.msi
OpenSSL: netix.dl.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v10.0.0.zip
PCRE: altushost-swe.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.zip
I tried to switch to the zabbix 6.2 branch and editing the resource.rc file by removing everything from and below the line 75 that appears to be in error but I honestly don't really know what is wrong in the file or how to fix it at all.`
I'm getting the following message when i run protoc -version in my ubuntu terminal.
Unknown flag: -v
Earlier to this, I had got the following error when I ran protoc -version. I found a solution through google and ran "sudo ldconfig /usr/local/lib". After running that, I'm getting the Unknown flag message as mentioned above. Can anyone help me to resolve this? Thanks in advance.
protoc: error while loading shared libraries: libprotoc.so.9: cannot open shared object file: No such file or directory
Long flags require two dashes. Try:
protoc --version
(Common Unix convention says that if you write -abc (with one dash), it means the same thing as -a -b -c, which is why you get the error saying that there is no flag -v. Admittedly, there are a lot of Unix programs that don't follow this rule, but protoc does follow it.)
I'm trying to compile Bitcoin in Gitian for OSX. I've ran the following line.
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/gitian-osx-native.yml
That produces an error in the build log as follows.
cd libprunetrie && make
make[1]: Entering directory `/home/ubuntu/build/osx-cross-depends/build/toolchain4-10cc648683617cca8bcbeae507888099b41b530c/cctools2odcctools/odcctools-809/libprunetrie'
mkdir -p `dirname PruneTrie.o`
In file included from allocate.c:29:0:
../include/stuff/errors.h:39:1: error: unknown type name ‘uint32_t’
../include/stuff/errors.h:79:5: error: unknown type name ‘kern_return_t’
../include/stuff/errors.h:86:5: error: unknown type name ‘kern_return_t’
What do I need to do to make this work? If I'm not including enough information, please let me know what you need me to tell you. I didn't change the yml file from the official Bitcoin sources or anything else and I'm compiling on a Ubuntu 12.04.4 64Bit VirtualBox instance using LXC.
In case anyone else comes accross this issue, it has something to do with the way a Mac OSX system packages the tar file. You can't package it on a regular Linux system, it has to be Darwin Unix. (Mac) I came accross the link below which points to a ready made version of the stripped down Apple SDK file for Bitcoin. (MacOSX10.7.sdk.tar.gz)
https://github.com/deuscoin/deuscoin/blob/master/doc/building-deuscoin.md
Hopefully this helps someone else.
I want to isntall winexe on Ubuntu 13.1 32bit version.
I did exactly after this guide: Winexe - aldeid
If I execute the command "make basics bin/winexe" there occurs the following error:
Compiling ../librpc/idl/atsvc.idl
/usr/include/stdc-predef.h:0: error: Syntax error near '3'
Failed to parse ../librpc/idl/atsvc.idl at ./../pidl/pidl line 608.
make: *** [idl] Error 1
I have absolutely no idea how to fix this.
I would be even satisfied with a solution suggestion to this problem.
Thank you.
make "CPP=gcc -E -ffreestanding" basics bin/winexe works around this error.
I found "another" way to isntall winexe.
ubuntu forum
The Donwload-Links to the static version (just unzip and run winexe) are working at the moment (on some other pages they didn't).
I still don't know why the error above occurs, if anybody knows it, please tell me anyway. I am still interessted.
VERY IMPORTANT EDIT: After restart winexe gives put an Internal Error signal 11
So I still need a solution for winexe. Either to isntall the verision from git or to fix this error.
EDIT nummber 2: OK, why am I sking questions if I answer them by myself?
The installation form the quide mentiond in my question qorks fine on Ubuntu 12 LTS and winexe-static-version is also ok if you don't make typing errors as I did.
I just managed to get "dot" installed correctly, per a warning in phpDocumentor. Now when I try to build my docs, however, I am getting the exception:
[phpDocumentor\GraphViz\Exception]
An error occurred while creating the graph; GraphViz returned: Format: "svg" not recognized. Use one of:
Does anyone know how to get past this? The command I am running is:
php phpdoc.php -c mypath/phpdoc.dist.xml -p
I had this same issue, running sudo dot -c fixed it for me.