LNK1181: cannot open input file 'oraocci10.lib' - c++

I had this problem before which I fixed (in Debug mode).
But now when I tried compiling my application in Release mode, I get this error:
LNK1181: cannot open input file 'oraocci10.lib'
What can be causing this?
These are some my settings in the app:
Debug Mode:
Linker->General->Additional Library Directories:
$(WXWIN)\lib\vc_lib;E:\app\vasyl\product\11.1.0\db_1\OCI\lib\MSVC\vc71;$(WXDIR284)\lib\vc_lib;%(AdditionalLibraryDirectories)
Release Mode:
Linker->General->Additional Library Directories:
$(WXWIN)\lib\vc_lib;\\darkstar\D$\oracle\product\10.2.0\client_1\oci\lib\msvc\vc71;$(WXDIR284)\lib\vc_lib;%(AdditionalLibraryDirectories)
There is no drive named E: on my hdd btw.
UPDATE: Now that I check where I unarchived the oracle client I downloaded there is oraocci12.lib but I don't see the oraocci10.lib, see screen:
Maybe that is related to above error?

I solved this by downloading oraocci10.lib from here(it is contained inside a package):
http://www.oracle.com/technetwork/topics/winsoft-085727.html
Need to download correct package which is for version 10, SDK package (5th) - instantclient-sdk-win32-10.2.0.5.zip.
Unzip it and specify the path to the lib in Linker->General->Additional Library directories

Related

Failing to install gtkmm / gtk+

So i am new on the platform, i use c/c++ and i have interests in graph interfaces so i decided to use gtk+and gtkmm with visual studio.
First, i downloaded gtk for the gnome project. I followed all the steps and i got this after a manual run :
\\\ test23.cpp
#include <gtkmm.h>
int main(int argc, char* argv[])
{
Gtk::Main app(argc, argv);
Gtk::Window fenetre;
Gtk::Main::run(fenetre);
return 0;
}
$ g++ -std=c++ test23.cpp $(pkg-config gtkmm-3.0 --cflags --libs | sed 's/ -I/ -isystem /g')
Package gtkmm-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkmm-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-3.0' found
bash: g++: command not found
so i decided to install using vcpkg.
But I failed to install gtk+ and gtkmm after multiple tries.
Here what i've got :
C:\WINDOWS\system32>vcpkg install gtk
Computing installation plan...
The following packages will be built and installed:
gtk[core]:x86-windows
* harfbuzz[core,glib]:x86-windows
* libepoxy[core]:x86-windows
* pango[core]:x86-windows
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows...
Starting package 1/4: libepoxy:x86-windows
Building package libepoxy[core]:x86-windows...
Could not locate cached archive: C:\Users\Manolo97233\AppData\Local\vcpkg\archives\f7\f743ec00b235ca7fd37812284b7d2e09d89b368a.zip
-- Using cached C:/Windows/SysWOW64/vcpkg/downloads/anholt-libepoxy-1.5.4.tar.gz
-- Cleaning sources at C:/Windows/SysWOW64/vcpkg/buildtrees/libepoxy/src/1.5.4-337c486045.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Windows/SysWOW64/vcpkg/downloads/anholt-libepoxy-1.5.4.tar.gz
-- Applying patch libepoxy-1.5.4_Add_call_convention_to_mock_function.patch
-- Using source at C:/Windows/SysWOW64/vcpkg/buildtrees/libepoxy/src/1.5.4-337c486045.clean
-- Acquiring MSYS Packages...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: C:/Windows/SysWOW64/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc -c "pacman -S --noconfirm --needed pkg-config"
Working Directory: C:/Windows/SysWOW64/vcpkg/downloads/tools/msys2
Error code: 1
See logs for more information:
C:\Windows\SysWOW64\vcpkg\buildtrees\libepoxy\msys-pacman-x86-windows-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_acquire_msys.cmake:127 (vcpkg_execute_required_process)
scripts/cmake/vcpkg_configure_meson.cmake:106 (vcpkg_acquire_msys)
ports/libepoxy/portfile.cmake:16 (vcpkg_configure_meson)
scripts/ports.cmake:79 (include)
I believed i had a problem with msys2 so i tried to install it separately following an install kit unsuccessfully.
then i tried to run separately other packages involved with gtkmm like pango and i got this :
//vcpkg install pango
Computing installation plan...
error writing file: C:\Windows\SysWOW64\vcpkg\buildtrees\0.vcpkg_dep_info.cmake: The data is invalid.
Someone explained on a topic it could be an vcpkg accessibility problem for others packages. i modified the accessibility of vcpkg for other packages in my systWOW64'file parameters but it went unsuccessful.
I don't know if vcpkg is problem because i did not remove it and re install it.
I am looking for solutions/options, I am short on ideas, i literally need some help.
Thanks
Use JHbuild, its your friend when building GNOME applications from source !
Run jhbuild build gtkmm --nodeps, the built files will be installed in $HOME/jhbuild/build. To compile your application with it, you must export the environment variable PKG_CONFIG_PATH as follows:
export PKG_CONFIG_PATH="$HOME/jhbuild/build/lib/pkgconfig"
(in the terminal you are running the g++ command from)
And you have to install g++.
I do not know how you are using bash together with visual studio, but
if you have apt, you can install g++ and gtkmm with the following command :
apt install libgtkmm-3.0-dev libgstreamermm-1.0-dev g++
If you have already downloaded gtk, then the downloaded package must contain a .pc file. The directory this file is in when you installed the downloaded package you must add to the PKG_CONFIG_PATH.
Thanks Frederic for your answer it really help me.
I have got an other question. In my quest to add external packages to my C/C++ project, i read differents topics about how to convert static library (.a) into static library (.lib).
I downloaded packages and i wanted to add them manually using their pathway.
I added my packages as followed:
1 / Add the path of the headers in the compiler directories for the project:
-> Project / Properties menu
-> On the left tree, choose Configuration properties - C / C ++ - General
-> On the right table, the first line "Other Include directories": add the directory (s) of your library containing the headers
2 / Add the path of the .lib in the compiler directories for the project:
-> Project / Properties menu
-> On the left tree, choose Configuration Properties - Link Editor - General
-> On the right table, the line "Directory of additional libraries": add the directory (s) of your library containing the .libs
3 / Specify the libraries with which your project is linked:
-> Project / Properties menu
-> On the left tree, choose Configuration Properties - Link Editor - Enter
-> On the right table, the first line "Additional dependencies": add the .lib library (s) with which your project must be linked
But I looked for .lib files to add to my linker input instead, I found .a files and .dll files and I didn't know what to do. . a files and .lib files are almost identical. It seems like .a files are used under linux while .lib are used under windows.
I tried to add the .a files unsuccesfilly. I wondered if I could convert an .a file into a .lib file.
Thanks

