Cannot build gtk4-rs based cargo, build fails with linking error "LINK : fatal error LNK1181: cannot open input file 'gobject-2.0.lib'" - rust

I am trying to build a hello world project to see if gtk4-rs is working correctly, which always fails at creating the binaries. The rest of the build seems to fine (tried to run cargo clean and cargo check a couple of times, those do not produce any errors). My Cargo.toml just uses the version specified in the crate:
[dependencies]
gtk4 = "0.4.8"
My error is exactly the same as the one in this question, but running the cargo build in an admin powershell also fails with the same error.
I am on Win 11 and I've followed the installation instructions linked to by GTK themselves, https://github.com/wingtk/gvsbuild.
The linking error seems to indicate that gobject-2.0.lib is missing:
LINK : fatal error LNK1181: cannot open input file 'gobject-2.0.lib'
(Full error message (with redacted user directory) on Pastebin)
That file is found at c:\gtk-build\gtk\x64\release\lib, which is the default location for an installation produced by gvsbuild, as far as I can tell (I haven't messed with the files at all).
Both c:\gtk-build\gtk\x64\release\lib and c:\gtk-build\gtk\x64\release\bin are part of the path, restarting the machine did not seem to fix anything in this regard either.
I have not found anything close to helpful on the internet, so any pointers to what could be wrong here would be great.

Related

How to resolve error in debugging a program in totalview?

I installed TotalView on Ubuntu. For the begining I just tried to debug a very simple Hello Word program in but I got the following error:
"Fatal Error: Can't set up library cache directory -- cannot debug this target. Do you want to run the TotalView Diagnostic Tool?"
I don't know what is the library cache directory. Any idea about the library cache directory in ubuntu can be helpful.

Cmake can't find files even with path provided when configuring

I am trying to build OpenSim from source code using the CMake GUI as per these instructions (Linux) : https://github.com/simbody/simbody
I have found several problems in step 3 of this process, at first the program didn't seem to find Simbody even though I have that installed and have the path to the code specified like so:
After I tried to configure the code a few times a new error popped up:
CMake Error at CMakeLists.txt:575 (find_package):
Could not find a package configuration file provided by "BTK" with any of
the following names:
BTKConfig.cmake
btk-config.cmake
Add the installation prefix of "BTK" to CMAKE_PREFIX_PATH or set "BTK_DIR"
to a directory containing one of the above files. If "BTK" provides a
separate development package or SDK, be sure it has been installed.
I tried to solve this by specifying the path to the required files (I do have them) in the 'Value' field, but as soon as I hit 'configure' the path is gone and it reverts back to the 'BTK_DIR-NOTFOUND' you see in the picture.
I have closely followed all the instructions listed through the Opensim website but still nothing is working as it should, any help would be immensely appreciated

Can't build MonoDevelop on an embedded Linux

Good day!
I'm trying to build MonoDevelop on/for an embedded/minimal Linux, and can't build msbuild from source which is why I'm using the binary from this DEB package.
This basically works as it seems, but now make ends with an error:
configure output
make output
Can someone please help me to get MonoDevelop built?
I see two errors in your build log:
/update/download/monodevelop-7.8/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git.csproj(146,5):
error MSB3073: The command "bash build_libgit2.sh" exited with code
-1.
"/update/download/monodevelop-7.8/Main.sln" (default target) (1) ->
"/update/download/monodevelop-7.8/external/fsharpbinding/MonoDevelop.FSharpBinding/MonoDevelop.FSharp.fsproj"
(default target) (81) ->
/update/download/monodevelop-7.8/external/fsharpbinding/MonoDevelop.FSharpBinding/MonoDevelop.FSharp.fsproj(33,3):
error MSB4019: The imported project
"/update/swroot/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/FSharp/Microsoft.FSharp.Targets"
was not found. Confirm that the path in the declaration is
correct, and that the file exists on disk.
For the latter, did you install F#? (Just apt-get install fsharp should suffice.) And for the second, try running bash build_libgit2.sh separately to see the error message.

Coverity Set Up (Cygwin Warning)?

I am currently trying to run Coverity Prevent and I believe I have everything set up appropriately on my windows 7 build machine. I have run it with AnthillPro and when my code finishes and gets to Coverity it says that everything was built fine and the only error I get is:
Warning: Cygwin pathname conversion ignored; no applicable
'bash'/'mount', 'cygpath', or registry keys found.
I have even tried to install Cygwin to see if this could rectify the problem and I still end up with the same error.
I am currently using AnthillPro 3.7 and Coverity 5.5.3. The build log says that I have warnings but no errors and that it hasn't emitted anything. I have tried to run a script directly from the machine (not server) itself and I have the same error as I do using the Coverity Prevent in Anthill
This is the only information I get at the bottom of the build log.
Run from AnthillPro:
Build time (cov-build overall): 00:00:17.753597
[WARNING] No files were emitted. This may be due to a problem with your configuration
or because no files were actually compiled by your build command.
Please make sure you have configured the compilers actually used in the compilation.
For more details, please look at:
d:\Coverity\Intermediate\AllToolsProjects.sln_pc_vs2010\build-log.txt
Run from Script:
The cov-build FAILED.
This may be because less than 90 percent of units were successfully compiled
Check for errors here:
D:\\Coverity\Scripts\build_AllToolsProjects.sln_pc_vs2010.bat
D:\\Coverity\Intermediate\AllToolsProjects.sln_pc_vs2010\build-log.txt
D:\\Coverity\Configuration\pc_vs2010
It sounds like you haven't configured the compiler - that's when you tell your Coverity Analysis installation which compiler you are using. devenv is not a compiler, cl.exe is.
Run the following command:
coverity-analysis-dir/bin/cov-configure --msvc
This will say that you are using the cl.exe compiler and it's of type msvc no matter where it's installed.
Then rerun your Coverity build and see if it captures more of your compilations.

BeagleBoard Narcissus ToolChain with OpenCv issue

I'm using Eclipse with Narcissus Cross-Compiler Toolchain to compile OpenCV project on my BeagleBoard-XM.
I followed those links to do this:
http://www.lvr.com/eclipse1.htm
http://groups.google.com/group/beagleboard/browse_thread/thread/1ec0c6585a2141c8?pli=1
When i try to compile the project i get an Error:
Description Resource Path Location Type
make: *** [hello_world.o] Error 1 hello_world C/C++ Problem
I think the problem is with the Toolchain itself, Any Ideas?
The CDT framework runs GNU Make under the hood to do the actual build (unless you are using the internal builder, which isn't the default). The error you see is because one of the makefile targets, of the managed project's auto-generated makefile, has failed to run successfully.
The output of the Problem view is insufficient information to answer your question. Only the Console view output for the build contains sufficient information to diagnose the problem. Please post the entire output of the CDT Build Console for the Console view.
At this point the only guess we can make is that something in the build process exited with exit code 1.

Resources