I am trying to build hybris boot using some tried and true forked lineage os 17.1 source for nexus 10. Originally I got this error:
error: packages/services/Telecomm/Android.bp:28:1: "TelecomUnitTests" depends on undefined module "SettingsLibDefaults"
19:58:34 soong bootstrap failed with: exit status 1
Fine then, go to android bp and remove that line since I don't need telecomms anyway at this moment (there is no cellular nexus 10 and the sailfish os rootfs won't interact with any telephony frameworks anyway).
now I get a TON of errors that are similar:
error: prebuilts/sdk/current/extras/app-toolkit/Android.bp:276:1: "android-arch-persistence-db" depends on undefined module "framework-res"
error: external/setupdesign/Android.bp:5:1: "setupdesign" depends on undefined module "framework-res"
error: frameworks/opt/net/wifi/service/proto/Android.bp:15:1: "wifi_service_proto" depends on undefined module "ext"
error: frameworks/opt/net/wifi/service/proto/Android.bp:15:1: "wifi_service_proto" depends on undefined module "framework"
error: frameworks/opt/net/wifi/service/proto/Android.bp:15:1: "wifi_service_proto" depends on undefined module "updatable_media_stubs"
error: prebuilts/sdk/current/support/Android.bp:358:1: "android-support-heifwriter" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx/Android.bp:18:1: "androidx.activity_activity" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx/Android.bp:994:1: "androidx.lifecycle_lifecycle-livedata-nodeps" depends on undefined module "framework-res"
error: cts/tests/tests/uirendering/Android.bp:15:1: "CtsUiRenderingTestCases" depends on undefined module "ext"
error: cts/tests/tests/uirendering/Android.bp:15:1: "CtsUiRenderingTestCases" depends on undefined module "framework"
error: cts/tests/tests/uirendering/Android.bp:15:1: "CtsUiRenderingTestCases" depends on undefined module "updatable_media_stubs"
error: cts/tests/tests/uirendering/Android.bp:15:1: "CtsUiRenderingTestCases" depends on undefined module "android.test.runner.stubs"
error: cts/tests/tests/uirendering/Android.bp:15:1: "CtsUiRenderingTestCases" depends on undefined module "framework-res"
error: frameworks/opt/chips/Android.bp:15:1: "libchips" depends on undefined module "framework-res"
error: frameworks/av/media/libmediaplayer2/nuplayer2/Android.bp:1:1: "libstagefright_nuplayer2" depends on undefined module "libmediaplayer2-protos"
error: bootable/recovery/updater_sample/tests/Android.bp:15:1: "SystemUpdaterSampleTests" depends on undefined module "android.test.base.stubs"
error: bootable/recovery/updater_sample/tests/Android.bp:15:1: "SystemUpdaterSampleTests" depends on undefined module "android.test.runner.stubs"
error: bootable/recovery/updater_sample/tests/Android.bp:15:1: "SystemUpdaterSampleTests" depends on undefined module "framework-res"
error: packages/services/Car/EncryptionRunner/Android.bp:32:1: "EncryptionRunnerTest" depends on undefined module "ext"
error: packages/services/Car/EncryptionRunner/Android.bp:32:1: "EncryptionRunnerTest" depends on undefined module "framework"
error: packages/services/Car/EncryptionRunner/Android.bp:32:1: "EncryptionRunnerTest" depends on undefined module "updatable_media_stubs"
error: packages/services/Car/EncryptionRunner/Android.bp:32:1: "EncryptionRunnerTest" depends on undefined module "android.test.base"
error: packages/services/Car/EncryptionRunner/Android.bp:32:1: "EncryptionRunnerTest" depends on undefined module "android.test.runner"
error: packages/services/Car/EncryptionRunner/Android.bp:32:1: "EncryptionRunnerTest" depends on undefined module "framework-res"
error: prebuilts/misc/common/androidx-test/Android.bp:301:1: "androidx.test.uiautomator-nodeps" depends on undefined module "framework-res"
error: packages/inputmethods/LeanbackIME/Android.bp:4:1: "LeanbackIME" depends on undefined module "framework-res"
error: external/libchrome/Android.bp:948:1: "android.mojo" depends on undefined module "ext"
error: external/libchrome/Android.bp:948:1: "android.mojo" depends on undefined module "framework"
error: external/libchrome/Android.bp:948:1: "android.mojo" depends on undefined module "updatable_media_stubs"
error: prebuilts/misc/common/androidx-test/Android.bp:276:1: "androidx.test.runner-nodeps" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx/Android.bp:1126:1: "androidx.loader_loader" depends on undefined module "framework-res"
error: external/libbackup/Android.bp:1:1: "libbackup" depends on undefined module "framework-res"
error: packages/providers/BookmarkProvider/Android.bp:15:1: "BookmarkProvider" depends on undefined module "ext"
error: packages/providers/BookmarkProvider/Android.bp:15:1: "BookmarkProvider" depends on undefined module "framework"
error: packages/providers/BookmarkProvider/Android.bp:15:1: "BookmarkProvider" depends on undefined module "updatable_media_stubs"
error: packages/providers/BookmarkProvider/Android.bp:15:1: "BookmarkProvider" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx/Android.bp:310:1: "androidx.cardview_cardview" depends on undefined module "framework-res"
error: cts/tests/tests/packageinstaller/atomicinstall/Android.bp:45:1: "AtomicInstallTestAppAv1" depends on undefined module "ext"
error: cts/tests/tests/packageinstaller/atomicinstall/Android.bp:45:1: "AtomicInstallTestAppAv1" depends on undefined module "framework"
error: cts/tests/tests/packageinstaller/atomicinstall/Android.bp:45:1: "AtomicInstallTestAppAv1" depends on undefined module "updatable_media_stubs"
error: cts/tests/tests/packageinstaller/atomicinstall/Android.bp:45:1: "AtomicInstallTestAppAv1" depends on undefined module "framework-res"
error: platform_testing/libraries/car-helpers/multiuser-helper/Android.bp:16:1: "multi-user-helper" depends on undefined module "ext"
error: platform_testing/libraries/car-helpers/multiuser-helper/Android.bp:16:1: "multi-user-helper" depends on undefined module "framework"
error: platform_testing/libraries/car-helpers/multiuser-helper/Android.bp:16:1: "multi-user-helper" depends on undefined module "updatable_media_stubs"
error: cts/hostsidetests/appsecurity/test-apps/ReviewPermissionHelper/Android.bp:15:1: "ReviewPermissionHelper" depends on undefined module "ext"
error: cts/hostsidetests/appsecurity/test-apps/ReviewPermissionHelper/Android.bp:15:1: "ReviewPermissionHelper" depends on undefined module "framework"
error: cts/hostsidetests/appsecurity/test-apps/ReviewPermissionHelper/Android.bp:15:1: "ReviewPermissionHelper" depends on undefined module "updatable_media_stubs"
error: cts/hostsidetests/appsecurity/test-apps/ReviewPermissionHelper/Android.bp:15:1: "ReviewPermissionHelper" depends on undefined module "framework-res"
error: prebuilts/sdk/current/support/Android.bp:940:1: "android-support-dynamic-animation" depends on undefined module "framework-res"
error: prebuilts/sdk/current/support/Android.bp:653:1: "android-support-recommendation" depends on undefined module "framework-res"
error: vendor/nxp/opensource/commonsys/external/libnfc-nci/src/Android.bp:1:1: "libnqnfc-nci" depends on undefined module "libstatslog"
error: platform_testing/utils/permissions/Android.bp:25:1: "PermissionUtils" depends on undefined module "ext"
error: platform_testing/utils/permissions/Android.bp:25:1: "PermissionUtils" depends on undefined module "framework"
error: platform_testing/utils/permissions/Android.bp:25:1: "PermissionUtils" depends on undefined module "updatable_media_stubs"
error: platform_testing/utils/permissions/Android.bp:25:1: "PermissionUtils" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx-legacy/Android.bp:19:1: "androidx.legacy_legacy-preference-v14" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx/Android.bp:1363:1: "androidx.percentlayout_percentlayout-nodeps" depends on undefined module "framework-res"
error: prebuilts/misc/common/androidx-test/Android.bp:70:1: "androidx.test.espresso.core" depends on undefined module "framework-res"
error: prebuilts/sdk/current/support/Android.bp:379:1: "android-support-interpolator" depends on undefined module "framework-res"
error: frameworks/ex/framesequence/jni/Android.bp:17:1: "libframesequence" depends on undefined module "libjnigraphics.ndk.16"
error: prebuilts/sdk/current/androidx/Android.bp:1439:1: "androidx.recommendation_recommendation-nodeps" depends on undefined module "framework-res"
error: prebuilts/misc/common/androidx-test/Android.bp:220:1: "androidx.test.janktesthelper" depends on undefined module "framework-res"
error: packages/screensavers/Basic/Android.bp:1:1: "BasicDreams" depends on undefined module "ext"
error: packages/screensavers/Basic/Android.bp:1:1: "BasicDreams" depends on undefined module "framework"
error: packages/screensavers/Basic/Android.bp:1:1: "BasicDreams" depends on undefined module "updatable_media_stubs"
error: packages/screensavers/Basic/Android.bp:1:1: "BasicDreams" depends on undefined module "framework-res"
error: prebuilts/misc/common/androidx-test/Android.bp:286:1: "androidx.test.runner" depends on undefined module "framework-res"
error: prebuilts/sdk/current/support/Android.bp:245:1: "android-support-customview" depends on undefined module "framework-res"
error: packages/providers/MediaProvider/tests/Android.bp:1:1: "MediaProviderTests" depends on undefined module "ext"
error: packages/providers/MediaProvider/tests/Android.bp:1:1: "MediaProviderTests" depends on undefined module "framework"
error: packages/providers/MediaProvider/tests/Android.bp:1:1: "MediaProviderTests" depends on undefined module "updatable_media_stubs"
error: packages/providers/MediaProvider/tests/Android.bp:1:1: "MediaProviderTests" depends on undefined module "android.test.base"
error: packages/providers/MediaProvider/tests/Android.bp:1:1: "MediaProviderTests" depends on undefined module "android.test.mock"
error: packages/providers/MediaProvider/tests/Android.bp:1:1: "MediaProviderTests" depends on undefined module "android.test.runner"
error: packages/providers/MediaProvider/tests/Android.bp:1:1: "MediaProviderTests" depends on undefined module "framework-res"
error: platform_testing/tests/example/devcodelab/Android.bp:15:1: "DevCodelabTest" depends on undefined module "ext"
error: platform_testing/tests/example/devcodelab/Android.bp:15:1: "DevCodelabTest" depends on undefined module "framework"
error: platform_testing/tests/example/devcodelab/Android.bp:15:1: "DevCodelabTest" depends on undefined module "updatable_media_stubs"
error: platform_testing/tests/example/devcodelab/Android.bp:15:1: "DevCodelabTest" depends on undefined module "framework-res"
error: packages/providers/CalendarProvider/Android.bp:17:1: "CalendarProvider" depends on undefined module "ext"
error: packages/providers/CalendarProvider/Android.bp:17:1: "CalendarProvider" depends on undefined module "framework"
error: packages/providers/CalendarProvider/Android.bp:17:1: "CalendarProvider" depends on undefined module "updatable_media_stubs"
error: packages/providers/CalendarProvider/Android.bp:17:1: "CalendarProvider" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx/Android.bp:646:1: "androidx.fragment_fragment" depends on undefined module "framework-res"
error: prebuilts/sdk/current/support/Android.bp:954:1: "android-support-emoji-appcompat-nodeps" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx/Android.bp:1800:1: "androidx.swiperefreshlayout_swiperefreshlayout" depends on undefined module "framework-res"
error: prebuilts/sdk/current/support/Android.bp:1254:1: "android-support-viewpager" depends on undefined module "framework-res"
error: prebuilts/sdk/current/support/Android.bp:978:1: "android-support-emoji-bundled-nodeps" depends on undefined module "framework-res"
error: prebuilts/sdk/current/androidx/Android.bp:235:1: "androidx.car_car-cluster-nodeps" depends on undefined module "framework-res"
error: platform_testing/tests/functional/testapks/permissiontestappmv1/Android.bp:1:1: "PermissionTestAppMV1" depends on undefined module "ext"
error: platform_testing/tests/functional/testapks/permissiontestappmv1/Android.bp:1:1: "PermissionTestAppMV1" depends on undefined module "framework"
error: platform_testing/tests/functional/testapks/permissiontestappmv1/Android.bp:1:1: "PermissionTestAppMV1" depends on undefined module "updatable_media_stubs"
error: platform_testing/tests/functional/testapks/permissiontestappmv1/Android.bp:1:1: "PermissionTestAppMV1" depends on undefined module "framework-res"
ninja: build stopped: subcommand failed.
#### failed to build some targets (54 seconds) ####
Where do I define these modules? I poked around in board config but I don't know where they are importing them from. Am I just missing some source?
Related
I am trying to use vss-web-extension-sdk package with react but its giving me error.
Getting the below error:
Module not found: Error: Can't resolve 'vss-web-extension-sdk'
Compiler message:
../../../Public/FlutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.12/lib/src/date_picker_theme.dart:39:9: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments.
const DateTimePickerTheme({
^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
If you are using flutter_cupertino_date_picker, you may be will need to update it, This is working with me:
flutter_cupertino_date_picker: ^1.0.26
I'm new to vapor and I just installed in on MacOS, I'm getting following error when I build it. Does anyone know how to fix it? I've searched but most of the solution mentioned are for iOS rather than MacOS.
While building module 'Darwin' imported from /Users/imac1/ROOT/Vapor/Hello/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h:35:
In file included from <module-includes>:357:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ncurses.h:141:
/opt/local/include/unctrl.h:60:63: error: unknown type name 'SCREEN'
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);
^
/opt/local/include/unctrl.h:60:53: error: function cannot return function type 'char *(int *, chtype)' (aka 'char *(int *, unsigned int)')
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);
^
/opt/local/include/unctrl.h:60:54: error: a parameter list without types is only allowed in a function definition
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);
^
In file included from /Users/imac1/ROOT/Vapor/Hello/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/c_nio_http_parser.c:24:
/Users/imac1/ROOT/Vapor/Hello/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h:35:10: fatal error: could not build module 'Darwin'
#include <stddef.h>
~~~~~~~~^
4 errors generated.
[0/20] Compiling CNIOHTTPParser c_nio_http_parser.c
[1/20] Compiling CNIOLinux shim.c
[2/20] Compiling CNIOZlib empty.c
[3/20] Compiling CNIOLinux ifaddrs-android.c
[3/20] Compiling CNIOOpenSSL shims.c
[3/20] Compiling CNIOOpenSSL helpers.c
[3/20] Compiling CNIODarwin shim.c
[3/20] Compiling CNIOSHA1 c_nio_sha1.c
Uninstall MacPorts - it installs header files where they shouldn’t be and the compiler uses those header files rather than the ones bundled with Xcode
I've read several links about that.
If I try the python port for windows: I'm using python 3.4 so it fails.
For both downloading the archive + "setup.py install" or "pip install pyscopg2" I got the below error. I had visual studio 2012 installed, I installed a 2010 version to get rid of "vcvarsall.bat not found"
ERROR:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python34\libs /LIBPATH:C:\Python34\PCbuild /LIBPATH:C:/PROGRA~1/POSTGR~1/9.3/lib ws2_32.lib advapi32.lib secur32.lib libpq.lib shfolder.lib build\temp.win32-3.4\Release\psycopg\psycopgmodule.obj build\temp.win32-3.4\Release\psycopg\green.obj build\temp.win32-3.4\Release\psycopg\pqpath.obj build\temp.win32-3.4\Release\psycopg\utils.obj build\temp.win32-3.4\Release\psycopg\bytes_format.obj build\temp.win32-3.4\Release\psycopg\connection_int.obj build\temp.win32-3.4\Release\psycopg\connection_type.obj build\temp.win32-3.4\Release\psycopg\cursor_int.obj build\temp.win32-3.4\Release\psycopg\cursor_type.obj build\temp.win32-3.4\Release\psycopg\diagnostics_type.obj build\temp.win32-3.4\Release\psycopg\error_type.obj build\temp.win32-3.4\Release\psycopg\lobject_int.obj build\temp.win32-3.4\Release\psycopg\lobject_type.obj build\temp.win32-3.4\Release\psycopg\notify_type.obj build\temp.
win32-3.4\Release\psycopg\xid_type.obj build\temp.win32-3.4\Release\psycopg\adapter_asis.obj build\temp.win32-3.4\Release\psycopg\adapter_binary.obj build\temp.win32-3.4\Release\psycopg\adapter_datetime.obj build\temp.win32-3.4\Release\psycopg\adapter_list.obj build\temp.win32-3.4\Release\psycopg\adapter_pboolean.obj build\temp.win32-3.4\Release\psycopg\adapter_pdecimal.obj build\temp.win32-3.4\Release\psycopg\adapter_pint.obj build\temp.win32-3.4\Release\psycopg\adapter_pfloat.obj build\temp.win32-3.4\Release\psycopg\adapter_qstring.obj build\temp.win32-3.4\Release\psycopg\microprotocols.obj build\temp.win32-3.4\Release\psycopg\microprotocols_proto.obj build\temp.win32-3.4\Release\psycopg\typecast.obj /OUT:build\lib.win32-3.4\psycopg2\_psycopg.pyd /IMPLIB:build\temp.win32-3.4\Release\psycopg\_psycopg.lib /MANIFESTFILE:build\temp.win32-3.4\Release\psycopg\_psycopg.pyd.manifest
Creating library build\temp.win32-3.4\Release\psycopg\_psycopg.lib and object build\temp.win32-3.4\Release\psycopg\_psycopg.exp
pqpath.obj : error LNK2019: unresolved external symbol _PQclear referenced in function _pq_raise
connection_int.obj : error LNK2001: unresolved external symbol _PQclear
cursor_type.obj : error LNK2001: unresolved external symbol _PQclear
error_type.obj : error LNK2001: unresolved external symbol _PQclear
pqpath.obj : error LNK2019: unresolved external symbol _PQerrorMessage referenced in function _pq_raise
connection_int.obj : error LNK2001: unresolved external symbol _PQerrorMessage
lobject_int.obj : error LNK2001: unresolved external symbol _PQerrorMessage
pqpath.obj : error LNK2019: unresolved external symbol _PQresultErrorField referenced in function _pq_raise
diagnostics_type.obj : error LNK2001: unresolved external symbol _PQresultErrorField
pqpath.obj : error LNK2019: unresolved external symbol _PQresultErrorMessage referenced in function _pq_raise
pqpath.obj : error LNK2019: unresolved external symbol _PQstatus referenced in function _pq_raise
connection_int.obj : error LNK2001: unresolved external symbol _PQstatus
pqpath.obj : error LNK2019: unresolved external symbol _PQgetResult referenced in function _pq_clear_async
pqpath.obj : error LNK2019: unresolved external symbol _PQsetnonblocking referenced in function _pq_set_non_blocking
pqpath.obj : error LNK2019: unresolved external symbol _PQresultStatus referenced in function _pq_execute_command_locked
connection_int.obj : error LNK2001: unresolved external symbol _PQresultStatus
pqpath.obj : error LNK2019: unresolved external symbol _PQexec referenced in function _pq_execute_command_locked
pqpath.obj : error LNK2019: unresolved external symbol _PQgetvalue referenced in function _pq_get_guc_locked
cursor_type.obj : error LNK2001: unresolved external symbol _PQgetvalue
pqpath.obj : error LNK2019: unresolved external symbol _PQisBusy referenced in function _pq_is_busy
pqpath.obj : error LNK2019: unresolved external symbol _PQconsumeInput referenced in function _pq_is_busy
pqpath.obj : error LNK2019: unresolved external symbol _PQflush referenced in function _pq_flush
connection_int.obj : error LNK2001: unresolved external symbol _PQflush
pqpath.obj : error LNK2019: unresolved external symbol _PQsendQuery referenced in function _pq_send_query
pqpath.obj : error LNK2019: unresolved external symbol _PQfname referenced in function __pq_fetch_tuples
pqpath.obj : error LNK2019: unresolved external symbol _PQfmod referenced in function __pq_fetch_tuples
pqpath.obj : error LNK2019: unresolved external symbol _PQfsize referenced in function __pq_fetch_tuples
pqpath.obj : error LNK2019: unresolved external symbol _PQftype referenced in function __pq_fetch_tuples
pqpath.obj : error LNK2019: unresolved external symbol _PQbinaryTuples referenced in function __pq_fetch_tuples
pqpath.obj : error LNK2019: unresolved external symbol _PQnfields referenced in function __pq_fetch_tuples
cursor_type.obj : error LNK2001: unresolved external symbol _PQnfields
pqpath.obj : error LNK2019: unresolved external symbol _PQputCopyEnd referenced in function __pq_copy_in_v3
pqpath.obj : error LNK2019: unresolved external symbol _PQputCopyData referenced in function __pq_copy_in_v3
pqpath.obj : error LNK2019: unresolved external symbol _PQfreemem referenced in function __pq_copy_out_v3
connection_int.obj : error LNK2001: unresolved external symbol _PQfreemem
adapter_binary.obj : error LNK2001: unresolved external symbol _PQfreemem
pqpath.obj : error LNK2019: unresolved external symbol _PQgetCopyData referenced in function __pq_copy_out_v3
pqpath.obj : error LNK2019: unresolved external symbol _PQntuples referenced in function _pq_fetch
pqpath.obj : error LNK2019: unresolved external symbol _PQoidValue referenced in function _pq_fetch
pqpath.obj : error LNK2019: unresolved external symbol _PQcmdTuples referenced in function _pq_fetch
pqpath.obj : error LNK2019: unresolved external symbol _PQcmdStatus referenced in function _pq_fetch
pqpath.obj : error LNK2019: unresolved external symbol _PQresStatus referenced in function _pq_fetch
utils.obj : error LNK2019: unresolved external symbol _PQescapeString referenced in function _psycopg_escape_string
utils.obj : error LNK2019: unresolved external symbol _PQescapeStringConn referenced in function _psycopg_escape_string
connection_int.obj : error LNK2019: unresolved external symbol _PQnotifies referenced in function _conn_notifies_process
connection_int.obj : error LNK2019: unresolved external symbol _PQparameterStatus referenced in function _conn_get_standard_conforming_strings
connection_type.obj : error LNK2001: unresolved external symbol _PQparameterStatus
connection_int.obj : error LNK2019: unresolved external symbol _PQprotocolVersion referenced in function _conn_get_protocol_version
connection_int.obj : error LNK2019: unresolved external symbol _PQserverVersion referenced in function _conn_get_server_version
connection_int.obj : error LNK2019: unresolved external symbol _PQgetCancel referenced in function _conn_setup_cancel
connection_int.obj : error LNK2019: unresolved external symbol _PQfreeCancel referenced in function _conn_setup_cancel
connection_type.obj : error LNK2001: unresolved external symbol _PQfreeCancel
connection_int.obj : error LNK2019: unresolved external symbol _PQsetNoticeProcessor referenced in function __conn_sync_connect
connection_int.obj : error LNK2019: unresolved external symbol _PQconnectStart referenced in function __conn_sync_connect
connection_int.obj : error LNK2019: unresolved external symbol _PQconnectdb referenced in function __conn_sync_connect
connection_int.obj : error LNK2019: unresolved external symbol _PQconnectPoll referenced in function __conn_poll_connecting
connection_int.obj : error LNK2019: unresolved external symbol _PQfinish referenced in function _conn_close_locked
connection_type.obj : error LNK2019: unresolved external symbol _PQtransactionStatus referenced in function _psyco_conn_get_transaction_status
connection_type.obj : error LNK2019: unresolved external symbol _PQbackendPID referenced in function _psyco_conn_get_backend_pid
connection_type.obj : error LNK2019: unresolved external symbol _PQsocket referenced in function _psyco_conn_fileno
connection_type.obj : error LNK2019: unresolved external symbol _PQcancel referenced in function _psyco_conn_cancel
cursor_type.obj : error LNK2019: unresolved external symbol _PQgetlength referenced in function __psyco_curs_buildrow_fill
cursor_type.obj : error LNK2019: unresolved external symbol _PQgetisnull referenced in function __psyco_curs_buildrow_fill
lobject_int.obj : error LNK2019: unresolved external symbol _lo_open referenced in function _lobject_open
lobject_int.obj : error LNK2019: unresolved external symbol _lo_creat referenced in function _lobject_open
lobject_int.obj : error LNK2019: unresolved external symbol _lo_create referenced in function _lobject_open
lobject_int.obj : error LNK2019: unresolved external symbol _lo_import referenced in function _lobject_open
lobject_int.obj : error LNK2019: unresolved external symbol _lo_close referenced in function _lobject_close_locked
lobject_int.obj : error LNK2019: unresolved external symbol _lo_unlink referenced in function _lobject_unlink
lobject_int.obj : error LNK2019: unresolved external symbol _lo_write referenced in function _lobject_write
lobject_int.obj : error LNK2019: unresolved external symbol _lo_read referenced in function _lobject_read
lobject_int.obj : error LNK2019: unresolved external symbol _lo_lseek referenced in function _lobject_seek
lobject_int.obj : error LNK2019: unresolved external symbol _lo_tell referenced in function _lobject_tell
lobject_int.obj : error LNK2019: unresolved external symbol _lo_export referenced in function _lobject_export
lobject_int.obj : error LNK2019: unresolved external symbol _lo_truncate referenced in function _lobject_truncate
adapter_binary.obj : error LNK2019: unresolved external symbol _PQescapeBytea referenced in function _binary_escape
adapter_binary.obj : error LNK2019: unresolved external symbol _PQescapeByteaConn referenced in function _binary_escape
build\lib.win32-3.4\psycopg2\_psycopg.pyd : fatal error LNK1120: 62 unresolved externals
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe"' failed with exit status 1120
I tried to add the 'lib' and 'include' directories of postregsql install path into my path. Indeed, missing symbols seem to all be defined there (libpq.obj/c/h) ! Started a new 'cmd', but same result.
WE ended up using the binaries from here via pip -> https://github.com/nwcell/psycopg2-windows via python 3.4
pip install git+https://github.com/nwcell/psycopg2-windows.git#win64-py34#egg=psycopg2
as mentioned in this thread, http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg is a good resource too, but the first solution solved my issue.
I could not find any binaries for psycopg2 for windows 64 bit and python 3.4. I suggest you downgrade to python 3.3 and use the correct binaries found at the address below.
If you are using a virtualenv you will need to activate it and use easy_install to install the binaries.
This way : easy_install http://www.stickpeople.com/projects/python/win-psycopg/2.5.2/psycopg2-2.5.2.win-amd64-py3.3-pg9.2.6-release.exe
EDIT : You can try these for 3.4 64bit http://www.lfd.uci.edu/~gohlke/pythonlibs/
Solved the same problem here. I got to download the binaries from the Christoph Gohlke's Unofficial Windows binaries (http://www.lfd.uci.edu/~gohlke/pythonlibs/#psychopy) and install using wheel.
Note that even if you are running on a 64 bit computer, you may want to try using the win32 version if the win_amd64 doesn't work.
To install the downloaded *.whl using wheel (as solved here: https://stackoverflow.com/a/27909082/4650346) you just do
pip install wheel
And then:
pip install psycopg2‑2.5.5‑cp34‑none‑win32.whl
And it works perfectly well on virtualenv also.
please I would like you to answer me about that error when I compiled my C program(VC++ 2008) Thank you very, I would appreciate any help ..
Note :my program is to perform cosimulation between OPNET modeler 14.5 and MATLAB by using external cosimulation controller C program ....
this is output error in VC++ 2008 command prompt
`first.c
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:first.exe
first.obj
$first.obj : error LNK2019: unresolved external symbol _imp_Esa_Interface_Value_Set
$referenced in function _main
$first.obj : error LNK2019: unresolved external symbol _imp_Esa_Interface_Value
$_Get referenced in function _main
$first.obj : error LNK2019: unresolved external symbol _imp_Esa_Execute_Until r
$eferenced in function _main
$first.obj : error LNK2019: unresolved external symbol _imp_Esa_Interface_Callb
$ack_Register referenced in function _main
$first.obj : error LNK2019: unresolved external symbol _imp_Esa_Interface_Group
$_Get referenced in function _main
$first.obj : error LNK2019: unresolved external symbol _imp_Esa_Load referenced
$ in function _main
$first.obj : error LNK2019: unresolved external symbol _imp_Esa_Init referenced
$ in function _main
$first.obj : error LNK2019: unresolved external symbol _imp_Esa_Main referenced
$ in function _main
$first.exe : fatal error LNK1120: 8 unresolved externals`
I guess you'd better use command-line tools(such as makesim) provided by OPNET rather than Visual Studio. Since your cosim depends on OPNET headers and libraries, it is better to compile and link with OPNET toolchain.