included MySQLStore.h but HAVE_MYSQL not defined error (quickfix VS2015 c++)

i using quickfix c++
when i want store data to mysql db and using MySQLStoreFactory class(include with mysqlstore.h) it show top error
i also included mysql include path and libs but didn't change
so any Idea??
SOLVED!!
i downloaded new MYSQL server LIB
put library address additional library directory dependency for tradeclient project
change name of libmysql.lib to libMySQL.lib in mysql server folder
add libMySQ.lib name in linker ->input->additioanl dependency
put mysql include in C/C++ include directory
put "libmysql.dll" in release folder
build and run in cmd
and all Done !

V8 compiler errors

I recently managed to generate the visual studio project file for V8, but it doesn't compile
When I compile the All solution it spends maybe ~10 minutes compiling and then presents me with a bunch of error (at least in Release mode, 35 to be exact).
Example:
MSB6006 "cmd.exe" exited with code 1. js2c
C1083 Cannot open source file: '..\..\build\Release\obj\global_intermediate\experimental-libraries.cc': No such file or directory v8_nosnapshot
C1083 Cannot open source file: '..\..\build\Release\obj\global_intermediate\extras-libraries.cc': No such file or directory v8_nosnapshot
C1083 Cannot open source file: '..\..\build\Release\obj\global_intermediate\libraries.cc': No such file or directory v8_nosnapshot
C1083 Cannot open source file: '..\..\build\Release\obj\global_intermediate\experimental-extras-libraries.cc': No such file or directory v8_nosnapshot
Why isn't it compiling correctly?
The compiler can't find the directory v8_nosnapshot
What are your project settings? If you have access to this you might want to check that paths to your source and header files resolve correctly.
Else place the v8_nosnapshot directory and other source files needed for a successful compile where the compiler can find it
Right Click on the js2c project -> Properties, Under VC++ Directories -> Executable Directories, Check if the python and cygwin directories are set properly.
The python directory should exists under v8\third_party as shown below. If not, you can copy the python folder under depot_tools to v8\thrid_party\python_** and compile. You can also expand the macro and see what is the value for MSBuildProjectDirectory:
$(MSBuildProjectDirectory)\..\..\thrid_party\python_26

