Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
marekKnows_com
Posts: 16
Registered: ‎04-28-2013
My Device: PlayBook
My Carrier: none
Accepted Solution

Can not build MyOpenGL20App using Visual Studio

I would like to use Visual Studio to build BB10 apps, so I downloaded the plugin and followed the instructions shown here: https://developer.blackberry.com/native/documentation/bb10/getting_started_in_vs.html

 

In the NDK I created a new -> BlackBerry Project > OpenGL > OpenGL ES 2.0 > Language C++, Build Managed.

I can build and run this app in the simulator using the NDK with no problems.

 

Now I fire up Visual Studio 2010, create an empty project, and then select Import BlackBerry Core Native Project.  I select the app that I created in the NDK and everything appears to import correctly.

 

When I go and do a build for the BlackBerrySimulator target, I get the following errors:

1>------ Build started: Project: OpenGL, Configuration: Debug BlackBerrySimulator ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(c:\Users\Marek\documents\visual studio 2010\Projects\BlackBerry\Test\OpenGL\Simulator-Debug\OpenGL) does not match the Linker's OutputFile property value (c:\Users\Marek\documents\visual studio 2010\Projects\BlackBerry\Test\OpenGL\Simulator-Debug\OpenGL.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>  qcc -o bbutil.o c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c -V"4.6.3,gcc_ntox86" -c -Wp,-MMD,bbutil.d -Wp,-MT,bbutil.o -g -w3 -lang-c -fexceptions -fstack-protector-all -I"C:/bbndk/target_10_1_0_1020/qnx6\usr\include" -I"C:/bbndk/target_10_1_0_1020/qnx6\usr\include\freetype2" -I"C:/bbndk/target_10_1_0_1020/qnx6\..\target-override\usr\include" -DQCC -D__QCC__ -D__QNX__ -DUSING_GL20 -UWIN32 -U_WINDOWS 
1>  qcc -o main.o c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c -V"4.6.3,gcc_ntox86" -c -Wp,-MMD,main.d -Wp,-MT,main.o -g -w3 -lang-c -fexceptions -fstack-protector-all -I"C:/bbndk/target_10_1_0_1020/qnx6\usr\include" -I"C:/bbndk/target_10_1_0_1020/qnx6\usr\include\freetype2" -I"C:/bbndk/target_10_1_0_1020/qnx6\..\target-override\usr\include" -DQCC -D__QCC__ -D__QNX__ -DUSING_GL20 -UWIN32 -U_WINDOWS 
1>  qcc -o c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/Simulator-Debug/OpenGL  ./bbutil.o ./main.o   -V"4.6.3,gcc_ntox86" -lang-c++ -g -Wl,-z,relro,-z,now -L"C:/bbndk/target_10_1_0_1020/qnx6\x86\lib" -L"C:/bbndk/target_10_1_0_1020/qnx6\..\target-override\x86\lib" -L"C:/bbndk/target_10_1_0_1020/qnx6\..\target-override\x86\usr\lib" 
1>  ./bbutil.o: In function `bbutil_egl_perror':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(100,1): error : undefined reference to `eglGetError'
1>  ./bbutil.o: In function `bbutil_init_egl':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(137,1): error : undefined reference to `eglGetDisplay'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(144,1): error : undefined reference to `eglInitialize'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(151,1): error : undefined reference to `eglBindAPI'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(159,1): error : undefined reference to `eglChooseConfig'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(165,1): error : undefined reference to `eglCreateContext'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(176,1): error : undefined reference to `screen_create_window'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(183,1): error : undefined reference to `screen_set_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(190,1): error : undefined reference to `screen_set_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(197,1): error : undefined reference to `screen_get_window_property_pv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(206,1): error : undefined reference to `screen_get_display_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(216,1): error : undefined reference to `screen_get_display_property_pv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(224,1): error : undefined reference to `screen_get_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(251,1): error : undefined reference to `screen_set_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(258,1): error : undefined reference to `screen_set_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(265,1): error : undefined reference to `screen_create_window_buffers'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(272,1): error : undefined reference to `eglCreateWindowSurface'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(279,1): error : undefined reference to `eglMakeCurrent'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(286,1): error : undefined reference to `eglSwapInterval'
1>  ./bbutil.o: In function `bbutil_terminate':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(302,1): error : undefined reference to `eglMakeCurrent'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(304,1): error : undefined reference to `eglDestroySurface'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(308,1): error : undefined reference to `eglDestroyContext'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(312,1): error : undefined reference to `screen_destroy_window'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(315,1): error : undefined reference to `eglTerminate'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(318,1): error : undefined reference to `eglReleaseThread'
1>  ./bbutil.o: In function `bbutil_swap':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(325,1): error : undefined reference to `eglSwapBuffers'
1>  ./bbutil.o: In function `bbutil_load_font':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(357,1): error : undefined reference to `FT_Init_FreeType'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(361,1): error : undefined reference to `FT_New_Face'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(366,1): error : undefined reference to `FT_Set_Char_Size'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(381,1): error : undefined reference to `glGenTextures'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(394,1): error : undefined reference to `FT_Load_Char'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(430,1): error : undefined reference to `FT_Load_Char'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(466,1): error : undefined reference to `glBindTexture'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(467,1): error : undefined reference to `glTexParameteri'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(468,1): error : undefined reference to `glTexParameteri'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(470,1): error : undefined reference to `glTexImage2D'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(474,1): error : undefined reference to `FT_Done_Face'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(475,1): error : undefined reference to `FT_Done_FreeType'
1>  ./bbutil.o: In function `bbutil_render_text':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(590,1): error : undefined reference to `glCreateShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(593,1): error : undefined reference to `glGetError'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(596,1): error : undefined reference to `glShaderSource'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(597,1): error : undefined reference to `glCompileShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(598,1): error : undefined reference to `glGetShaderiv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(601,1): error : undefined reference to `glGetShaderInfoLog'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(605,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(610,1): error : undefined reference to `glCreateShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(613,1): error : undefined reference to `glGetError'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(616,1): error : undefined reference to `glShaderSource'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(617,1): error : undefined reference to `glCompileShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(618,1): error : undefined reference to `glGetShaderiv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(621,1): error : undefined reference to `glGetShaderInfoLog'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(625,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(626,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(633,1): error : undefined reference to `glCreateProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(636,1): error : undefined reference to `glAttachShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(637,1): error : undefined reference to `glAttachShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(638,1): error : undefined reference to `glLinkProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(640,1): error : undefined reference to `glGetProgramiv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(643,1): error : undefined reference to `glGetProgramInfoLog'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(647,1): error : undefined reference to `glDeleteProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(655,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(656,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(661,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(662,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(664,1): error : undefined reference to `glUseProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(667,1): error : undefined reference to `glGetAttribLocation'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(668,1): error : undefined reference to `glGetAttribLocation'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(669,1): error : undefined reference to `glGetUniformLocation'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(670,1): error : undefined reference to `glGetUniformLocation'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(675,1): error : undefined reference to `glEnable'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(681,1): error : undefined reference to `eglQuerySurface'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(682,1): error : undefined reference to `eglQuerySurface'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(690,1): error : undefined reference to `glUseProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(692,1): error : undefined reference to `glBlendFunc'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(694,1): error : undefined reference to `glBindBuffer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(696,1): error : undefined reference to `glActiveTexture'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(697,1): error : undefined reference to `glBindTexture'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(698,1): error : undefined reference to `glUniform1i'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(700,1): error : undefined reference to `glUniform4f'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(702,1): error : undefined reference to `glEnableVertexAttribArray'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(703,1): error : undefined reference to `glVertexAttribPointer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(705,1): error : undefined reference to `glEnableVertexAttribArray'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(706,1): error : undefined reference to `glVertexAttribPointer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(709,1): error : undefined reference to `glDrawElements'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(711,1): error : undefined reference to `glDisableVertexAttribArray'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(712,1): error : undefined reference to `glDisableVertexAttribArray'
1>  ./bbutil.o: In function `bbutil_destroy_font':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(727,1): error : undefined reference to `glDeleteTextures'
1>  ./bbutil.o: In function `bbutil_load_texture':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(785,1): error : undefined reference to `png_sig_cmp'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(792,1): error : undefined reference to `png_create_read_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(799,1): error : undefined reference to `png_create_info_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(801,1): error : undefined reference to `png_destroy_read_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(807,1): error : undefined reference to `png_create_info_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(809,1): error : undefined reference to `png_destroy_read_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(815,1): error : undefined reference to `png_set_longjmp_fn'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(815,1): error : undefined reference to `png_set_longjmp_fn'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(816,1): error : undefined reference to `png_destroy_read_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(822,1): error : undefined reference to `png_init_io'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(825,1): error : undefined reference to `png_set_sig_bytes'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(828,1): error : undefined reference to `png_read_info'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(835,1): error : undefined reference to `png_get_IHDR'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(848,1): error : undefined reference to `png_destroy_read_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(853,1): error : undefined reference to `png_read_update_info'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(856,1): error : undefined reference to `png_get_rowbytes'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(863,1): error : undefined reference to `png_destroy_read_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(872,1): error : undefined reference to `png_destroy_read_struct'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(884,1): error : undefined reference to `png_read_image'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(891,1): error : undefined reference to `glGenTextures'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(892,1): error : undefined reference to `glBindTexture'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(893,1): error : undefined reference to `glTexParameteri'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(894,1): error : undefined reference to `glTexParameteri'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(895,1): error : undefined reference to `glTexParameteri'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(896,1): error : undefined reference to `glTexParameteri'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(898,1): error : undefined reference to `glPixelStorei'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(901,1): error : undefined reference to `glTexImage2D'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(902,1): error : undefined reference to `glTexSubImage2D'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(904,1): error : undefined reference to `glTexImage2D'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(907,1): error : undefined reference to `glGetError'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(910,1): error : undefined reference to `png_destroy_read_struct'
1>  ./bbutil.o: In function `bbutil_calculate_dpi':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(941,1): error : undefined reference to `screen_get_display_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(953,1): error : undefined reference to `screen_get_display_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(959,1): error : undefined reference to `sqrt'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(960,1): error : undefined reference to `sqrt'
1>  ./bbutil.o: In function `bbutil_rotate_screen_surface':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(976,1): error : undefined reference to `screen_get_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(982,1): error : undefined reference to `screen_get_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(1001,1): error : undefined reference to `eglMakeCurrent'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(1007,1): error : undefined reference to `eglDestroySurface'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(1013,1): error : undefined reference to `screen_set_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(1019,1): error : undefined reference to `screen_set_window_property_iv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(1024,1): error : undefined reference to `eglCreateWindowSurface'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(1030,1): error : undefined reference to `eglMakeCurrent'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(1036,1): error : undefined reference to `eglSwapInterval'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/bbutil.c(1043,1): error : undefined reference to `screen_set_window_property_iv'
1>  ./main.o: In function `handleScreenEvent':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(52,1): error : undefined reference to `screen_event_get_event'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(55,1): error : undefined reference to `screen_get_event_property_iv'
1>  ./main.o: In function `initialize':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(102,1): error : undefined reference to `eglQuerySurface'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(103,1): error : undefined reference to `eglQuerySurface'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(129,1): error : undefined reference to `glCreateShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(131,1): error : undefined reference to `glGetError'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(134,1): error : undefined reference to `glShaderSource'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(135,1): error : undefined reference to `glCompileShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(136,1): error : undefined reference to `glGetShaderiv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(139,1): error : undefined reference to `glGetShaderInfoLog'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(143,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(148,1): error : undefined reference to `glCreateShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(150,1): error : undefined reference to `glGetError'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(153,1): error : undefined reference to `glShaderSource'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(154,1): error : undefined reference to `glCompileShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(155,1): error : undefined reference to `glGetShaderiv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(158,1): error : undefined reference to `glGetShaderInfoLog'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(162,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(163,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(170,1): error : undefined reference to `glCreateProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(173,1): error : undefined reference to `glAttachShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(174,1): error : undefined reference to `glAttachShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(175,1): error : undefined reference to `glLinkProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(177,1): error : undefined reference to `glGetProgramiv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(180,1): error : undefined reference to `glGetProgramInfoLog'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(184,1): error : undefined reference to `glDeleteProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(192,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(193,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(197,1): error : undefined reference to `glUseProgram'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(200,1): error : undefined reference to `glGetUniformLocation'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(212,1): error : undefined reference to `glUniformMatrix4fv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(216,1): error : undefined reference to `glGetUniformLocation'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(217,1): error : undefined reference to `glGetAttribLocation'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(218,1): error : undefined reference to `glGetAttribLocation'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(221,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(222,1): error : undefined reference to `glDeleteShader'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(225,1): error : undefined reference to `glGenBuffers'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(226,1): error : undefined reference to `glBindBuffer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(227,1): error : undefined reference to `glBufferData'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(229,1): error : undefined reference to `glGenBuffers'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(230,1): error : undefined reference to `glBindBuffer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(231,1): error : undefined reference to `glBufferData'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(236,1): error : undefined reference to `glUniformMatrix4fv'
1>  ./main.o: In function `render':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(247,1): error : undefined reference to `glClear'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(250,1): error : undefined reference to `glEnableVertexAttribArray'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(251,1): error : undefined reference to `glBindBuffer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(252,1): error : undefined reference to `glVertexAttribPointer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(255,1): error : undefined reference to `glEnableVertexAttribArray'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(256,1): error : undefined reference to `glBindBuffer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(257,1): error : undefined reference to `glVertexAttribPointer'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(260,1): error : undefined reference to `_Sin'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(261,1): error : undefined reference to `_Sin'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(262,1): error : undefined reference to `_Sin'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(263,1): error : undefined reference to `_Sin'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(264,1): error : undefined reference to `glUniformMatrix4fv'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(267,1): error : undefined reference to `glDrawArrays'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(270,1): error : undefined reference to `glDisableVertexAttribArray'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(271,1): error : undefined reference to `glDisableVertexAttribArray'
1>  ./main.o: In function `main':
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(280,1): error : undefined reference to `screen_create_context'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(283,1): error : undefined reference to `bps_initialize'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(289,1): error : undefined reference to `screen_destroy_context'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(297,1): error : undefined reference to `screen_destroy_context'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(298,1): error : undefined reference to `bps_shutdown'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(303,1): error : undefined reference to `screen_request_events'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(306,1): error : undefined reference to `screen_destroy_context'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(307,1): error : undefined reference to `bps_shutdown'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(311,1): error : undefined reference to `navigator_request_events'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(314,1): error : undefined reference to `screen_destroy_context'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(315,1): error : undefined reference to `bps_shutdown'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(320,1): error : undefined reference to `navigator_rotation_lock'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(323,1): error : undefined reference to `screen_destroy_context'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(324,1): error : undefined reference to `bps_shutdown'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(333,1): error : undefined reference to `bps_get_event'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(339,1): error : undefined reference to `bps_event_get_domain'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(341,1): error : undefined reference to `screen_get_domain'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(343,1): error : undefined reference to `navigator_get_domain'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(344,1): error : undefined reference to `bps_event_get_code'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(355,1): error : undefined reference to `screen_stop_events'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(358,1): error : undefined reference to `bps_shutdown'
1>c:/Users/Marek/Documents/Visual Studio 2010/Projects/BlackBerry/Test/OpenGL/src/main.c(364,1): error : undefined reference to `screen_destroy_context'
1>  cc: C:/bbndk/host_10_1_0_132/win32/x86/usr/bin/ntox86-ld caught signal 1
1>  x86\usr\bin\make: *** [OpenGL] Error 1
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 It seems to me like visual studio is not able to figure out which library files it should link to build the project.  How do I figure out which libraries the NDK is linking in when it does the build so that I can tell visual studio to do the same thing?  

 

I tried manually adding library files into the linker settings in visual studio but that didn't seem to work, perhaps I was adding the wrong files, or I was not specifying them correctly.

 

Can anyone help me get the sample OpenGL app building and running from within Visual Studio?

_______________________________________________________
C++, 3D OpenGL and Game Programming video tutorials:
http://www.MarekKnows.com
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889
Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10
My Carrier: Rogers

Re: Can not build MyOpenGL20App using Visual Studio

Well there is this part of the documentation... Not sure if you read it or caught it...

 

"If you created a Managed project in the QNX Momentics IDE, the linkers are in a file that can be imported. If you created an Unmanaged project, the libraries you need to add in the linker are found in the common.mk file."

 

Unfortunately, I only have the Express version of VS and I remember reading that it's not compatible, so I cannot help you to sort it out...

Please use plain text.
Contributor
marekKnows_com
Posts: 16
Registered: ‎04-28-2013
My Device: PlayBook
My Carrier: none

Re: Can not build MyOpenGL20App using Visual Studio

I created an unmanaged app, and then I could see which files I needed to link in.

bps screen EGL GLESv2 freetype png m

 I added these to my visual studio settings and now everything is working.

_______________________________________________________
C++, 3D OpenGL and Game Programming video tutorials:
http://www.MarekKnows.com
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889
Please use plain text.