fatal error LNK1181: cannot open input file > 'opencv_core300d.lib'

I am trying to run a multi project file from another developer. I am using a Mac computer with a Windows 7 bootcamp partition. I'm running the code on Visual Studios 2013 with OpenCV 3.0 and Qt.5.4.2.
(Im not sure if this affects the issue, but I have all these programs basically all on separate external USB drives because there isnt enough space on my partition)
The issue I think is that the original developer used Visual Studios 2012 and OpenCV 2.4.9. In the files he gave to me, he included the necessary OpenCv files, but I installed OpenCV before realizing this and have tried to change the Config Properties to include the directory for the OpenCV 3.0. Shouldn't this work?
The exact error is :
LINK : fatal error LNK1181: cannot open input file
'opencv_core300d.lib'
I'll also include Config Properties:
VC++ Directories
Executable Directories: C:\opencv\build\x64\vc12\bin;$(VCInstallDir)\bin\x86_amd64;$(VCInstallDir)\bin;$(ExecutablePath)
Include Directories: $(OPENCV_DIR)\build\include;$(IncludePath)
Library Directories:
C:\opencv\build\x64\vc12\staticlib;C:\opencv\build\x64\vc12\lib;E:\eyegaze\eyegaze\EyeGazeDemo;$(LibraryPath)
C/C++
Additional Include Directories:
..\Libraries\OpenCV\include;
C:\opencv\build\include\opencv2;->Changed to C:\opencv\build\include
..\Libraries\Intraface\include;
$(QTDIR)\include;
$(OPENCV_DIR)\include;
$(QTDIR)\include\QtWidgets;
$(QTDIR)\include\QtGui;
$(QTDIR)\include\QtCore;
debug;
.;
$(QTDIR)\mkspecs\win32-msvc2012;
.\GeneratedFiles;
%(AdditionalIncludeDirectories)
Linker
General
Additional Library Directories:
$(OPENCV_DIR)\build\x64\vc12\staticlib;
$(OPENCV_DIR)\build\x64\vc12\lib;
$(QTDIR)\lib;
E:\eyegaze\eyegaze\Libraries\OpenCV\lib;->removed
E:\eyegaze\eyegaze\Libraries\Intraface\lib;
E:\eyegaze\eyegaze\EyeGazeDemo;
%(AdditionalLibraryDirectories)
Input
Additional Dependencies:
glu32.lib;
opengl32.lib;
gdi32.lib;
user32.lib;
$(QTDIR)\lib\qtmaind.lib;
$(QTDIR)\lib\Qt5Cored.lib;
$(QTDIR)\lib\Qt5Widgetsd.lib;
$(QTDIR)\lib\Qt5Guid.lib;
%(AdditionalDependencies);
opencv_core300d.lib;
opencv_imgproc300d.lib;
opencv_highgui300d.lib;
opencv_objdetect300d.lib;
opencv_ml300d.lib;
E:\eyegaze\eyegaze\Libraries\Intraface\lib\IntraFaceDLL-x86d.lib
Also I was wondering what is the difference between Configuration Properties->C/C++->Additional Include Directories and Configuration Properties->VC++ Directories->Include Directories?
Thank You in Advance!
Update
I changed a few things in the configuration properties (noted above), and now the error is:
1>opencv_core249.lib(opencv_core249.dll) : fatal error LNK1112: module
machine type 'X86' conflicts with target machine type 'x64'
My computer is x64 so I had changed all the settings for x64...
Im not sure If this made it worse, or if I fixed the problem?

Error while compiling in release mode

I'm building an IE extension (ATL) with VS2008 and somehow when I switch to release mode it gives me some linking error:
Error 2 fatal error C1083: Cannot open include file: 'ImplAddon.h': No such file or directory *************** 19 Engine
Error 3 fatal error LNK1181: cannot open input file '..\release addon\engine.lib' Addon Addon
I've tried to add to each of the projects in the "Additional include directories" in the project's properties the relevant path to 'ImplAddon.h' but nothing helps.
Any idea what to do??
Thanks a lot fellas :)
Right click each project and go to properties then top,left there is a drop-down to select the environmental. select all configurations there. then go to C++-> General -> Additional directories then add the paths of your header fails located at.